Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
750 changes: 468 additions & 282 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.AgentEditJob.g.cs

Large diffs are not rendered by default.

617 changes: 400 additions & 217 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.CancelJob.g.cs

Large diffs are not rendered by default.

649 changes: 416 additions & 233 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetJob.g.cs

Large diffs are not rendered by default.

437 changes: 310 additions & 127 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.GetStatus.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

531 changes: 357 additions & 174 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.ListJobs.g.cs

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/Descript/Generated/Descript.ApiEndpointsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed partial class ApiEndpointsClient : global::Descript.IApiEndpointsC
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Descript.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -50,11 +53,37 @@ public ApiEndpointsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the ApiEndpointsClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public ApiEndpointsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>? authorizations = null,
global::Descript.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>();
Options = options ?? new global::Descript.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public void AuthorizeUsingBearer(
Authorizations.Add(new global::Descript.EndPointAuthorization
{
Type = "Http",
SchemeId = "HttpBearer",
Location = "Header",
Name = "Bearer",
Value = apiKey,
Expand Down
35 changes: 32 additions & 3 deletions src/libs/Descript/Generated/Descript.DescriptClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed partial class DescriptClient : global::Descript.IDescriptClient, g
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Descript.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -40,7 +43,7 @@ public sealed partial class DescriptClient : global::Descript.IDescriptClient, g
/// <summary>
/// Import media, edit projects with AI, and query jobs and projects.
/// </summary>
public ApiEndpointsClient ApiEndpoints => new ApiEndpointsClient(HttpClient, authorizations: Authorizations)
public ApiEndpointsClient ApiEndpoints => new ApiEndpointsClient(HttpClient, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
Expand Down Expand Up @@ -82,7 +85,7 @@ public sealed partial class DescriptClient : global::Descript.IDescriptClient, g
/// Descript Project should be created.<br/>
/// They'll then be redirected to the Project, where they can monitor the progress of the import and start editing.
/// </summary>
public EditInDescriptClient EditInDescript => new EditInDescriptClient(HttpClient, authorizations: Authorizations)
public EditInDescriptClient EditInDescript => new EditInDescriptClient(HttpClient, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
Expand All @@ -102,7 +105,7 @@ public sealed partial class DescriptClient : global::Descript.IDescriptClient, g
/// &lt;meta property="descript:source" content="409148bd-81aa-4af6-a9c3-29b761506f3a" /&gt;<br/>
/// ```.
/// </summary>
public ExportFromDescriptClient ExportFromDescript => new ExportFromDescriptClient(HttpClient, authorizations: Authorizations)
public ExportFromDescriptClient ExportFromDescript => new ExportFromDescriptClient(HttpClient, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
Expand All @@ -121,11 +124,37 @@ public DescriptClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the DescriptClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public DescriptClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>? authorizations = null,
global::Descript.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Descript.EndPointAuthorization>();
Options = options ?? new global::Descript.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Loading