diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs index cc030242..4c2451e6 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs @@ -28,12 +28,12 @@ public partial class AudioAssetsClient partial void PrepareUploadArguments( global::System.Net.Http.HttpClient httpClient, ref string? speechifyVersion, - global::Speechify.AudioAssetsUploadRequest request); + global::Speechify.UploadRequest request); partial void PrepareUploadRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? speechifyVersion, - global::Speechify.AudioAssetsUploadRequest request); + global::Speechify.UploadRequest request); partial void ProcessUploadResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -61,7 +61,7 @@ partial void ProcessUploadResponseContent( /// public async global::System.Threading.Tasks.Task UploadAsync( - global::Speechify.AudioAssetsUploadRequest request, + global::Speechify.UploadRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -94,7 +94,7 @@ partial void ProcessUploadResponseContent( /// public async global::System.Threading.Tasks.Task> UploadAsResponseAsync( - global::Speechify.AudioAssetsUploadRequest request, + global::Speechify.UploadRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -616,7 +616,7 @@ request.Filename is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.AudioAssetsUploadRequest + var __request = new global::Speechify.UploadRequest { ProjectId = projectId, File = file, @@ -668,7 +668,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.AudioAssetsUploadRequest + var request = new global::Speechify.UploadRequest { ProjectId = projectId, File = global::System.Array.Empty(), @@ -1183,7 +1183,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.AudioAssetsUploadRequest + var request = new global::Speechify.UploadRequest { ProjectId = projectId, File = global::System.Array.Empty(), diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs new file mode 100644 index 00000000..964e3e33 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs @@ -0,0 +1,586 @@ + +#nullable enable + +namespace Speechify +{ + public partial class ConversationsClient + { + + + private static readonly global::Speechify.EndPointSecurityRequirement s_CancelPromptSecurityRequirement0 = + new global::Speechify.EndPointSecurityRequirement + { + Authorizations = new global::Speechify.EndPointAuthorizationRequirement[] + { new global::Speechify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Speechify.EndPointSecurityRequirement[] s_CancelPromptSecurityRequirements = + new global::Speechify.EndPointSecurityRequirement[] + { s_CancelPromptSecurityRequirement0, + }; + partial void PrepareCancelPromptArguments( + global::System.Net.Http.HttpClient httpClient, + ref string conversationId, + ref string promptId, + ref string? speechifyVersion, + ref string? idempotencyKey); + partial void PrepareCancelPromptRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string conversationId, + string promptId, + string? speechifyVersion, + string? idempotencyKey); + partial void ProcessCancelPromptResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCancelPromptResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Cancel Conversation Prompt
+ /// Cancel an agent-initiated turn the worker has not started. Idempotent:
+ /// a `pending` prompt moves to `cancelled` and nothing is posted; a
+ /// prompt already `running` or terminal is returned unchanged - a
+ /// running turn is seconds from posting and its reply is already the
+ /// agent's own words, so there is nothing to recall. + ///
+ /// + /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CancelPromptAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CancelPromptAsResponseAsync( + conversationId: conversationId, + promptId: promptId, + speechifyVersion: speechifyVersion, + idempotencyKey: idempotencyKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Cancel Conversation Prompt
+ /// Cancel an agent-initiated turn the worker has not started. Idempotent:
+ /// a `pending` prompt moves to `cancelled` and nothing is posted; a
+ /// prompt already `running` or terminal is returned unchanged - a
+ /// running turn is seconds from posting and its reply is already the
+ /// agent's own words, so there is nothing to recall. + ///
+ /// + /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CancelPromptAsResponseAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareCancelPromptArguments( + httpClient: HttpClient, + conversationId: ref conversationId, + promptId: ref promptId, + speechifyVersion: ref speechifyVersion, + idempotencyKey: ref idempotencyKey); + + + var __authorizations = global::Speechify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelPromptSecurityRequirements, + operationName: "CancelPromptAsync"); + + using var __timeoutCancellationTokenSource = global::Speechify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Speechify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Speechify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Speechify.PathBuilder( + path: $"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Speechify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (speechifyVersion != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Speechify-Version", speechifyVersion.ToString()); + } + var __idempotencyKey = global::System.String.IsNullOrWhiteSpace(idempotencyKey) + ? CreateIdempotencyKey() + : idempotencyKey; + __httpRequest.Headers.TryAddWithoutValidation("Idempotency-Key", __idempotencyKey); + + global::Speechify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCancelPromptRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + conversationId: conversationId!, + promptId: promptId!, + speechifyVersion: speechifyVersion, + idempotencyKey: idempotencyKey); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Speechify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelPrompt", + methodName: "CancelPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelPrompt", + methodName: "CancelPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Speechify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelPrompt", + methodName: "CancelPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCancelPromptResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelPrompt", + methodName: "CancelPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CancelPrompt", + methodName: "CancelPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}/cancel\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Authentication is missing or invalid. The request did not carry a recognised credential (console session token, API key, or worker JWT). + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Speechify.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The referenced resource does not exist or is not visible to the caller's workspace. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Speechify.Error? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request conflicts with the current resource state - e.g. duplicate, optimistic-concurrency mismatch, or last-owner guard. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::Speechify.Error? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCancelPromptResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Speechify.ConversationPrompt.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Speechify.ConversationPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs new file mode 100644 index 00000000..77997415 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs @@ -0,0 +1,567 @@ + +#nullable enable + +namespace Speechify +{ + public partial class ConversationsClient + { + + + private static readonly global::Speechify.EndPointSecurityRequirement s_GetPromptSecurityRequirement0 = + new global::Speechify.EndPointSecurityRequirement + { + Authorizations = new global::Speechify.EndPointAuthorizationRequirement[] + { new global::Speechify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Speechify.EndPointSecurityRequirement[] s_GetPromptSecurityRequirements = + new global::Speechify.EndPointSecurityRequirement[] + { s_GetPromptSecurityRequirement0, + }; + partial void PrepareGetPromptArguments( + global::System.Net.Http.HttpClient httpClient, + ref string conversationId, + ref string promptId, + ref string? speechifyVersion); + partial void PrepareGetPromptRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string conversationId, + string promptId, + string? speechifyVersion); + partial void ProcessGetPromptResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetPromptResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Conversation Prompt
+ /// Poll an agent-initiated turn. `pending` is queued, `running` is on the
+ /// worker, `completed` means the reply reached the thread (or the agent
+ /// chose to say nothing), `failed` carries `error` saying why it never
+ /// posted, and `cancelled` means a cancel got there before the worker. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetPromptAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetPromptAsResponseAsync( + conversationId: conversationId, + promptId: promptId, + speechifyVersion: speechifyVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Conversation Prompt
+ /// Poll an agent-initiated turn. `pending` is queued, `running` is on the
+ /// worker, `completed` means the reply reached the thread (or the agent
+ /// chose to say nothing), `failed` carries `error` saying why it never
+ /// posted, and `cancelled` means a cancel got there before the worker. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> GetPromptAsResponseAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetPromptArguments( + httpClient: HttpClient, + conversationId: ref conversationId, + promptId: ref promptId, + speechifyVersion: ref speechifyVersion); + + + var __authorizations = global::Speechify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetPromptSecurityRequirements, + operationName: "GetPromptAsync"); + + using var __timeoutCancellationTokenSource = global::Speechify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Speechify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Speechify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Speechify.PathBuilder( + path: $"/v1/agents/conversations/{conversationId}/prompts/{promptId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Speechify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (speechifyVersion != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Speechify-Version", speechifyVersion.ToString()); + } + + global::Speechify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetPromptRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + conversationId: conversationId!, + promptId: promptId!, + speechifyVersion: speechifyVersion); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Speechify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPrompt", + methodName: "GetPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPrompt", + methodName: "GetPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Speechify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPrompt", + methodName: "GetPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetPromptResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPrompt", + methodName: "GetPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetPrompt", + methodName: "GetPromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts/{promptId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Authentication is missing or invalid. The request did not carry a recognised credential (console session token, API key, or worker JWT). + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Speechify.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The referenced resource does not exist or is not visible to the caller's workspace. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Speechify.Error? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Rate limit or concurrency limit exceeded. `error.code` says which ceiling, and they need different responses: `rate_limited` is the request-rate budget (slow down), `concurrency_limit_reached` is a workspace-wide concurrency ceiling (fewer at once, or raise it), and `conversation_turn_in_progress` is contention over one named conversation (keep one message in flight on it). Every 429 carries `Retry-After` and the request-rate budget headers; the active-call cap also carries `RateLimit-Remaining-Calls: 0`. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Speechify.Error? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetPromptResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Speechify.ConversationPrompt.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Speechify.ConversationPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs new file mode 100644 index 00000000..02d2a156 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs @@ -0,0 +1,884 @@ + +#nullable enable + +namespace Speechify +{ + public partial class ConversationsClient + { + + + private static readonly global::Speechify.EndPointSecurityRequirement s_PromptSecurityRequirement0 = + new global::Speechify.EndPointSecurityRequirement + { + Authorizations = new global::Speechify.EndPointAuthorizationRequirement[] + { new global::Speechify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Speechify.EndPointSecurityRequirement[] s_PromptSecurityRequirements = + new global::Speechify.EndPointSecurityRequirement[] + { s_PromptSecurityRequirement0, + }; + partial void PreparePromptArguments( + global::System.Net.Http.HttpClient httpClient, + ref string conversationId, + ref string? speechifyVersion, + ref string? idempotencyKey, + global::Speechify.ConversationPromptRequest request); + partial void PreparePromptRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string conversationId, + string? speechifyVersion, + string? idempotencyKey, + global::Speechify.ConversationPromptRequest request); + partial void ProcessPromptResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessPromptResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task PromptAsync( + string conversationId, + + global::Speechify.ConversationPromptRequest request, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await PromptAsResponseAsync( + conversationId: conversationId, + + request: request, + speechifyVersion: speechifyVersion, + idempotencyKey: idempotencyKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> PromptAsResponseAsync( + string conversationId, + + global::Speechify.ConversationPromptRequest request, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PreparePromptArguments( + httpClient: HttpClient, + conversationId: ref conversationId, + speechifyVersion: ref speechifyVersion, + idempotencyKey: ref idempotencyKey, + request: request); + + + var __authorizations = global::Speechify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PromptSecurityRequirements, + operationName: "PromptAsync"); + + using var __timeoutCancellationTokenSource = global::Speechify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Speechify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Speechify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Speechify.PathBuilder( + path: $"/v1/agents/conversations/{conversationId}/prompts", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Speechify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (speechifyVersion != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Speechify-Version", speechifyVersion.ToString()); + } + var __idempotencyKey = global::System.String.IsNullOrWhiteSpace(idempotencyKey) + ? CreateIdempotencyKey() + : idempotencyKey; + __httpRequest.Headers.TryAddWithoutValidation("Idempotency-Key", __idempotencyKey); + + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Speechify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PreparePromptRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + conversationId: conversationId!, + speechifyVersion: speechifyVersion, + idempotencyKey: idempotencyKey, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Speechify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Prompt", + methodName: "PromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Prompt", + methodName: "PromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Speechify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Speechify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Prompt", + methodName: "PromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Speechify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessPromptResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Prompt", + methodName: "PromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Speechify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Speechify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "Prompt", + methodName: "PromptAsync", + pathTemplate: "$\"/v1/agents/conversations/{conversationId}/prompts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // The request was malformed or failed validation. The response body is the standard `Error` envelope; for validation failures `error.fields` enumerates the offending fields as a `path -> message` map (code = `validation_failed`). + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Speechify.Error? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Authentication is missing or invalid. The request did not carry a recognised credential (console session token, API key, or worker JWT). + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Speechify.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The workspace has insufficient credits, or the request needs a plan tier the workspace is not on (e.g. voice cloning). Distinct from `Forbidden` so SDK consumers can drive upgrade UX. + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + global::Speechify.Error? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + responseBody: __content_402, + responseObject: __value_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The credential authenticated, but is not authorised for this resource - typically a workspace-role gate (owner / admin required) or a cross-tenant access attempt. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Speechify.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The referenced resource does not exist or is not visible to the caller's workspace. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Speechify.Error? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request conflicts with the current resource state - e.g. duplicate, optimistic-concurrency mismatch, or last-owner guard. + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::Speechify.Error? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + responseBody: __content_409, + responseObject: __value_409, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Rate limit or concurrency limit exceeded. `error.code` says which ceiling, and they need different responses: `rate_limited` is the request-rate budget (slow down), `concurrency_limit_reached` is a workspace-wide concurrency ceiling (fewer at once, or raise it), and `conversation_turn_in_progress` is contention over one named conversation (keep one message in flight on it). Every 429 carries `Retry-After` and the request-rate budget headers; the active-call cap also carries `RateLimit-Remaining-Calls: 0`. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Speechify.Error? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessPromptResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Speechify.ConversationPrompt.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Speechify.ConversationPrompt.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Speechify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Speechify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Speechify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// What the agent is asked to do in the conversation. It is the turn's input, run with the agent's normal tools on the thread's own context; what the agent writes in reply is what the thread sees. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task PromptAsync( + string conversationId, + string instruction, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Speechify.ConversationPromptRequest + { + Instruction = instruction, + }; + + return await PromptAsync( + conversationId: conversationId, + speechifyVersion: speechifyVersion, + idempotencyKey: idempotencyKey, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs index 4d881b87..eca352f7 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs @@ -28,12 +28,12 @@ public partial class FilesClient partial void PrepareUploadArguments( global::System.Net.Http.HttpClient httpClient, ref string? speechifyVersion, - global::Speechify.FilesUploadRequest request); + global::Speechify.UploadRequest2 request); partial void PrepareUploadRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? speechifyVersion, - global::Speechify.FilesUploadRequest request); + global::Speechify.UploadRequest2 request); partial void ProcessUploadResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -77,7 +77,7 @@ partial void ProcessUploadResponseContent( /// public async global::System.Threading.Tasks.Task UploadAsync( - global::Speechify.FilesUploadRequest request, + global::Speechify.UploadRequest2 request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -126,7 +126,7 @@ partial void ProcessUploadResponseContent( /// public async global::System.Threading.Tasks.Task> UploadAsResponseAsync( - global::Speechify.FilesUploadRequest request, + global::Speechify.UploadRequest2 request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -905,7 +905,7 @@ request.Filename is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.FilesUploadRequest + var __request = new global::Speechify.UploadRequest2 { File = file, Filename = filename, @@ -1007,7 +1007,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.FilesUploadRequest + var request = new global::Speechify.UploadRequest2 { File = global::System.Array.Empty(), Filename = filename, @@ -1782,7 +1782,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.FilesUploadRequest + var request = new global::Speechify.UploadRequest2 { File = global::System.Array.Empty(), Filename = filename, diff --git a/src/libs/Speechify/Generated/Speechify.IAudioAssetsClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.IAudioAssetsClient.Upload.g.cs index cc86fb61..551e8b57 100644 --- a/src/libs/Speechify/Generated/Speechify.IAudioAssetsClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IAudioAssetsClient.Upload.g.cs @@ -22,7 +22,7 @@ public partial interface IAudioAssetsClient /// global::System.Threading.Tasks.Task UploadAsync( - global::Speechify.AudioAssetsUploadRequest request, + global::Speechify.UploadRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -44,7 +44,7 @@ public partial interface IAudioAssetsClient /// global::System.Threading.Tasks.Task> UploadAsResponseAsync( - global::Speechify.AudioAssetsUploadRequest request, + global::Speechify.UploadRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.IConversationsClient.CancelPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.IConversationsClient.CancelPrompt.g.cs new file mode 100644 index 00000000..85068d32 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.IConversationsClient.CancelPrompt.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace Speechify +{ + public partial interface IConversationsClient + { + /// + /// Cancel Conversation Prompt
+ /// Cancel an agent-initiated turn the worker has not started. Idempotent:
+ /// a `pending` prompt moves to `cancelled` and nothing is posted; a
+ /// prompt already `running` or terminal is returned unchanged - a
+ /// running turn is seconds from posting and its reply is already the
+ /// agent's own words, so there is nothing to recall. + ///
+ /// + /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CancelPromptAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Cancel Conversation Prompt
+ /// Cancel an agent-initiated turn the worker has not started. Idempotent:
+ /// a `pending` prompt moves to `cancelled` and nothing is posted; a
+ /// prompt already `running` or terminal is returned unchanged - a
+ /// running turn is seconds from posting and its reply is already the
+ /// agent's own words, so there is nothing to recall. + ///
+ /// + /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CancelPromptAsResponseAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.IConversationsClient.GetPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.IConversationsClient.GetPrompt.g.cs new file mode 100644 index 00000000..7f09b70d --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.IConversationsClient.GetPrompt.g.cs @@ -0,0 +1,46 @@ +#nullable enable + +namespace Speechify +{ + public partial interface IConversationsClient + { + /// + /// Get Conversation Prompt
+ /// Poll an agent-initiated turn. `pending` is queued, `running` is on the
+ /// worker, `completed` means the reply reached the thread (or the agent
+ /// chose to say nothing), `failed` carries `error` saying why it never
+ /// posted, and `cancelled` means a cancel got there before the worker. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetPromptAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Conversation Prompt
+ /// Poll an agent-initiated turn. `pending` is queued, `running` is on the
+ /// worker, `completed` means the reply reached the thread (or the agent
+ /// chose to say nothing), `failed` carries `error` saying why it never
+ /// posted, and `cancelled` means a cancel got there before the worker. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> GetPromptAsResponseAsync( + string conversationId, + string promptId, + string? speechifyVersion = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.IConversationsClient.Prompt.g.cs b/src/libs/Speechify/Generated/Speechify.IConversationsClient.Prompt.g.cs new file mode 100644 index 00000000..9e89f289 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.IConversationsClient.Prompt.g.cs @@ -0,0 +1,183 @@ +#nullable enable + +namespace Speechify +{ + public partial interface IConversationsClient + { + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task PromptAsync( + string conversationId, + + global::Speechify.ConversationPromptRequest request, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> PromptAsResponseAsync( + string conversationId, + + global::Speechify.ConversationPromptRequest request, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Prompt Conversation
+ /// Start an agent-initiated turn in an existing conversation. The agent
+ /// runs the instruction with its normal tools on the conversation's own
+ /// context - it can see what it said earlier in the thread - and whatever
+ /// it writes in reply is delivered into that thread, unasked. The typical
+ /// use is a follow-up on something the agent already said: a figure that
+ /// was re-certified after the answer went out, a correction, a heads-up.
+ /// The turn is queued, not run inline: it answers `202` with the prompt
+ /// as a job (`pending`), lands in the thread within the turn's own
+ /// budget, and survives a deploy and waits for the thread's in-flight
+ /// turn the way a person's message does. Poll it with
+ /// `GET /v1/agents/conversations/{conversation_id}/prompts/{prompt_id}`:
+ /// `completed` means the reply was delivered (or the agent chose to say
+ /// nothing), `failed` carries `error` saying why it never posted - the
+ /// conversation ended before the turn ran, a grant withdrawn, the
+ /// runtime giving up. A `pending` prompt can be cancelled. Its two
+ /// transcript rows - the instruction as the `user` row and the reply as
+ /// the `assistant` row - carry `initiated_by: api`, so
+ /// `GET /v1/agents/conversations/{conversation_id}/messages` and any
+ /// evaluation can tell it from an answer to a person.
+ /// Only a conversation answered over a messaging channel (Slack) can take
+ /// one, because an unasked reply needs somewhere to go: a conversation
+ /// driven over the message API returns its replies in the response, so it
+ /// answers `409 conversation_not_reachable`, as does a voice call or a
+ /// thread whose channel has since been removed. A conversation that has
+ /// ended answers `409 conversation_closed`: nothing reopens it, and the
+ /// next message a person sends in that thread opens a fresh conversation
+ /// to address instead.
+ /// Bounded per workspace at 60 turns an hour (`429 rate_limited` with
+ /// `Retry-After`) on top of the text channel's own gates: the same plan
+ /// grants, monthly message cap, spend budget and in-flight cap a person's
+ /// message takes, refused here with the same `402`s before anything is
+ /// queued.
+ /// Send an `Idempotency-Key` header to make a network retry safe: a repeat
+ /// with the same key replays the first `202` instead of queueing a second
+ /// turn.
+ /// A field this endpoint does not define is refused with `400
+ /// validation_failed` naming every unknown field, rather than accepted
+ /// and silently dropped. + ///
+ /// + /// + /// + /// Optional idempotency key. When omitted, the SDK generates one for this request. + /// + /// + /// What the agent is asked to do in the conversation. It is the turn's input, run with the agent's normal tools on the thread's own context; what the agent writes in reply is what the thread sees. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task PromptAsync( + string conversationId, + string instruction, + string? speechifyVersion = default, + string? idempotencyKey = default, + global::Speechify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.IFilesClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.IFilesClient.Upload.g.cs index cf47976b..ec826bca 100644 --- a/src/libs/Speechify/Generated/Speechify.IFilesClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IFilesClient.Upload.g.cs @@ -38,7 +38,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task UploadAsync( - global::Speechify.FilesUploadRequest request, + global::Speechify.UploadRequest2 request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -76,7 +76,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task> UploadAsResponseAsync( - global::Speechify.FilesUploadRequest request, + global::Speechify.UploadRequest2 request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UpdateDocument.g.cs b/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UpdateDocument.g.cs index 82ffcf5f..3b27a38d 100644 --- a/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UpdateDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UpdateDocument.g.cs @@ -23,7 +23,7 @@ public partial interface IKnowledgeBasesClient string kbId, string documentId, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request, + global::Speechify.UpdateDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -46,7 +46,7 @@ public partial interface IKnowledgeBasesClient string kbId, string documentId, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request, + global::Speechify.UpdateDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UploadDocument.g.cs b/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UploadDocument.g.cs index b83686f1..ba0d5aeb 100644 --- a/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UploadDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IKnowledgeBasesClient.UploadDocument.g.cs @@ -20,7 +20,7 @@ public partial interface IKnowledgeBasesClient global::System.Threading.Tasks.Task UploadDocumentAsync( string kbId, - global::Speechify.KnowledgeBasesUploadDocumentRequest request, + global::Speechify.UploadDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -40,7 +40,7 @@ public partial interface IKnowledgeBasesClient global::System.Threading.Tasks.Task> UploadDocumentAsResponseAsync( string kbId, - global::Speechify.KnowledgeBasesUploadDocumentRequest request, + global::Speechify.UploadDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.ITestsClient.RunTest.g.cs b/src/libs/Speechify/Generated/Speechify.ITestsClient.RunTest.g.cs index 1a669bf1..b9c7b9a8 100644 --- a/src/libs/Speechify/Generated/Speechify.ITestsClient.RunTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ITestsClient.RunTest.g.cs @@ -32,7 +32,7 @@ public partial interface ITestsClient global::System.Threading.Tasks.Task RunTestAsync( string testId, - global::Speechify.TestsRunTestRequest request, + global::Speechify.RunTestRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -65,7 +65,7 @@ public partial interface ITestsClient global::System.Threading.Tasks.Task> RunTestAsResponseAsync( string testId, - global::Speechify.TestsRunTestRequest request, + global::Speechify.RunTestRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Speechify/Generated/Speechify.IVoicesClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.IVoicesClient.Create.g.cs index ff190f45..7a388aaa 100644 --- a/src/libs/Speechify/Generated/Speechify.IVoicesClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IVoicesClient.Create.g.cs @@ -21,7 +21,7 @@ public partial interface IVoicesClient /// global::System.Threading.Tasks.Task CreateAsync( - global::Speechify.VoicesCreateRequest request, + global::Speechify.CreateRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -43,7 +43,7 @@ public partial interface IVoicesClient /// global::System.Threading.Tasks.Task> CreateAsResponseAsync( - global::Speechify.VoicesCreateRequest request, + global::Speechify.CreateRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Detect.g.cs b/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Detect.g.cs index e2410a23..18b9efb2 100644 --- a/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Detect.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Detect.g.cs @@ -26,7 +26,7 @@ public partial interface IWatermarkClient /// global::System.Threading.Tasks.Task DetectAsync( - global::Speechify.WatermarkDetectRequest request, + global::Speechify.DetectRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -52,7 +52,7 @@ public partial interface IWatermarkClient /// global::System.Threading.Tasks.Task> DetectAsResponseAsync( - global::Speechify.WatermarkDetectRequest request, + global::Speechify.DetectRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Verify.g.cs b/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Verify.g.cs index bdaa8954..f06f20d1 100644 --- a/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Verify.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IWatermarkClient.Verify.g.cs @@ -38,7 +38,7 @@ public partial interface IWatermarkClient /// global::System.Threading.Tasks.Task VerifyAsync( - global::Speechify.WatermarkVerifyRequest request, + global::Speechify.VerifyRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -76,7 +76,7 @@ public partial interface IWatermarkClient /// global::System.Threading.Tasks.Task> VerifyAsResponseAsync( - global::Speechify.WatermarkVerifyRequest request, + global::Speechify.VerifyRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedBy.g.cs b/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedBy.g.cs new file mode 100644 index 00000000..b9ee5a58 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedBy.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Speechify.JsonConverters +{ + /// + public sealed class MessageInitiatedByJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Speechify.MessageInitiatedBy Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Speechify.MessageInitiatedByExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Speechify.MessageInitiatedBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Speechify.MessageInitiatedBy); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Speechify.MessageInitiatedBy value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Speechify.MessageInitiatedByExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedByNullable.g.cs b/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedByNullable.g.cs new file mode 100644 index 00000000..e75caff0 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.JsonConverters.MessageInitiatedByNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Speechify.JsonConverters +{ + /// + public sealed class MessageInitiatedByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Speechify.MessageInitiatedBy? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Speechify.MessageInitiatedByExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Speechify.MessageInitiatedBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Speechify.MessageInitiatedBy?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Speechify.MessageInitiatedBy? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Speechify.MessageInitiatedByExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs b/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs index d47cbc51..c15f8879 100644 --- a/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs +++ b/src/libs/Speechify/Generated/Speechify.JsonSerializerContext.g.cs @@ -219,6 +219,7 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ConversationStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MessageRole), TypeInfoPropertyName = "MessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MessageInitiatedBy), TypeInfoPropertyName = "MessageInitiatedBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.Message))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListMessagesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -241,6 +242,9 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WebhookDelivery))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListWebhookDeliveriesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ConversationPromptRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.JobStatus), TypeInfoPropertyName = "JobStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ConversationPrompt))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShadowConversationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PublishAgentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PublishAgentResponse))] @@ -312,7 +316,6 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateKnowledgeBaseEvalCaseRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UpdateKnowledgeBaseEvalCaseRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.JobStatus), TypeInfoPropertyName = "JobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseEvaluationResults))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseEvaluationMetrics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseEvaluation))] @@ -511,9 +514,6 @@ namespace Speechify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateShareLinkSessionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ShareLinkSession))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberProvider), TypeInfoPropertyName = "PhoneNumberProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberCapability), TypeInfoPropertyName = "PhoneNumberCapability2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputationRisk), TypeInfoPropertyName = "PhoneNumberReputationRisk2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputation))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberCapability), TypeInfoPropertyName = "PhoneNumberCapability2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputationRisk), TypeInfoPropertyName = "PhoneNumberReputationRisk2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumberReputation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PhoneNumber))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListPhoneNumbersResponse))] @@ -596,6 +599,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.TriggerWebhookConfigUserIdentitySource), TypeInfoPropertyName = "TriggerWebhookConfigUserIdentitySource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.TriggerWebhookConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentTriggerLastFireStatus), TypeInfoPropertyName = "AgentTriggerLastFireStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.TriggerThread))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentTrigger))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ListAgentTriggersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -756,14 +760,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ProjectMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.GrantProjectMemberRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.VoicesCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WatermarkDetectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WatermarkVerifyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBasesUploadDocumentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBasesUpdateDocumentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.TestsRunTestRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AudioAssetsUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.FilesUploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.CreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.DetectRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.VerifyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UploadDocumentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UpdateDocumentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.RunTestRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.UploadRequest2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.GetSpeechRequestAudioFormat?), TypeInfoPropertyName = "NullableGetSpeechRequestAudioFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.GetSpeechRequestModel?), TypeInfoPropertyName = "NullableGetSpeechRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] @@ -819,10 +823,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentSnapshotBackgroundNoisePreset?), TypeInfoPropertyName = "NullableAgentSnapshotBackgroundNoisePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ConversationIvrSurrenderReason?), TypeInfoPropertyName = "NullableConversationIvrSurrenderReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MessageRole?), TypeInfoPropertyName = "NullableMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MessageInitiatedBy?), TypeInfoPropertyName = "NullableMessageInitiatedBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.EvaluationKind?), TypeInfoPropertyName = "NullableEvaluationKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.EvaluationStatus?), TypeInfoPropertyName = "NullableEvaluationStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.RetrievalCoverage?), TypeInfoPropertyName = "NullableRetrievalCoverage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.WebhookDeliveryStatus?), TypeInfoPropertyName = "NullableWebhookDeliveryStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.JobStatus?), TypeInfoPropertyName = "NullableJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.PublishGateRunDecision?), TypeInfoPropertyName = "NullablePublishGateRunDecision2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStatus?), TypeInfoPropertyName = "NullableAgentRunStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunIncompleteReason?), TypeInfoPropertyName = "NullableAgentRunIncompleteReason2")] @@ -841,7 +847,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventVariant3Type?), TypeInfoPropertyName = "NullableAgentRunStreamEventVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentRunStreamEventDiscriminatorType?), TypeInfoPropertyName = "NullableAgentRunStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentSourceKind?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentSourceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.JobStatus?), TypeInfoPropertyName = "NullableJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentInjectionMode?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentInjectionMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentStatus?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.KnowledgeBaseDocumentDetailInjectionMode?), TypeInfoPropertyName = "NullableKnowledgeBaseDocumentDetailInjectionMode2")] @@ -1021,11 +1026,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1038,6 +1038,11 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1334,6 +1339,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.MessageRole?) + || typeToConvert == typeof(global::Speechify.MessageInitiatedBy) + + || typeToConvert == typeof(global::Speechify.MessageInitiatedBy?) + || typeToConvert == typeof(global::Speechify.EvaluationKind) || typeToConvert == typeof(global::Speechify.EvaluationKind?) @@ -1350,6 +1359,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.WebhookDeliveryStatus?) + || typeToConvert == typeof(global::Speechify.JobStatus) + + || typeToConvert == typeof(global::Speechify.JobStatus?) + || typeToConvert == typeof(global::Speechify.PublishGateRunDecision) || typeToConvert == typeof(global::Speechify.PublishGateRunDecision?) @@ -1418,10 +1431,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Speechify.KnowledgeBaseDocumentSourceKind?) - || typeToConvert == typeof(global::Speechify.JobStatus) - - || typeToConvert == typeof(global::Speechify.JobStatus?) - || typeToConvert == typeof(global::Speechify.KnowledgeBaseDocumentInjectionMode) || typeToConvert == typeof(global::Speechify.KnowledgeBaseDocumentInjectionMode?) @@ -2229,6 +2238,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.MessageRoleNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.MessageInitiatedBy)) + { + return new global::Speechify.JsonConverters.MessageInitiatedByJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.MessageInitiatedBy?)) + { + return new global::Speechify.JsonConverters.MessageInitiatedByNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.EvaluationKind)) { return new global::Speechify.JsonConverters.EvaluationKindJsonConverter(); @@ -2269,6 +2288,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.WebhookDeliveryStatusNullableJsonConverter(); } + if (typeToConvert == typeof(global::Speechify.JobStatus)) + { + return new global::Speechify.JsonConverters.JobStatusJsonConverter(); + } + + if (typeToConvert == typeof(global::Speechify.JobStatus?)) + { + return new global::Speechify.JsonConverters.JobStatusNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Speechify.PublishGateRunDecision)) { return new global::Speechify.JsonConverters.PublishGateRunDecisionJsonConverter(); @@ -2439,16 +2468,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Speechify.JsonConverters.KnowledgeBaseDocumentSourceKindNullableJsonConverter(); } - if (typeToConvert == typeof(global::Speechify.JobStatus)) - { - return new global::Speechify.JsonConverters.JobStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Speechify.JobStatus?)) - { - return new global::Speechify.JsonConverters.JobStatusNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Speechify.KnowledgeBaseDocumentInjectionMode)) { return new global::Speechify.JsonConverters.KnowledgeBaseDocumentInjectionModeJsonConverter(); diff --git a/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs b/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs index e3c366fb..aa6a396f 100644 --- a/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.JsonSerializerContextTypes.g.cs @@ -841,2135 +841,2151 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Speechify.Message? Type202 { get; set; } + public global::Speechify.MessageInitiatedBy? Type202 { get; set; } /// /// /// - public global::Speechify.ListMessagesResponse? Type203 { get; set; } + public global::Speechify.Message? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::Speechify.ListMessagesResponse? Type204 { get; set; } /// /// /// - public global::Speechify.EvaluationKind? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::Speechify.EvaluationStatus? Type206 { get; set; } + public global::Speechify.EvaluationKind? Type206 { get; set; } /// /// /// - public global::Speechify.Evaluation? Type207 { get; set; } + public global::Speechify.EvaluationStatus? Type207 { get; set; } /// /// /// - public global::Speechify.ListEvaluationsResponse? Type208 { get; set; } + public global::Speechify.Evaluation? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::Speechify.ListEvaluationsResponse? Type209 { get; set; } /// /// /// - public global::Speechify.Memory? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Speechify.ListMemoriesResponse? Type211 { get; set; } + public global::Speechify.Memory? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::Speechify.ListMemoriesResponse? Type212 { get; set; } /// /// /// - public global::Speechify.SearchHitRanking? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::Speechify.RetrievalLogResult? Type214 { get; set; } + public global::Speechify.SearchHitRanking? Type214 { get; set; } /// /// /// - public global::Speechify.RetrievalCoverage? Type215 { get; set; } + public global::Speechify.RetrievalLogResult? Type215 { get; set; } /// /// /// - public global::Speechify.RetrievalLogEntry? Type216 { get; set; } + public global::Speechify.RetrievalCoverage? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::Speechify.RetrievalLogEntry? Type217 { get; set; } /// /// /// - public global::Speechify.ListRetrievalLogsResponse? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::Speechify.ListRetrievalLogsResponse? Type219 { get; set; } /// /// /// - public global::Speechify.WebhookDeliveryStatus? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Speechify.WebhookDelivery? Type221 { get; set; } + public global::Speechify.WebhookDeliveryStatus? Type221 { get; set; } /// /// /// - public global::Speechify.ListWebhookDeliveriesResponse? Type222 { get; set; } + public global::Speechify.WebhookDelivery? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Speechify.ListWebhookDeliveriesResponse? Type223 { get; set; } /// /// /// - public global::Speechify.ShadowConversationResponse? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type224 { get; set; } /// /// /// - public global::Speechify.PublishAgentRequest? Type225 { get; set; } + public global::Speechify.ConversationPromptRequest? Type225 { get; set; } /// /// /// - public global::Speechify.PublishAgentResponse? Type226 { get; set; } + public global::Speechify.JobStatus? Type226 { get; set; } /// /// /// - public global::Speechify.PublishGateRunDecision? Type227 { get; set; } + public global::Speechify.ConversationPrompt? Type227 { get; set; } /// /// /// - public global::Speechify.PublishGateRun? Type228 { get; set; } + public global::Speechify.ShadowConversationResponse? Type228 { get; set; } /// /// /// - public global::Speechify.LatestPublishGateRunResponse? Type229 { get; set; } + public global::Speechify.PublishAgentRequest? Type229 { get; set; } /// /// /// - public global::Speechify.CreateAgentRunRequest? Type230 { get; set; } + public global::Speechify.PublishAgentResponse? Type230 { get; set; } /// /// /// - public global::Speechify.AgentRunStatus? Type231 { get; set; } + public global::Speechify.PublishGateRunDecision? Type231 { get; set; } /// /// /// - public global::Speechify.AgentRunInputDelegationTargetsItems? Type232 { get; set; } + public global::Speechify.PublishGateRun? Type232 { get; set; } /// /// /// - public global::Speechify.AgentRunInput? Type233 { get; set; } + public global::Speechify.LatestPublishGateRunResponse? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::Speechify.CreateAgentRunRequest? Type234 { get; set; } /// /// /// - public global::Speechify.AgentRunOutputTranscriptItems? Type235 { get; set; } + public global::Speechify.AgentRunStatus? Type235 { get; set; } /// /// /// - public global::Speechify.AgentRunOutput? Type236 { get; set; } + public global::Speechify.AgentRunInputDelegationTargetsItems? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::Speechify.AgentRunInput? Type237 { get; set; } /// /// /// - public global::Speechify.AgentRunError? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Speechify.AgentRunIncompleteReason? Type239 { get; set; } + public global::Speechify.AgentRunOutputTranscriptItems? Type239 { get; set; } /// /// /// - public global::Speechify.AgentRunUsageModelsItems? Type240 { get; set; } + public global::Speechify.AgentRunOutput? Type240 { get; set; } /// /// /// - public global::Speechify.AgentRunUsageToolsItems? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Speechify.AgentRunUsage? Type242 { get; set; } + public global::Speechify.AgentRunError? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::Speechify.AgentRunIncompleteReason? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Speechify.AgentRunUsageModelsItems? Type244 { get; set; } /// /// /// - public global::Speechify.PendingActionDefaultDecision? Type245 { get; set; } + public global::Speechify.AgentRunUsageToolsItems? Type245 { get; set; } /// /// /// - public global::Speechify.PendingAction? Type246 { get; set; } + public global::Speechify.AgentRunUsage? Type246 { get; set; } /// /// /// - public global::Speechify.AgentRun? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::Speechify.V1AgentsAgentIdRunsGetParametersStatus? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::Speechify.ListAgentRunsResponse? Type249 { get; set; } + public global::Speechify.PendingActionDefaultDecision? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Speechify.PendingAction? Type250 { get; set; } /// /// /// - public global::Speechify.V1AgentsRunsGetParametersStatus? Type251 { get; set; } + public global::Speechify.AgentRun? Type251 { get; set; } /// /// /// - public global::Speechify.SubmitAgentRunRequestDecision? Type252 { get; set; } + public global::Speechify.V1AgentsAgentIdRunsGetParametersStatus? Type252 { get; set; } /// /// /// - public global::Speechify.SubmitAgentRunRequest? Type253 { get; set; } + public global::Speechify.ListAgentRunsResponse? Type253 { get; set; } /// /// /// - public global::Speechify.AgentRunStepKind? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::Speechify.RunStepDelegationChildStatus? Type255 { get; set; } + public global::Speechify.V1AgentsRunsGetParametersStatus? Type255 { get; set; } /// /// /// - public global::Speechify.RunStepDelegation? Type256 { get; set; } + public global::Speechify.SubmitAgentRunRequestDecision? Type256 { get; set; } /// /// /// - public global::Speechify.AgentRunStep? Type257 { get; set; } + public global::Speechify.SubmitAgentRunRequest? Type257 { get; set; } /// /// /// - public global::Speechify.ListAgentRunStepsResponse? Type258 { get; set; } + public global::Speechify.AgentRunStepKind? Type258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type259 { get; set; } + public global::Speechify.RunStepDelegationChildStatus? Type259 { get; set; } /// /// /// - public global::Speechify.AgentRunStepAddedEventKind? Type260 { get; set; } + public global::Speechify.RunStepDelegation? Type260 { get; set; } /// /// /// - public global::Speechify.AgentRunStatusChangedEventStatus? Type261 { get; set; } + public global::Speechify.AgentRunStep? Type261 { get; set; } /// /// /// - public global::Speechify.AgentRunEndedEventStatus? Type262 { get; set; } + public global::Speechify.ListAgentRunStepsResponse? Type262 { get; set; } /// /// /// - public global::Speechify.AgentRunEndedEventOutput? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEvent? Type264 { get; set; } + public global::Speechify.AgentRunStepAddedEventKind? Type264 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant1? Type265 { get; set; } + public global::Speechify.AgentRunStatusChangedEventStatus? Type265 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant1Type? Type266 { get; set; } + public global::Speechify.AgentRunEndedEventStatus? Type266 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant2? Type267 { get; set; } + public global::Speechify.AgentRunEndedEventOutput? Type267 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant2Type? Type268 { get; set; } + public global::Speechify.AgentRunStreamEvent? Type268 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant3? Type269 { get; set; } + public global::Speechify.AgentRunStreamEventVariant1? Type269 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventVariant3Type? Type270 { get; set; } + public global::Speechify.AgentRunStreamEventVariant1Type? Type270 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventDiscriminator? Type271 { get; set; } + public global::Speechify.AgentRunStreamEventVariant2? Type271 { get; set; } /// /// /// - public global::Speechify.AgentRunStreamEventDiscriminatorType? Type272 { get; set; } + public global::Speechify.AgentRunStreamEventVariant2Type? Type272 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseInjection? Type273 { get; set; } + public global::Speechify.AgentRunStreamEventVariant3? Type273 { get; set; } /// /// /// - public global::Speechify.KnowledgeBase? Type274 { get; set; } + public global::Speechify.AgentRunStreamEventVariant3Type? Type274 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBasesResponse? Type275 { get; set; } + public global::Speechify.AgentRunStreamEventDiscriminator? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::Speechify.AgentRunStreamEventDiscriminatorType? Type276 { get; set; } /// /// /// - public global::Speechify.CreateKnowledgeBaseRequest? Type277 { get; set; } + public global::Speechify.KnowledgeBaseInjection? Type277 { get; set; } /// /// /// - public global::Speechify.SearchKnowledgeBasesRequest? Type278 { get; set; } + public global::Speechify.KnowledgeBase? Type278 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseSearchHit? Type279 { get; set; } + public global::Speechify.ListKnowledgeBasesResponse? Type279 { get; set; } /// /// /// - public global::Speechify.SearchKnowledgeBasesResponse? Type280 { get; set; } + public global::System.Collections.Generic.IList? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Speechify.CreateKnowledgeBaseRequest? Type281 { get; set; } /// /// /// - public global::Speechify.UpdateKnowledgeBaseRequest? Type282 { get; set; } + public global::Speechify.SearchKnowledgeBasesRequest? Type282 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageHealth? Type283 { get; set; } + public global::Speechify.KnowledgeBaseSearchHit? Type283 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageGap? Type284 { get; set; } + public global::Speechify.SearchKnowledgeBasesResponse? Type284 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentSourceKind? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverageDocument? Type286 { get; set; } + public global::Speechify.UpdateKnowledgeBaseRequest? Type286 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseCoverage? Type287 { get; set; } + public global::Speechify.KnowledgeBaseCoverageHealth? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::Speechify.KnowledgeBaseCoverageGap? Type288 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type289 { get; set; } + public global::Speechify.KnowledgeBaseDocumentSourceKind? Type289 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvalCase? Type290 { get; set; } + public global::Speechify.KnowledgeBaseCoverageDocument? Type290 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvalCasesResponse? Type291 { get; set; } + public global::Speechify.KnowledgeBaseCoverage? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::Speechify.CreateKnowledgeBaseEvalCaseRequest? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::Speechify.UpdateKnowledgeBaseEvalCaseRequest? Type294 { get; set; } + public global::Speechify.KnowledgeBaseEvalCase? Type294 { get; set; } /// /// /// - public global::Speechify.JobStatus? Type295 { get; set; } + public global::Speechify.ListKnowledgeBaseEvalCasesResponse? Type295 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationResults? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationMetrics? Type297 { get; set; } + public global::Speechify.CreateKnowledgeBaseEvalCaseRequest? Type297 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluation? Type298 { get; set; } + public global::Speechify.UpdateKnowledgeBaseEvalCaseRequest? Type298 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvaluationsResponse? Type299 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationResults? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationMetrics? Type300 { get; set; } /// /// /// - public global::Speechify.StartKnowledgeBaseEvaluationRequest? Type301 { get; set; } + public global::Speechify.KnowledgeBaseEvaluation? Type301 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationHit? Type302 { get; set; } + public global::Speechify.ListKnowledgeBaseEvaluationsResponse? Type302 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseEvaluationResult? Type303 { get; set; } + public global::System.Collections.Generic.IList? Type303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type304 { get; set; } + public global::Speechify.StartKnowledgeBaseEvaluationRequest? Type304 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseEvaluationResultsResponse? Type305 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationHit? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::Speechify.KnowledgeBaseEvaluationResult? Type306 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentInjectionMode? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentStatus? Type308 { get; set; } + public global::Speechify.ListKnowledgeBaseEvaluationResultsResponse? Type308 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocument? Type309 { get; set; } + public global::System.Collections.Generic.IList? Type309 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseDocumentsResponse? Type310 { get; set; } + public global::Speechify.KnowledgeBaseDocumentInjectionMode? Type310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type311 { get; set; } + public global::Speechify.KnowledgeBaseDocumentStatus? Type311 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentDetailInjectionMode? Type312 { get; set; } + public global::Speechify.KnowledgeBaseDocument? Type312 { get; set; } /// /// /// - public global::Speechify.DependentAgent? Type313 { get; set; } + public global::Speechify.ListKnowledgeBaseDocumentsResponse? Type313 { get; set; } /// /// /// - public global::Speechify.RefreshConfig? Type314 { get; set; } + public global::System.Collections.Generic.IList? Type314 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseDocumentDetail? Type315 { get; set; } + public global::Speechify.KnowledgeBaseDocumentDetailInjectionMode? Type315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type316 { get; set; } + public global::Speechify.DependentAgent? Type316 { get; set; } /// /// /// - public global::Speechify.V1AgentsKnowledgeBasesKbIdDocumentsDocumentIdPatchRequestBodyContentApplicationJsonSchemaInjectionMode? Type317 { get; set; } + public global::Speechify.RefreshConfig? Type317 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseChunk? Type318 { get; set; } + public global::Speechify.KnowledgeBaseDocumentDetail? Type318 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseChunksResponse? Type319 { get; set; } + public global::System.Collections.Generic.IList? Type319 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type320 { get; set; } + public global::Speechify.V1AgentsKnowledgeBasesKbIdDocumentsDocumentIdPatchRequestBodyContentApplicationJsonSchemaInjectionMode? Type320 { get; set; } /// /// /// - public global::Speechify.CreateCrawlImportRequest? Type321 { get; set; } + public global::Speechify.KnowledgeBaseChunk? Type321 { get; set; } /// /// /// - public global::Speechify.ImportJobKind? Type322 { get; set; } + public global::Speechify.ListKnowledgeBaseChunksResponse? Type322 { get; set; } /// /// /// - public global::Speechify.ImportJob? Type323 { get; set; } + public global::System.Collections.Generic.IList? Type323 { get; set; } /// /// /// - public global::Speechify.CreateSitemapImportRequest? Type324 { get; set; } + public global::Speechify.CreateCrawlImportRequest? Type324 { get; set; } /// /// /// - public global::Speechify.CreateTextDocumentRequest? Type325 { get; set; } + public global::Speechify.ImportJobKind? Type325 { get; set; } /// /// /// - public global::Speechify.CreateURLDocumentRequest? Type326 { get; set; } + public global::Speechify.ImportJob? Type326 { get; set; } /// /// /// - public global::Speechify.CreateURLBatchImportRequest? Type327 { get; set; } + public global::Speechify.CreateSitemapImportRequest? Type327 { get; set; } /// /// /// - public global::Speechify.BatchDeleteDocumentsRequest? Type328 { get; set; } + public global::Speechify.CreateTextDocumentRequest? Type328 { get; set; } /// /// /// - public global::Speechify.BatchMoveDocumentsRequest? Type329 { get; set; } + public global::Speechify.CreateURLDocumentRequest? Type329 { get; set; } /// /// /// - public global::Speechify.BatchMoveDocumentsResponse? Type330 { get; set; } + public global::Speechify.CreateURLBatchImportRequest? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::Speechify.BatchDeleteDocumentsRequest? Type331 { get; set; } /// /// /// - public global::Speechify.UpdateRefreshConfigRequest? Type332 { get; set; } + public global::Speechify.BatchMoveDocumentsRequest? Type332 { get; set; } /// /// /// - public global::Speechify.RefreshHistoryEntryStatus? Type333 { get; set; } + public global::Speechify.BatchMoveDocumentsResponse? Type333 { get; set; } /// /// /// - public global::Speechify.RefreshHistoryEntry? Type334 { get; set; } + public global::System.Collections.Generic.IList? Type334 { get; set; } /// /// /// - public global::Speechify.ListRefreshHistoryResponse? Type335 { get; set; } + public global::Speechify.UpdateRefreshConfigRequest? Type335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type336 { get; set; } + public global::Speechify.RefreshHistoryEntryStatus? Type336 { get; set; } /// /// /// - public global::Speechify.KnowledgeBaseFolder? Type337 { get; set; } + public global::Speechify.RefreshHistoryEntry? Type337 { get; set; } /// /// /// - public global::Speechify.ListKnowledgeBaseFoldersResponse? Type338 { get; set; } + public global::Speechify.ListRefreshHistoryResponse? Type338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type339 { get; set; } + public global::System.Collections.Generic.IList? Type339 { get; set; } /// /// /// - public global::Speechify.CreateFolderRequest? Type340 { get; set; } + public global::Speechify.KnowledgeBaseFolder? Type340 { get; set; } /// /// /// - public global::Speechify.UpdateFolderRequest? Type341 { get; set; } + public global::Speechify.ListKnowledgeBaseFoldersResponse? Type341 { get; set; } /// /// /// - public global::Speechify.ListImportJobsResponse? Type342 { get; set; } + public global::System.Collections.Generic.IList? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::Speechify.CreateFolderRequest? Type343 { get; set; } /// /// /// - public global::Speechify.AttachedKnowledgeBasesResponseInjection? Type344 { get; set; } + public global::Speechify.UpdateFolderRequest? Type344 { get; set; } /// /// /// - public global::Speechify.AttachedKnowledgeBasesResponse? Type345 { get; set; } + public global::Speechify.ListImportJobsResponse? Type345 { get; set; } /// /// /// - public global::Speechify.ToolKind? Type346 { get; set; } + public global::System.Collections.Generic.IList? Type346 { get; set; } /// /// /// - public global::Speechify.ToolParamType? Type347 { get; set; } + public global::Speechify.AttachedKnowledgeBasesResponseInjection? Type347 { get; set; } /// /// /// - public global::Speechify.ToolParam? Type348 { get; set; } + public global::Speechify.AttachedKnowledgeBasesResponse? Type348 { get; set; } /// /// /// - public global::Speechify.BuiltinToolConfig? Type349 { get; set; } + public global::Speechify.ToolKind? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::Speechify.ToolParamType? Type350 { get; set; } /// /// /// - public global::Speechify.WebhookToolConfigMethod? Type351 { get; set; } + public global::Speechify.ToolParam? Type351 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigWaitAudioPreset? Type352 { get; set; } + public global::Speechify.BuiltinToolConfig? Type352 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigWaitAudio? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfigOnDuplicate? Type354 { get; set; } + public global::Speechify.WebhookToolConfigMethod? Type354 { get; set; } /// /// /// - public global::Speechify.LongRunningToolConfig? Type355 { get; set; } + public global::Speechify.LongRunningToolConfigWaitAudioPreset? Type355 { get; set; } /// /// /// - public global::Speechify.WebhookToolConfig? Type356 { get; set; } + public global::Speechify.LongRunningToolConfigWaitAudio? Type356 { get; set; } /// /// /// - public global::Speechify.ClientToolConfig? Type357 { get; set; } + public global::Speechify.LongRunningToolConfigOnDuplicate? Type357 { get; set; } /// /// /// - public global::Speechify.MCPTransport? Type358 { get; set; } + public global::Speechify.LongRunningToolConfig? Type358 { get; set; } /// /// /// - public global::Speechify.MCPAuth? Type359 { get; set; } + public global::Speechify.WebhookToolConfig? Type359 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant1? Type360 { get; set; } + public global::Speechify.ClientToolConfig? Type360 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant1Type? Type361 { get; set; } + public global::Speechify.MCPTransport? Type361 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant2? Type362 { get; set; } + public global::Speechify.MCPAuth? Type362 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant2Type? Type363 { get; set; } + public global::Speechify.MCPAuthVariant1? Type363 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant3? Type364 { get; set; } + public global::Speechify.MCPAuthVariant1Type? Type364 { get; set; } /// /// /// - public global::Speechify.MCPAuthVariant3Type? Type365 { get; set; } + public global::Speechify.MCPAuthVariant2? Type365 { get; set; } /// /// /// - public global::Speechify.MCPAuthDiscriminator? Type366 { get; set; } + public global::Speechify.MCPAuthVariant2Type? Type366 { get; set; } /// /// /// - public global::Speechify.MCPAuthDiscriminatorType? Type367 { get; set; } + public global::Speechify.MCPAuthVariant3? Type367 { get; set; } /// /// /// - public global::Speechify.ToolActionClass? Type368 { get; set; } + public global::Speechify.MCPAuthVariant3Type? Type368 { get; set; } /// /// /// - public global::Speechify.MCPToolConfig? Type369 { get; set; } + public global::Speechify.MCPAuthDiscriminator? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type370 { get; set; } + public global::Speechify.MCPAuthDiscriminatorType? Type370 { get; set; } /// /// /// - public global::Speechify.AgentToolConfig? Type371 { get; set; } + public global::Speechify.ToolActionClass? Type371 { get; set; } /// /// /// - public global::Speechify.ToolApprovalClass? Type372 { get; set; } + public global::Speechify.MCPToolConfig? Type372 { get; set; } /// /// /// - public global::Speechify.ToolReach? Type373 { get; set; } + public global::System.Collections.Generic.Dictionary? Type373 { get; set; } /// /// /// - public global::Speechify.AgentTool? Type374 { get; set; } + public global::Speechify.AgentToolConfig? Type374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type375 { get; set; } + public global::Speechify.ToolApprovalClass? Type375 { get; set; } /// /// /// - public global::Speechify.ListAgentToolsResponse? Type376 { get; set; } + public global::Speechify.ToolReach? Type376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type377 { get; set; } + public global::Speechify.AgentTool? Type377 { get; set; } /// /// /// - public global::Speechify.CreateAgentToolRequestConfig? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::Speechify.CreateAgentToolRequest? Type379 { get; set; } + public global::Speechify.ListAgentToolsResponse? Type379 { get; set; } /// /// /// - public global::Speechify.ToolNameHolderKind? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::Speechify.ToolNameHolder? Type381 { get; set; } + public global::Speechify.CreateAgentToolRequestConfig? Type381 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenErrorDetailDetails? Type382 { get; set; } + public global::Speechify.CreateAgentToolRequest? Type382 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenErrorDetail? Type383 { get; set; } + public global::Speechify.ToolNameHolderKind? Type383 { get; set; } /// /// /// - public global::Speechify.ToolNameTakenError? Type384 { get; set; } + public global::Speechify.ToolNameHolder? Type384 { get; set; } /// /// /// - public global::Speechify.UpdateAgentToolRequestConfig? Type385 { get; set; } + public global::Speechify.ToolNameTakenErrorDetailDetails? Type385 { get; set; } /// /// /// - public global::Speechify.UpdateAgentToolRequest? Type386 { get; set; } + public global::Speechify.ToolNameTakenErrorDetail? Type386 { get; set; } /// /// /// - public global::Speechify.ToolConfig? Type387 { get; set; } + public global::Speechify.ToolNameTakenError? Type387 { get; set; } /// /// /// - public global::Speechify.Tool? Type388 { get; set; } + public global::Speechify.UpdateAgentToolRequestConfig? Type388 { get; set; } /// /// /// - public global::Speechify.ListToolsResponse? Type389 { get; set; } + public global::Speechify.UpdateAgentToolRequest? Type389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type390 { get; set; } + public global::Speechify.ToolConfig? Type390 { get; set; } /// /// /// - public global::Speechify.CreateToolRequestConfig? Type391 { get; set; } + public global::Speechify.Tool? Type391 { get; set; } /// /// /// - public global::Speechify.CreateToolRequest? Type392 { get; set; } + public global::Speechify.ListToolsResponse? Type392 { get; set; } /// /// /// - public global::Speechify.UpdateToolRequestConfig? Type393 { get; set; } + public global::System.Collections.Generic.IList? Type393 { get; set; } /// /// /// - public global::Speechify.UpdateToolRequest? Type394 { get; set; } + public global::Speechify.CreateToolRequestConfig? Type394 { get; set; } /// /// /// - public global::Speechify.ToolAttachedAgent? Type395 { get; set; } + public global::Speechify.CreateToolRequest? Type395 { get; set; } /// /// /// - public global::Speechify.ListToolAttachedAgentsResponse? Type396 { get; set; } + public global::Speechify.UpdateToolRequestConfig? Type396 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type397 { get; set; } + public global::Speechify.UpdateToolRequest? Type397 { get; set; } /// /// /// - public global::Speechify.TestMCPConnectionRequest? Type398 { get; set; } + public global::Speechify.ToolAttachedAgent? Type398 { get; set; } /// /// /// - public global::Speechify.MCPProbeTool? Type399 { get; set; } + public global::Speechify.ListToolAttachedAgentsResponse? Type399 { get; set; } /// /// /// - public global::Speechify.McpProbeErrorDetailsStage? Type400 { get; set; } + public global::System.Collections.Generic.IList? Type400 { get; set; } /// /// /// - public global::Speechify.MCPProbeErrorDetails? Type401 { get; set; } + public global::Speechify.TestMCPConnectionRequest? Type401 { get; set; } /// /// /// - public global::Speechify.MCPProbeResult? Type402 { get; set; } + public global::Speechify.MCPProbeTool? Type402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type403 { get; set; } + public global::Speechify.McpProbeErrorDetailsStage? Type403 { get; set; } /// /// /// - public global::Speechify.TestWebhookConnectionRequest? Type404 { get; set; } + public global::Speechify.MCPProbeErrorDetails? Type404 { get; set; } /// /// /// - public global::Speechify.WebhookProbeResult? Type405 { get; set; } + public global::Speechify.MCPProbeResult? Type405 { get; set; } /// /// /// - public global::Speechify.SystemBuiltinInfoExecution? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::Speechify.SystemBuiltinInfo? Type407 { get; set; } + public global::Speechify.TestWebhookConnectionRequest? Type407 { get; set; } /// /// /// - public global::Speechify.ListSystemBuiltinsResponse? Type408 { get; set; } + public global::Speechify.WebhookProbeResult? Type408 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type409 { get; set; } + public global::Speechify.SystemBuiltinInfoExecution? Type409 { get; set; } /// /// /// - public global::Speechify.TestType? Type410 { get; set; } + public global::Speechify.SystemBuiltinInfo? Type410 { get; set; } /// /// /// - public global::Speechify.SimulationMessageRole? Type411 { get; set; } + public global::Speechify.ListSystemBuiltinsResponse? Type411 { get; set; } /// /// /// - public global::Speechify.SimulationMessage? Type412 { get; set; } + public global::System.Collections.Generic.IList? Type412 { get; set; } /// /// /// - public global::Speechify.ReplyConfig? Type413 { get; set; } + public global::Speechify.TestType? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::Speechify.SimulationMessageRole? Type414 { get; set; } /// /// /// - public global::Speechify.ParameterCheckMode? Type415 { get; set; } + public global::Speechify.SimulationMessage? Type415 { get; set; } /// /// /// - public global::Speechify.ParameterCheck? Type416 { get; set; } + public global::Speechify.ReplyConfig? Type416 { get; set; } /// /// /// - public global::Speechify.ToolCallConfig? Type417 { get; set; } + public global::System.Collections.Generic.IList? Type417 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type418 { get; set; } + public global::Speechify.ParameterCheckMode? Type418 { get; set; } /// /// /// - public global::Speechify.DataAssertionMode? Type419 { get; set; } + public global::Speechify.ParameterCheck? Type419 { get; set; } /// /// /// - public global::Speechify.DataAssertion? Type420 { get; set; } + public global::Speechify.ToolCallConfig? Type420 { get; set; } /// /// /// - public global::Speechify.SimulationConfig? Type421 { get; set; } + public global::System.Collections.Generic.IList? Type421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type422 { get; set; } + public global::Speechify.DataAssertionMode? Type422 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestRequestConfig? Type423 { get; set; } + public global::Speechify.DataAssertion? Type423 { get; set; } /// /// /// - public global::Speechify.MockingStrategy? Type424 { get; set; } + public global::Speechify.SimulationConfig? Type424 { get; set; } /// /// /// - public global::Speechify.ToolMock? Type425 { get; set; } + public global::System.Collections.Generic.IList? Type425 { get; set; } /// /// /// - public global::Speechify.NoMatchBehavior? Type426 { get; set; } + public global::Speechify.CreateAgentTestRequestConfig? Type426 { get; set; } /// /// /// - public global::Speechify.ToolMockConfig? Type427 { get; set; } + public global::Speechify.MockingStrategy? Type427 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type428 { get; set; } + public global::Speechify.ToolMock? Type428 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestRequest? Type429 { get; set; } + public global::Speechify.NoMatchBehavior? Type429 { get; set; } /// /// /// - public global::Speechify.AgentTestConfig? Type430 { get; set; } + public global::Speechify.ToolMockConfig? Type430 { get; set; } /// /// /// - public global::Speechify.AgentTest? Type431 { get; set; } + public global::System.Collections.Generic.IList? Type431 { get; set; } /// /// /// - public global::Speechify.TestVerdict? Type432 { get; set; } + public global::Speechify.CreateAgentTestRequest? Type432 { get; set; } /// /// /// - public global::Speechify.ReplyResult? Type433 { get; set; } + public global::Speechify.AgentTestConfig? Type433 { get; set; } /// /// /// - public global::Speechify.ParameterCheckResult? Type434 { get; set; } + public global::Speechify.AgentTest? Type434 { get; set; } /// /// /// - public global::Speechify.ToolCallResult? Type435 { get; set; } + public global::Speechify.TestVerdict? Type435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type436 { get; set; } + public global::Speechify.ReplyResult? Type436 { get; set; } /// /// /// - public global::Speechify.SimulationToolCall? Type437 { get; set; } + public global::Speechify.ParameterCheckResult? Type437 { get; set; } /// /// /// - public global::Speechify.SimulationResultSentiment? Type438 { get; set; } + public global::Speechify.ToolCallResult? Type438 { get; set; } /// /// /// - public global::Speechify.SimulationCriterionResultStatus? Type439 { get; set; } + public global::System.Collections.Generic.IList? Type439 { get; set; } /// /// /// - public global::Speechify.SimulationCriterionResult? Type440 { get; set; } + public global::Speechify.SimulationToolCall? Type440 { get; set; } /// /// /// - public global::Speechify.DataAssertionResultMode? Type441 { get; set; } + public global::Speechify.SimulationResultSentiment? Type441 { get; set; } /// /// /// - public global::Speechify.DataAssertionResult? Type442 { get; set; } + public global::Speechify.SimulationCriterionResultStatus? Type442 { get; set; } /// /// /// - public global::Speechify.SimulationResult? Type443 { get; set; } + public global::Speechify.SimulationCriterionResult? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::Speechify.DataAssertionResultMode? Type444 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type445 { get; set; } + public global::Speechify.DataAssertionResult? Type445 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type446 { get; set; } + public global::Speechify.SimulationResult? Type446 { get; set; } /// /// /// - public global::Speechify.TestRunResult? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::Speechify.AgentTestRun? Type448 { get; set; } + public global::System.Collections.Generic.IList? Type448 { get; set; } /// /// /// - public global::Speechify.AgentTestWithLastRun? Type449 { get; set; } + public global::System.Collections.Generic.IList? Type449 { get; set; } /// /// /// - public global::Speechify.ListTestsResponse? Type450 { get; set; } + public global::Speechify.TestRunResult? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::Speechify.AgentTestRun? Type451 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestRequestConfig? Type452 { get; set; } + public global::Speechify.AgentTestWithLastRun? Type452 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestRequest? Type453 { get; set; } + public global::Speechify.ListTestsResponse? Type453 { get; set; } /// /// /// - public global::Speechify.AgentTestFolder? Type454 { get; set; } + public global::System.Collections.Generic.IList? Type454 { get; set; } /// /// /// - public global::Speechify.ListAgentTestFoldersResponse? Type455 { get; set; } + public global::Speechify.UpdateAgentTestRequestConfig? Type455 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type456 { get; set; } + public global::Speechify.UpdateAgentTestRequest? Type456 { get; set; } /// /// /// - public global::Speechify.CreateAgentTestFolderRequest? Type457 { get; set; } + public global::Speechify.AgentTestFolder? Type457 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTestFolderRequest? Type458 { get; set; } + public global::Speechify.ListAgentTestFoldersResponse? Type458 { get; set; } /// /// /// - public global::Speechify.ListAgentTestRunsResponse? Type459 { get; set; } + public global::System.Collections.Generic.IList? Type459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type460 { get; set; } + public global::Speechify.CreateAgentTestFolderRequest? Type460 { get; set; } /// /// /// - public global::Speechify.RunTarget? Type461 { get; set; } + public global::Speechify.UpdateAgentTestFolderRequest? Type461 { get; set; } /// /// /// - public global::Speechify.TestRunConfigOverride? Type462 { get; set; } + public global::Speechify.ListAgentTestRunsResponse? Type462 { get; set; } /// /// /// - public global::Speechify.RunTargetedTestsRequest? Type463 { get; set; } + public global::System.Collections.Generic.IList? Type463 { get; set; } /// /// /// - public global::Speechify.SuiteRunTrigger? Type464 { get; set; } + public global::Speechify.RunTarget? Type464 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunResults? Type465 { get; set; } + public global::Speechify.TestRunConfigOverride? Type465 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRun? Type466 { get; set; } + public global::Speechify.RunTargetedTestsRequest? Type466 { get; set; } /// /// /// - public global::Speechify.RunAgentTestsResponse? Type467 { get; set; } + public global::Speechify.SuiteRunTrigger? Type467 { get; set; } /// /// /// - public global::Speechify.BatchRunEntry? Type468 { get; set; } + public global::Speechify.AgentTestSuiteRunResults? Type468 { get; set; } /// /// /// - public global::Speechify.RunBatchRequest? Type469 { get; set; } + public global::Speechify.AgentTestSuiteRun? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::Speechify.RunAgentTestsResponse? Type470 { get; set; } /// /// /// - public global::Speechify.ListSuiteRunsResponse? Type471 { get; set; } + public global::Speechify.BatchRunEntry? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::Speechify.RunBatchRequest? Type472 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunWithRunsResults? Type473 { get; set; } + public global::System.Collections.Generic.IList? Type473 { get; set; } /// /// /// - public global::Speechify.SuiteChildRun? Type474 { get; set; } + public global::Speechify.ListSuiteRunsResponse? Type474 { get; set; } /// /// /// - public global::Speechify.AgentTestSuiteRunWithRuns? Type475 { get; set; } + public global::System.Collections.Generic.IList? Type475 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type476 { get; set; } + public global::Speechify.AgentTestSuiteRunWithRunsResults? Type476 { get; set; } /// /// /// - public global::Speechify.RunAllTestsRequest? Type477 { get; set; } + public global::Speechify.SuiteChildRun? Type477 { get; set; } /// /// /// - public global::Speechify.TestStatsBucket? Type478 { get; set; } + public global::Speechify.AgentTestSuiteRunWithRuns? Type478 { get; set; } /// /// /// - public global::Speechify.TestStats? Type479 { get; set; } + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type480 { get; set; } + public global::Speechify.RunAllTestsRequest? Type480 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type481 { get; set; } + public global::Speechify.TestStatsBucket? Type481 { get; set; } /// /// /// - public global::Speechify.ShareLinkStatus? Type482 { get; set; } + public global::Speechify.TestStats? Type482 { get; set; } /// /// /// - public global::Speechify.ShareLink? Type483 { get; set; } + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// /// - public global::Speechify.ListShareLinksResponse? Type484 { get; set; } + public global::System.Collections.Generic.Dictionary? Type484 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type485 { get; set; } + public global::Speechify.ShareLinkStatus? Type485 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkRequest? Type486 { get; set; } + public global::Speechify.ShareLink? Type486 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkResponseStatus? Type487 { get; set; } + public global::Speechify.ListShareLinksResponse? Type487 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkResponse? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::Speechify.RevealShareLinkTokenResponse? Type489 { get; set; } + public global::Speechify.CreateShareLinkRequest? Type489 { get; set; } /// /// /// - public global::Speechify.ShareLinkPreview? Type490 { get; set; } + public global::Speechify.CreateShareLinkResponseStatus? Type490 { get; set; } /// /// /// - public global::Speechify.CreateShareLinkSessionRequest? Type491 { get; set; } + public global::Speechify.CreateShareLinkResponse? Type491 { get; set; } /// /// /// - public global::Speechify.ShareLinkSession? Type492 { get; set; } + public global::Speechify.RevealShareLinkTokenResponse? Type492 { get; set; } /// /// /// - public global::Speechify.PhoneNumberProvider? Type493 { get; set; } + public global::Speechify.ShareLinkPreview? Type493 { get; set; } /// /// /// - public global::Speechify.PhoneNumberCapability? Type494 { get; set; } + public global::Speechify.CreateShareLinkSessionRequest? Type494 { get; set; } /// /// /// - public global::Speechify.PhoneNumberReputationRisk? Type495 { get; set; } + public global::Speechify.ShareLinkSession? Type495 { get; set; } /// /// /// - public global::Speechify.PhoneNumberReputation? Type496 { get; set; } + public global::Speechify.PhoneNumberProvider? Type496 { get; set; } /// /// /// - public global::Speechify.PhoneNumber? Type497 { get; set; } + public global::Speechify.PhoneNumberCapability? Type497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type498 { get; set; } + public global::Speechify.PhoneNumberReputationRisk? Type498 { get; set; } /// /// /// - public global::Speechify.ListPhoneNumbersResponse? Type499 { get; set; } + public global::Speechify.PhoneNumberReputation? Type499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type500 { get; set; } + public global::Speechify.PhoneNumber? Type500 { get; set; } /// /// /// - public global::Speechify.TwilioImportSpec? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::Speechify.TelnyxImportSpec? Type502 { get; set; } + public global::Speechify.ListPhoneNumbersResponse? Type502 { get; set; } /// /// /// - public global::Speechify.ImportPhoneNumberRequest? Type503 { get; set; } + public global::System.Collections.Generic.IList? Type503 { get; set; } /// /// /// - public global::Speechify.PurchasedPhoneNumberProvider? Type504 { get; set; } + public global::Speechify.TwilioImportSpec? Type504 { get; set; } /// /// /// - public global::Speechify.AvailablePhoneNumber? Type505 { get; set; } + public global::Speechify.TelnyxImportSpec? Type505 { get; set; } /// /// /// - public global::Speechify.SearchAvailablePhoneNumbersResponse? Type506 { get; set; } + public global::Speechify.ImportPhoneNumberRequest? Type506 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type507 { get; set; } + public global::Speechify.PurchasedPhoneNumberProvider? Type507 { get; set; } /// /// /// - public global::Speechify.IntendedUseMarketingOrInformational? Type508 { get; set; } + public global::Speechify.AvailablePhoneNumber? Type508 { get; set; } /// /// /// - public global::Speechify.IntendedUse? Type509 { get; set; } + public global::Speechify.SearchAvailablePhoneNumbersResponse? Type509 { get; set; } /// /// /// - public global::Speechify.PurchasePhoneNumberRequest? Type510 { get; set; } + public global::System.Collections.Generic.IList? Type510 { get; set; } /// /// /// - public global::Speechify.UpdatePhoneNumberRequest? Type511 { get; set; } + public global::Speechify.IntendedUseMarketingOrInformational? Type511 { get; set; } /// /// /// - public global::Speechify.CreateOutboundCallRequest? Type512 { get; set; } + public global::Speechify.IntendedUse? Type512 { get; set; } /// /// /// - public global::Speechify.CreateOutboundCallResponse? Type513 { get; set; } + public global::Speechify.PurchasePhoneNumberRequest? Type513 { get; set; } /// /// /// - public global::Speechify.BatchCall? Type514 { get; set; } + public global::Speechify.UpdatePhoneNumberRequest? Type514 { get; set; } /// /// /// - public global::Speechify.ListBatchCallsResponse? Type515 { get; set; } + public global::Speechify.CreateOutboundCallRequest? Type515 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type516 { get; set; } + public global::Speechify.CreateOutboundCallResponse? Type516 { get; set; } /// /// /// - public global::Speechify.BatchRecipientRequest? Type517 { get; set; } + public global::Speechify.BatchCall? Type517 { get; set; } /// /// /// - public global::Speechify.CreateBatchCallRequest? Type518 { get; set; } + public global::Speechify.ListBatchCallsResponse? Type518 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type519 { get; set; } + public global::System.Collections.Generic.IList? Type519 { get; set; } /// /// /// - public global::Speechify.BatchRecipientStatus? Type520 { get; set; } + public global::Speechify.BatchRecipientRequest? Type520 { get; set; } /// /// /// - public global::Speechify.BatchRecipient? Type521 { get; set; } + public global::Speechify.CreateBatchCallRequest? Type521 { get; set; } /// /// /// - public global::Speechify.ListBatchRecipientsResponse? Type522 { get; set; } + public global::System.Collections.Generic.IList? Type522 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type523 { get; set; } + public global::Speechify.BatchRecipientStatus? Type523 { get; set; } /// /// /// - public global::Speechify.IvrMenuListEntryMenuTree? Type524 { get; set; } + public global::Speechify.BatchRecipient? Type524 { get; set; } /// /// /// - public global::Speechify.IVRMenuListEntry? Type525 { get; set; } + public global::Speechify.ListBatchRecipientsResponse? Type525 { get; set; } /// /// /// - public global::Speechify.ListIVRMenusResponse? Type526 { get; set; } + public global::System.Collections.Generic.IList? Type526 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type527 { get; set; } + public global::Speechify.IvrMenuListEntryMenuTree? Type527 { get; set; } /// /// /// - public global::Speechify.IvrMenuMenuTree? Type528 { get; set; } + public global::Speechify.IVRMenuListEntry? Type528 { get; set; } /// /// /// - public global::Speechify.IVRMenu? Type529 { get; set; } + public global::Speechify.ListIVRMenusResponse? Type529 { get; set; } /// /// /// - public global::Speechify.UpdateIVRMenuLabelRequest? Type530 { get; set; } + public global::System.Collections.Generic.IList? Type530 { get; set; } /// /// /// - public global::Speechify.InvalidateIVRMenuRequest? Type531 { get; set; } + public global::Speechify.IvrMenuMenuTree? Type531 { get; set; } /// /// /// - public global::Speechify.SIPTrunkProvider? Type532 { get; set; } + public global::Speechify.IVRMenu? Type532 { get; set; } /// /// /// - public global::Speechify.SIPTrunkDirection? Type533 { get; set; } + public global::Speechify.UpdateIVRMenuLabelRequest? Type533 { get; set; } /// /// /// - public global::Speechify.SIPTransport? Type534 { get; set; } + public global::Speechify.InvalidateIVRMenuRequest? Type534 { get; set; } /// /// /// - public global::Speechify.SIPMediaEncryption? Type535 { get; set; } + public global::Speechify.SIPTrunkProvider? Type535 { get; set; } /// /// /// - public global::Speechify.SIPTrunk? Type536 { get; set; } + public global::Speechify.SIPTrunkDirection? Type536 { get; set; } /// /// /// - public global::Speechify.ListSIPTrunksResponse? Type537 { get; set; } + public global::Speechify.SIPTransport? Type537 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type538 { get; set; } + public global::Speechify.SIPMediaEncryption? Type538 { get; set; } /// /// /// - public global::Speechify.CreateSipTrunkRequestCredentials? Type539 { get; set; } + public global::Speechify.SIPTrunk? Type539 { get; set; } /// /// /// - public global::Speechify.CreateSIPTrunkRequest? Type540 { get; set; } + public global::Speechify.ListSIPTrunksResponse? Type540 { get; set; } /// /// /// - public global::Speechify.Caller? Type541 { get; set; } + public global::System.Collections.Generic.IList? Type541 { get; set; } /// /// /// - public global::Speechify.ListCallersResponse? Type542 { get; set; } + public global::Speechify.CreateSipTrunkRequestCredentials? Type542 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type543 { get; set; } + public global::Speechify.CreateSIPTrunkRequest? Type543 { get; set; } /// /// /// - public global::Speechify.UpdateCallerRequest? Type544 { get; set; } + public global::Speechify.Caller? Type544 { get; set; } /// /// /// - public global::Speechify.DeleteCallerResponse? Type545 { get; set; } + public global::Speechify.ListCallersResponse? Type545 { get; set; } /// /// /// - public global::Speechify.ListCallerConversationsResponse? Type546 { get; set; } + public global::System.Collections.Generic.IList? Type546 { get; set; } /// /// /// - public global::Speechify.ListCallerMemoriesResponse? Type547 { get; set; } + public global::Speechify.UpdateCallerRequest? Type547 { get; set; } /// /// /// - public global::Speechify.AudioAsset? Type548 { get; set; } + public global::Speechify.DeleteCallerResponse? Type548 { get; set; } /// /// /// - public global::Speechify.ListAudioAssetsResponse? Type549 { get; set; } + public global::Speechify.ListCallerConversationsResponse? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::Speechify.ListCallerMemoriesResponse? Type550 { get; set; } /// /// /// - public global::Speechify.TeamMember? Type551 { get; set; } + public global::Speechify.AudioAsset? Type551 { get; set; } /// /// /// - public global::Speechify.Team? Type552 { get; set; } + public global::Speechify.ListAudioAssetsResponse? Type552 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type553 { get; set; } + public global::System.Collections.Generic.IList? Type553 { get; set; } /// /// /// - public global::Speechify.ListTeamsResponse? Type554 { get; set; } + public global::Speechify.TeamMember? Type554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type555 { get; set; } + public global::Speechify.Team? Type555 { get; set; } /// /// /// - public global::Speechify.TeamMemberInput? Type556 { get; set; } + public global::System.Collections.Generic.IList? Type556 { get; set; } /// /// /// - public global::Speechify.CreateTeamRequest? Type557 { get; set; } + public global::Speechify.ListTeamsResponse? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type558 { get; set; } + public global::System.Collections.Generic.IList? Type558 { get; set; } /// /// /// - public global::Speechify.UpdateTeamRequest? Type559 { get; set; } + public global::Speechify.TeamMemberInput? Type559 { get; set; } /// /// /// - public global::Speechify.CreateTeamRunRequest? Type560 { get; set; } + public global::Speechify.CreateTeamRequest? Type560 { get; set; } /// /// /// - public global::Speechify.AgentTriggerType? Type561 { get; set; } + public global::System.Collections.Generic.IList? Type561 { get; set; } /// /// /// - public global::Speechify.TriggerRunSpec? Type562 { get; set; } + public global::Speechify.UpdateTeamRequest? Type562 { get; set; } /// /// /// - public global::Speechify.TriggerScheduleConfig? Type563 { get; set; } + public global::Speechify.CreateTeamRunRequest? Type563 { get; set; } /// /// /// - public global::Speechify.TriggerWebhookConfigUserIdentitySource? Type564 { get; set; } + public global::Speechify.AgentTriggerType? Type564 { get; set; } /// /// /// - public global::Speechify.TriggerWebhookConfig? Type565 { get; set; } + public global::Speechify.TriggerRunSpec? Type565 { get; set; } /// /// /// - public global::Speechify.AgentTriggerLastFireStatus? Type566 { get; set; } + public global::Speechify.TriggerScheduleConfig? Type566 { get; set; } /// /// /// - public global::Speechify.AgentTrigger? Type567 { get; set; } + public global::Speechify.TriggerWebhookConfigUserIdentitySource? Type567 { get; set; } /// /// /// - public global::Speechify.ListAgentTriggersResponse? Type568 { get; set; } + public global::Speechify.TriggerWebhookConfig? Type568 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type569 { get; set; } + public global::Speechify.AgentTriggerLastFireStatus? Type569 { get; set; } /// /// /// - public global::Speechify.CreateAgentTriggerRequestType? Type570 { get; set; } + public global::Speechify.TriggerThread? Type570 { get; set; } /// /// /// - public global::Speechify.CreateAgentTriggerRequest? Type571 { get; set; } + public global::Speechify.AgentTrigger? Type571 { get; set; } /// /// /// - public global::Speechify.UpdateAgentTriggerRequest? Type572 { get; set; } + public global::Speechify.ListAgentTriggersResponse? Type572 { get; set; } /// /// /// - public global::Speechify.AgentTriggerFireResponseStatus? Type573 { get; set; } + public global::System.Collections.Generic.IList? Type573 { get; set; } /// /// /// - public global::Speechify.AgentTriggerFireResponse? Type574 { get; set; } + public global::Speechify.CreateAgentTriggerRequestType? Type574 { get; set; } /// /// /// - public global::Speechify.Skill? Type575 { get; set; } + public global::Speechify.CreateAgentTriggerRequest? Type575 { get; set; } /// /// /// - public global::Speechify.ListSkillsResponse? Type576 { get; set; } + public global::Speechify.UpdateAgentTriggerRequest? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::Speechify.AgentTriggerFireResponseStatus? Type577 { get; set; } /// /// /// - public global::Speechify.CreateSkillRequest? Type578 { get; set; } + public global::Speechify.AgentTriggerFireResponse? Type578 { get; set; } /// /// /// - public global::Speechify.UpdateSkillRequest? Type579 { get; set; } + public global::Speechify.Skill? Type579 { get; set; } /// /// /// - public global::Speechify.SkillVersion? Type580 { get; set; } + public global::Speechify.ListSkillsResponse? Type580 { get; set; } /// /// /// - public global::Speechify.ListSkillVersionsResponse? Type581 { get; set; } + public global::System.Collections.Generic.IList? Type581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type582 { get; set; } + public global::Speechify.CreateSkillRequest? Type582 { get; set; } /// /// /// - public global::Speechify.AgentSkill? Type583 { get; set; } + public global::Speechify.UpdateSkillRequest? Type583 { get; set; } /// /// /// - public global::Speechify.ListAgentSkillsResponse? Type584 { get; set; } + public global::Speechify.SkillVersion? Type584 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type585 { get; set; } + public global::Speechify.ListSkillVersionsResponse? Type585 { get; set; } /// /// /// - public global::Speechify.AttachSkillRequest? Type586 { get; set; } + public global::System.Collections.Generic.IList? Type586 { get; set; } /// /// /// - public global::Speechify.UpdateAgentSkillRequest? Type587 { get; set; } + public global::Speechify.AgentSkill? Type587 { get; set; } /// /// /// - public global::Speechify.V1FilesGetParametersKind? Type588 { get; set; } + public global::Speechify.ListAgentSkillsResponse? Type588 { get; set; } /// /// /// - public global::Speechify.FileKind? Type589 { get; set; } + public global::System.Collections.Generic.IList? Type589 { get; set; } /// /// /// - public global::Speechify.FileSource? Type590 { get; set; } + public global::Speechify.AttachSkillRequest? Type590 { get; set; } /// /// /// - public global::Speechify.File? Type591 { get; set; } + public global::Speechify.UpdateAgentSkillRequest? Type591 { get; set; } /// /// /// - public global::Speechify.ListFilesResponse? Type592 { get; set; } + public global::Speechify.V1FilesGetParametersKind? Type592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type593 { get; set; } + public global::Speechify.FileKind? Type593 { get; set; } /// /// /// - public global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind? Type594 { get; set; } + public global::Speechify.FileSource? Type594 { get; set; } /// /// /// - public global::Speechify.Store? Type595 { get; set; } + public global::Speechify.File? Type595 { get; set; } /// /// /// - public global::Speechify.ListStoresResponse? Type596 { get; set; } + public global::Speechify.ListFilesResponse? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::System.Collections.Generic.IList? Type597 { get; set; } /// /// /// - public global::Speechify.CreateStoreRequest? Type598 { get; set; } + public global::Speechify.V1FilesPostRequestBodyContentMultipartFormDataSchemaKind? Type598 { get; set; } /// /// /// - public global::Speechify.UpdateStoreRequest? Type599 { get; set; } + public global::Speechify.Store? Type599 { get; set; } /// /// /// - public global::Speechify.StoreCollection? Type600 { get; set; } + public global::Speechify.ListStoresResponse? Type600 { get; set; } /// /// /// - public global::Speechify.ListStoreCollectionsResponse? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type602 { get; set; } + public global::Speechify.CreateStoreRequest? Type602 { get; set; } /// /// /// - public global::Speechify.StoreDocumentSource? Type603 { get; set; } + public global::Speechify.UpdateStoreRequest? Type603 { get; set; } /// /// /// - public global::Speechify.StoreDocument? Type604 { get; set; } + public global::Speechify.StoreCollection? Type604 { get; set; } /// /// /// - public global::Speechify.QueryStoreDocumentsResponse? Type605 { get; set; } + public global::Speechify.ListStoreCollectionsResponse? Type605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type606 { get; set; } + public global::System.Collections.Generic.IList? Type606 { get; set; } /// /// /// - public global::Speechify.WriteStoreDocumentRequest? Type607 { get; set; } + public global::Speechify.StoreDocumentSource? Type607 { get; set; } /// /// /// - public global::Speechify.StoreWhereClauseOp? Type608 { get; set; } + public global::Speechify.StoreDocument? Type608 { get; set; } /// /// /// - public global::Speechify.StoreWhereClause? Type609 { get; set; } + public global::Speechify.QueryStoreDocumentsResponse? Type609 { get; set; } /// /// /// - public global::Speechify.StoreOrderByDirection? Type610 { get; set; } + public global::System.Collections.Generic.IList? Type610 { get; set; } /// /// /// - public global::Speechify.StoreOrderBy? Type611 { get; set; } + public global::Speechify.WriteStoreDocumentRequest? Type611 { get; set; } /// /// /// - public global::Speechify.StoreDocumentQuery? Type612 { get; set; } + public global::Speechify.StoreWhereClauseOp? Type612 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type613 { get; set; } + public global::Speechify.StoreWhereClause? Type613 { get; set; } /// /// /// - public global::Speechify.StoreAggregateMetricOp? Type614 { get; set; } + public global::Speechify.StoreOrderByDirection? Type614 { get; set; } /// /// /// - public global::Speechify.StoreAggregateMetric? Type615 { get; set; } + public global::Speechify.StoreOrderBy? Type615 { get; set; } /// /// /// - public global::Speechify.StoreAggregateQuery? Type616 { get; set; } + public global::Speechify.StoreDocumentQuery? Type616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type617 { get; set; } + public global::System.Collections.Generic.IList? Type617 { get; set; } /// /// /// - public global::Speechify.StoreAggregateGroup? Type618 { get; set; } + public global::Speechify.StoreAggregateMetricOp? Type618 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type619 { get; set; } + public global::Speechify.StoreAggregateMetric? Type619 { get; set; } /// /// /// - public global::Speechify.StoreAggregateResponse? Type620 { get; set; } + public global::Speechify.StoreAggregateQuery? Type620 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type621 { get; set; } + public global::System.Collections.Generic.IList? Type621 { get; set; } /// /// /// - public global::Speechify.StoreBatchWriteOp? Type622 { get; set; } + public global::Speechify.StoreAggregateGroup? Type622 { get; set; } /// /// /// - public global::Speechify.StoreBatchWrite? Type623 { get; set; } + public global::System.Collections.Generic.Dictionary? Type623 { get; set; } /// /// /// - public global::Speechify.StoreBatchRequest? Type624 { get; set; } + public global::Speechify.StoreAggregateResponse? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type625 { get; set; } + public global::System.Collections.Generic.IList? Type625 { get; set; } /// /// /// - public global::Speechify.StoreBatchResultOp? Type626 { get; set; } + public global::Speechify.StoreBatchWriteOp? Type626 { get; set; } /// /// /// - public global::Speechify.StoreBatchResult? Type627 { get; set; } + public global::Speechify.StoreBatchWrite? Type627 { get; set; } /// /// /// - public global::Speechify.StoreBatchResponse? Type628 { get; set; } + public global::Speechify.StoreBatchRequest? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::System.Collections.Generic.IList? Type629 { get; set; } /// /// /// - public global::Speechify.ListAgentStoresResponse? Type630 { get; set; } + public global::Speechify.StoreBatchResultOp? Type630 { get; set; } /// /// /// - public global::Speechify.HostedApiAuthMode? Type631 { get; set; } + public global::Speechify.StoreBatchResult? Type631 { get; set; } /// /// /// - public global::Speechify.HostedAPI? Type632 { get; set; } + public global::Speechify.StoreBatchResponse? Type632 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIsResponse? Type633 { get; set; } + public global::System.Collections.Generic.IList? Type633 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type634 { get; set; } + public global::Speechify.ListAgentStoresResponse? Type634 { get; set; } /// /// /// - public global::Speechify.CreateHostedApiRequestAuthMode? Type635 { get; set; } + public global::Speechify.HostedApiAuthMode? Type635 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIRequest? Type636 { get; set; } + public global::Speechify.HostedAPI? Type636 { get; set; } /// /// /// - public global::Speechify.UpdateHostedApiRequestAuthMode? Type637 { get; set; } + public global::Speechify.ListHostedAPIsResponse? Type637 { get; set; } /// /// /// - public global::Speechify.UpdateHostedAPIRequest? Type638 { get; set; } + public global::System.Collections.Generic.IList? Type638 { get; set; } /// /// /// - public global::Speechify.HostedApiUsageRoutesItems? Type639 { get; set; } + public global::Speechify.CreateHostedApiRequestAuthMode? Type639 { get; set; } /// /// /// - public global::Speechify.HostedAPIUsage? Type640 { get; set; } + public global::Speechify.CreateHostedAPIRequest? Type640 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type641 { get; set; } + public global::Speechify.UpdateHostedApiRequestAuthMode? Type641 { get; set; } /// /// /// - public global::Speechify.HostedApiRouteMethod? Type642 { get; set; } + public global::Speechify.UpdateHostedAPIRequest? Type642 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverType? Type643 { get; set; } + public global::Speechify.HostedApiUsageRoutesItems? Type643 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWriteMode? Type644 { get; set; } + public global::Speechify.HostedAPIUsage? Type644 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWhereItemsOp? Type645 { get; set; } + public global::System.Collections.Generic.IList? Type645 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverWhereItems? Type646 { get; set; } + public global::Speechify.HostedApiRouteMethod? Type646 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverOrderByDirection? Type647 { get; set; } + public global::Speechify.HostedApiResolverType? Type647 { get; set; } /// /// /// - public global::Speechify.HostedApiResolverOrderBy? Type648 { get; set; } + public global::Speechify.HostedApiResolverWriteMode? Type648 { get; set; } /// /// /// - public global::Speechify.HostedAPIResolver? Type649 { get; set; } + public global::Speechify.HostedApiResolverWhereItemsOp? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::Speechify.HostedApiResolverWhereItems? Type650 { get; set; } /// /// /// - public global::Speechify.HostedAPIRoute? Type651 { get; set; } + public global::Speechify.HostedApiResolverOrderByDirection? Type651 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIRoutesResponse? Type652 { get; set; } + public global::Speechify.HostedApiResolverOrderBy? Type652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type653 { get; set; } + public global::Speechify.HostedAPIResolver? Type653 { get; set; } /// /// /// - public global::Speechify.CreateHostedApiRouteRequestMethod? Type654 { get; set; } + public global::System.Collections.Generic.IList? Type654 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIRouteRequest? Type655 { get; set; } + public global::Speechify.HostedAPIRoute? Type655 { get; set; } /// /// /// - public global::Speechify.UpdateHostedApiRouteRequestMethod? Type656 { get; set; } + public global::Speechify.ListHostedAPIRoutesResponse? Type656 { get; set; } /// /// /// - public global::Speechify.UpdateHostedAPIRouteRequest? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::Speechify.HostedAPIKey? Type658 { get; set; } + public global::Speechify.CreateHostedApiRouteRequestMethod? Type658 { get; set; } /// /// /// - public global::Speechify.ListHostedAPIKeysResponse? Type659 { get; set; } + public global::Speechify.CreateHostedAPIRouteRequest? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::Speechify.UpdateHostedApiRouteRequestMethod? Type660 { get; set; } /// /// /// - public global::Speechify.CreateHostedAPIKeyRequest? Type661 { get; set; } + public global::Speechify.UpdateHostedAPIRouteRequest? Type661 { get; set; } /// /// /// - public global::Speechify.HostedAPIUserTokenSecret? Type662 { get; set; } + public global::Speechify.HostedAPIKey? Type662 { get; set; } /// /// /// - public global::Speechify.ContactIdentifierKind? Type663 { get; set; } + public global::Speechify.ListHostedAPIKeysResponse? Type663 { get; set; } /// /// /// - public global::Speechify.ContactIdentifierAssertedBy? Type664 { get; set; } + public global::System.Collections.Generic.IList? Type664 { get; set; } /// /// /// - public global::Speechify.ContactIdentifier? Type665 { get; set; } + public global::Speechify.CreateHostedAPIKeyRequest? Type665 { get; set; } /// /// /// - public global::Speechify.Contact? Type666 { get; set; } + public global::Speechify.HostedAPIUserTokenSecret? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::Speechify.ContactIdentifierKind? Type667 { get; set; } /// /// /// - public global::Speechify.ListContactsResponse? Type668 { get; set; } + public global::Speechify.ContactIdentifierAssertedBy? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::Speechify.ContactIdentifier? Type669 { get; set; } /// /// /// - public global::Speechify.UpdateContactRequest? Type670 { get; set; } + public global::Speechify.Contact? Type670 { get; set; } /// /// /// - public global::Speechify.DeleteContactResponse? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::Speechify.AttachContactIdentifierRequestKind? Type672 { get; set; } + public global::Speechify.ListContactsResponse? Type672 { get; set; } /// /// /// - public global::Speechify.AttachContactIdentifierRequest? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::Speechify.MergeContactsRequest? Type674 { get; set; } + public global::Speechify.UpdateContactRequest? Type674 { get; set; } /// /// /// - public global::Speechify.MergeContactsResponseMerged? Type675 { get; set; } + public global::Speechify.DeleteContactResponse? Type675 { get; set; } /// /// /// - public global::Speechify.MergeContactsResponse? Type676 { get; set; } + public global::Speechify.AttachContactIdentifierRequestKind? Type676 { get; set; } /// /// /// - public global::Speechify.BillingEntitlementsMaxLlmModelClass? Type677 { get; set; } + public global::Speechify.AttachContactIdentifierRequest? Type677 { get; set; } /// /// /// - public global::Speechify.BillingEntitlements? Type678 { get; set; } + public global::Speechify.MergeContactsRequest? Type678 { get; set; } /// /// /// - public global::Speechify.EntitlementsResponse? Type679 { get; set; } + public global::Speechify.MergeContactsResponseMerged? Type679 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type680 { get; set; } + public global::Speechify.MergeContactsResponse? Type680 { get; set; } /// /// /// - public global::Speechify.ContactResolver? Type681 { get; set; } + public global::Speechify.BillingEntitlementsMaxLlmModelClass? Type681 { get; set; } /// /// /// - public global::Speechify.PutContactResolverRequest? Type682 { get; set; } + public global::Speechify.BillingEntitlements? Type682 { get; set; } /// /// /// - public global::Speechify.WebhookEndpoint? Type683 { get; set; } + public global::Speechify.EntitlementsResponse? Type683 { get; set; } /// /// /// - public global::Speechify.ListWebhookEndpointsResponse? Type684 { get; set; } + public global::System.Collections.Generic.Dictionary? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::Speechify.ContactResolver? Type685 { get; set; } /// /// /// - public global::Speechify.CreateWebhookEndpointRequest? Type686 { get; set; } + public global::Speechify.PutContactResolverRequest? Type686 { get; set; } /// /// /// - public global::Speechify.UpdateWebhookEndpointRequest? Type687 { get; set; } + public global::Speechify.WebhookEndpoint? Type687 { get; set; } /// /// /// - public global::Speechify.WebhookEndpointDelivery? Type688 { get; set; } + public global::Speechify.ListWebhookEndpointsResponse? Type688 { get; set; } /// /// /// - public global::Speechify.ListWebhookEndpointDeliveriesResponse? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type690 { get; set; } + public global::Speechify.CreateWebhookEndpointRequest? Type690 { get; set; } /// /// /// - public global::Speechify.Project? Type691 { get; set; } + public global::Speechify.UpdateWebhookEndpointRequest? Type691 { get; set; } /// /// /// - public global::Speechify.ListProjectsResponse? Type692 { get; set; } + public global::Speechify.WebhookEndpointDelivery? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::Speechify.ListWebhookEndpointDeliveriesResponse? Type693 { get; set; } /// /// /// - public global::Speechify.CreateProjectRequest? Type694 { get; set; } + public global::System.Collections.Generic.IList? Type694 { get; set; } /// /// /// - public global::Speechify.UpdateProjectRequest? Type695 { get; set; } + public global::Speechify.Project? Type695 { get; set; } /// /// /// - public global::Speechify.DeleteProjectRequestMode? Type696 { get; set; } + public global::Speechify.ListProjectsResponse? Type696 { get; set; } /// /// /// - public global::Speechify.DeleteProjectRequest? Type697 { get; set; } + public global::System.Collections.Generic.IList? Type697 { get; set; } /// /// /// - public global::Speechify.ProjectRestoredCounts? Type698 { get; set; } + public global::Speechify.CreateProjectRequest? Type698 { get; set; } /// /// /// - public global::Speechify.ProjectStillRevokedCounts? Type699 { get; set; } + public global::Speechify.UpdateProjectRequest? Type699 { get; set; } /// /// /// - public global::Speechify.ProjectRestore? Type700 { get; set; } + public global::Speechify.DeleteProjectRequestMode? Type700 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlockerKind? Type701 { get; set; } + public global::Speechify.DeleteProjectRequest? Type701 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlockerBlocksItems? Type702 { get; set; } + public global::Speechify.ProjectRestoredCounts? Type702 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownBlocker? Type703 { get; set; } + public global::Speechify.ProjectStillRevokedCounts? Type703 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type704 { get; set; } + public global::Speechify.ProjectRestore? Type704 { get; set; } /// /// /// - public global::Speechify.ProjectTeardownGroup? Type705 { get; set; } + public global::Speechify.ProjectTeardownBlockerKind? Type705 { get; set; } /// /// /// - public global::Speechify.ProjectTeardown? Type706 { get; set; } + public global::Speechify.ProjectTeardownBlockerBlocksItems? Type706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type707 { get; set; } + public global::Speechify.ProjectTeardownBlocker? Type707 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type708 { get; set; } + public global::System.Collections.Generic.IList? Type708 { get; set; } /// /// /// - public global::Speechify.ProjectResourceCounts? Type709 { get; set; } + public global::Speechify.ProjectTeardownGroup? Type709 { get; set; } /// /// /// - public global::Speechify.ProjectStats? Type710 { get; set; } + public global::Speechify.ProjectTeardown? Type710 { get; set; } /// /// /// - public global::Speechify.PromoteProjectRequest? Type711 { get; set; } + public global::System.Collections.Generic.IList? Type711 { get; set; } /// /// /// - public global::Speechify.PromoteCreated? Type712 { get; set; } + public global::System.Collections.Generic.IList? Type712 { get; set; } /// /// /// - public global::Speechify.PromoteReused? Type713 { get; set; } + public global::Speechify.ProjectResourceCounts? Type713 { get; set; } /// /// /// - public global::Speechify.PromoteAttentionKind? Type714 { get; set; } + public global::Speechify.ProjectStats? Type714 { get; set; } /// /// /// - public global::Speechify.PromoteAttentionReason? Type715 { get; set; } + public global::Speechify.PromoteProjectRequest? Type715 { get; set; } /// /// /// - public global::Speechify.PromoteAttention? Type716 { get; set; } + public global::Speechify.PromoteCreated? Type716 { get; set; } /// /// /// - public global::Speechify.PromoteProjectResponse? Type717 { get; set; } + public global::Speechify.PromoteReused? Type717 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type718 { get; set; } + public global::Speechify.PromoteAttentionKind? Type718 { get; set; } /// /// /// - public global::Speechify.ProjectAuditEventType? Type719 { get; set; } + public global::Speechify.PromoteAttentionReason? Type719 { get; set; } /// /// /// - public global::Speechify.ProjectAuditEvent? Type720 { get; set; } + public global::Speechify.PromoteAttention? Type720 { get; set; } /// /// /// - public global::Speechify.ProjectAuditResponse? Type721 { get; set; } + public global::Speechify.PromoteProjectResponse? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::System.Collections.Generic.IList? Type722 { get; set; } /// /// /// - public global::Speechify.ProjectMember? Type723 { get; set; } + public global::Speechify.ProjectAuditEventType? Type723 { get; set; } /// /// /// - public global::Speechify.ProjectMembersResponse? Type724 { get; set; } + public global::Speechify.ProjectAuditEvent? Type724 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type725 { get; set; } + public global::Speechify.ProjectAuditResponse? Type725 { get; set; } /// /// /// - public global::Speechify.GrantProjectMemberRequest? Type726 { get; set; } + public global::System.Collections.Generic.IList? Type726 { get; set; } /// /// /// - public global::Speechify.VoicesCreateRequest? Type727 { get; set; } + public global::Speechify.ProjectMember? Type727 { get; set; } /// /// /// - public global::Speechify.WatermarkDetectRequest? Type728 { get; set; } + public global::Speechify.ProjectMembersResponse? Type728 { get; set; } /// /// /// - public global::Speechify.WatermarkVerifyRequest? Type729 { get; set; } + public global::System.Collections.Generic.IList? Type729 { get; set; } /// /// /// - public global::Speechify.KnowledgeBasesUploadDocumentRequest? Type730 { get; set; } + public global::Speechify.GrantProjectMemberRequest? Type730 { get; set; } /// /// /// - public global::Speechify.KnowledgeBasesUpdateDocumentRequest? Type731 { get; set; } + public global::Speechify.CreateRequest? Type731 { get; set; } /// /// /// - public global::Speechify.TestsRunTestRequest? Type732 { get; set; } + public global::Speechify.DetectRequest? Type732 { get; set; } /// /// /// - public global::Speechify.AudioAssetsUploadRequest? Type733 { get; set; } + public global::Speechify.VerifyRequest? Type733 { get; set; } /// /// /// - public global::Speechify.FilesUploadRequest? Type734 { get; set; } + public global::Speechify.UploadDocumentRequest? Type734 { get; set; } + /// + /// + /// + public global::Speechify.UpdateDocumentRequest? Type735 { get; set; } + /// + /// + /// + public global::Speechify.RunTestRequest? Type736 { get; set; } + /// + /// + /// + public global::Speechify.UploadRequest? Type737 { get; set; } + /// + /// + /// + public global::Speechify.UploadRequest2? Type738 { get; set; } /// /// diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs index b917a4a5..772deb6c 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs @@ -30,14 +30,14 @@ partial void PrepareUpdateDocumentArguments( ref string kbId, ref string documentId, ref string? speechifyVersion, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request); + global::Speechify.UpdateDocumentRequest request); partial void PrepareUpdateDocumentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string kbId, string documentId, string? speechifyVersion, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request); + global::Speechify.UpdateDocumentRequest request); partial void ProcessUpdateDocumentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -66,7 +66,7 @@ partial void ProcessUpdateDocumentResponseContent( string kbId, string documentId, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request, + global::Speechify.UpdateDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -102,7 +102,7 @@ partial void ProcessUpdateDocumentResponseContent( string kbId, string documentId, - global::Speechify.KnowledgeBasesUpdateDocumentRequest request, + global::Speechify.UpdateDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -654,7 +654,7 @@ partial void ProcessUpdateDocumentResponseContent( global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.KnowledgeBasesUpdateDocumentRequest + var __request = new global::Speechify.UpdateDocumentRequest { FolderId = folderId, InjectionMode = injectionMode, diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs index c9799e63..eb766b59 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs @@ -29,13 +29,13 @@ partial void PrepareUploadDocumentArguments( global::System.Net.Http.HttpClient httpClient, ref string kbId, ref string? speechifyVersion, - global::Speechify.KnowledgeBasesUploadDocumentRequest request); + global::Speechify.UploadDocumentRequest request); partial void PrepareUploadDocumentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string kbId, string? speechifyVersion, - global::Speechify.KnowledgeBasesUploadDocumentRequest request); + global::Speechify.UploadDocumentRequest request); partial void ProcessUploadDocumentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -61,7 +61,7 @@ partial void ProcessUploadDocumentResponseContent( public async global::System.Threading.Tasks.Task UploadDocumentAsync( string kbId, - global::Speechify.KnowledgeBasesUploadDocumentRequest request, + global::Speechify.UploadDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -93,7 +93,7 @@ partial void ProcessUploadDocumentResponseContent( public async global::System.Threading.Tasks.Task> UploadDocumentAsResponseAsync( string kbId, - global::Speechify.KnowledgeBasesUploadDocumentRequest request, + global::Speechify.UploadDocumentRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -706,7 +706,7 @@ request.Filename is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.KnowledgeBasesUploadDocumentRequest + var __request = new global::Speechify.UploadDocumentRequest { File = file, Filename = filename, @@ -746,7 +746,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.KnowledgeBasesUploadDocumentRequest + var request = new global::Speechify.UploadDocumentRequest { File = global::System.Array.Empty(), Filename = filename, @@ -1353,7 +1353,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::Speechify.KnowledgeBasesUploadDocumentRequest + var request = new global::Speechify.UploadDocumentRequest { File = global::System.Array.Empty(), Filename = filename, diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.Json.g.cs deleted file mode 100644 index adfec002..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AgentAttachKnowledgeBaseResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AgentAttachKnowledgeBaseResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AgentAttachKnowledgeBaseResponse), - jsonSerializerContext) as global::Speechify.AgentAttachKnowledgeBaseResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AgentAttachKnowledgeBaseResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AgentAttachKnowledgeBaseResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AgentAttachKnowledgeBaseResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentAttachKnowledgeBaseResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.g.cs deleted file mode 100644 index a5588b59..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachKnowledgeBaseResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class AgentAttachKnowledgeBaseResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.Json.g.cs deleted file mode 100644 index d27e2d92..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AgentAttachToolResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AgentAttachToolResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AgentAttachToolResponse), - jsonSerializerContext) as global::Speechify.AgentAttachToolResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AgentAttachToolResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AgentAttachToolResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AgentAttachToolResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentAttachToolResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.Json.g.cs deleted file mode 100644 index c2a32cd2..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AgentDeleteToolResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AgentDeleteToolResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AgentDeleteToolResponse), - jsonSerializerContext) as global::Speechify.AgentDeleteToolResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AgentDeleteToolResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AgentDeleteToolResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AgentDeleteToolResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentDeleteToolResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.Json.g.cs deleted file mode 100644 index 0f7384ff..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AgentDetachKnowledgeBaseResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AgentDetachKnowledgeBaseResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AgentDetachKnowledgeBaseResponse), - jsonSerializerContext) as global::Speechify.AgentDetachKnowledgeBaseResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AgentDetachKnowledgeBaseResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AgentDetachKnowledgeBaseResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AgentDetachKnowledgeBaseResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentDetachKnowledgeBaseResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.g.cs deleted file mode 100644 index 241f8302..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDetachKnowledgeBaseResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class AgentDetachKnowledgeBaseResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentTrigger.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentTrigger.g.cs index 9c1a0afb..53ccb65e 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentTrigger.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentTrigger.g.cs @@ -6,7 +6,14 @@ namespace Speechify /// /// An automated start condition bound to a task agent - a `schedule`
/// (cron/interval) or a `webhook` (an inbound fire URL) that starts a
- /// durable run. + /// durable run.
+ /// A trigger carrying `thread` is a standing watch: a schedule the agent
+ /// registered from a chat thread on request ("tell me when ..."). Each
+ /// fire runs the check with the agent's own tools, and the run posts its
+ /// report into that thread only when it concludes there is something to
+ /// say; `last_fire_status` reads `posted` or `silent` accordingly. It is
+ /// listed and deleted here like any trigger, and from the thread it was
+ /// created in. ///
public sealed partial class AgentTrigger { @@ -85,7 +92,12 @@ public sealed partial class AgentTrigger /// `failed` with the reason in `last_fire_error`, or `pending` while a
/// transient failure waits for its retry. Absent until the trigger has
/// fired once. A `failed` trigger stays `failed` until a later fire
- /// succeeds; `trigger.fire_failed` is delivered each time. + /// succeeds; `trigger.fire_failed` is delivered each time.
+ /// A standing watch (a trigger with `thread`) settles one step further
+ /// once its run finishes: `posted` when the run reported and the
+ /// report reached the thread, `silent` when it concluded there was
+ /// nothing to report and posted nothing. A watch whose run failed, or
+ /// whose thread is gone, reads `failed` with the reason. ///
[global::System.Text.Json.Serialization.JsonPropertyName("last_fire_status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.AgentTriggerLastFireStatusJsonConverter))] @@ -115,6 +127,15 @@ public sealed partial class AgentTrigger [global::System.Text.Json.Serialization.JsonRequired] public required global::System.DateTime UpdatedAt { get; set; } + /// + /// The chat thread a standing watch was created in and posts into.
+ /// Present only on a trigger the agent registered from a conversation;
+ /// it cannot be set or changed through this API - the platform resolves
+ /// it from the conversation the order was given in. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("thread")] + public global::Speechify.TriggerThread? Thread { get; set; } + /// /// The inbound fire URL path for a webhook trigger; prepend the API
/// host. Absent for a schedule trigger. @@ -174,7 +195,12 @@ public sealed partial class AgentTrigger /// `failed` with the reason in `last_fire_error`, or `pending` while a
/// transient failure waits for its retry. Absent until the trigger has
/// fired once. A `failed` trigger stays `failed` until a later fire
- /// succeeds; `trigger.fire_failed` is delivered each time. + /// succeeds; `trigger.fire_failed` is delivered each time.
+ /// A standing watch (a trigger with `thread`) settles one step further
+ /// once its run finishes: `posted` when the run reported and the
+ /// report reached the thread, `silent` when it concluded there was
+ /// nothing to report and posted nothing. A watch whose run failed, or
+ /// whose thread is gone, reads `failed` with the reason. /// /// /// Why the most recent fire did not start a run: the error code a request
@@ -183,6 +209,12 @@ public sealed partial class AgentTrigger /// passed the publish gate; publish it and the next fire runs`. Empty when
/// the last fire dispatched. /// + /// + /// The chat thread a standing watch was created in and posts into.
+ /// Present only on a trigger the agent registered from a conversation;
+ /// it cannot be set or changed through this API - the platform resolves
+ /// it from the conversation the order was given in. + /// /// /// The inbound fire URL path for a webhook trigger; prepend the API
/// host. Absent for a schedule trigger. @@ -212,6 +244,7 @@ public AgentTrigger( global::System.DateTime? lastFiredAt, global::Speechify.AgentTriggerLastFireStatus? lastFireStatus, string? lastFireError, + global::Speechify.TriggerThread? thread, string? firePath, string? secret, string? secretHint) @@ -230,6 +263,7 @@ public AgentTrigger( this.LastFireError = lastFireError; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; + this.Thread = thread; this.FirePath = firePath; this.Secret = secret; this.SecretHint = secretHint; diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentTriggerLastFireStatus.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentTriggerLastFireStatus.g.cs index 67d6e26b..5cf6f297 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentTriggerLastFireStatus.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AgentTriggerLastFireStatus.g.cs @@ -8,7 +8,12 @@ namespace Speechify /// `failed` with the reason in `last_fire_error`, or `pending` while a
/// transient failure waits for its retry. Absent until the trigger has
/// fired once. A `failed` trigger stays `failed` until a later fire
- /// succeeds; `trigger.fire_failed` is delivered each time. + /// succeeds; `trigger.fire_failed` is delivered each time.
+ /// A standing watch (a trigger with `thread`) settles one step further
+ /// once its run finishes: `posted` when the run reported and the
+ /// report reached the thread, `silent` when it concluded there was
+ /// nothing to report and posted nothing. A watch whose run failed, or
+ /// whose thread is gone, reads `failed` with the reason. ///
public enum AgentTriggerLastFireStatus { @@ -24,6 +29,14 @@ public enum AgentTriggerLastFireStatus /// /// Pending, + /// + /// `posted` when the run reported and the + /// + Posted, + /// + /// + /// + Silent, } /// @@ -41,6 +54,8 @@ public static string ToValueString(this AgentTriggerLastFireStatus value) AgentTriggerLastFireStatus.Dispatched => "dispatched", AgentTriggerLastFireStatus.Failed => "failed", AgentTriggerLastFireStatus.Pending => "pending", + AgentTriggerLastFireStatus.Posted => "posted", + AgentTriggerLastFireStatus.Silent => "silent", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -54,6 +69,8 @@ public static string ToValueString(this AgentTriggerLastFireStatus value) "dispatched" => AgentTriggerLastFireStatus.Dispatched, "failed" => AgentTriggerLastFireStatus.Failed, "pending" => AgentTriggerLastFireStatus.Pending, + "posted" => AgentTriggerLastFireStatus.Posted, + "silent" => AgentTriggerLastFireStatus.Silent, _ => null, }; } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.g.cs deleted file mode 100644 index 57d74dab..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class AgentsDetachSkillResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.Json.g.cs new file mode 100644 index 00000000..eeb63f93 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class ArchiveResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.ArchiveResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.ArchiveResponse), + jsonSerializerContext) as global::Speechify.ArchiveResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.ArchiveResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.ArchiveResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.ArchiveResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ArchiveResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.g.cs index 780c841e..d6bdb9f6 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.ArchiveResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class FilesDeleteResponse + public sealed partial class ArchiveResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.Json.g.cs index 24c16736..c6be1e7a 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class IvrMemoryInvalidateResponse + public sealed partial class AttachKnowledgeBaseResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.IvrMemoryInvalidateResponse? FromJson( + public static global::Speechify.AttachKnowledgeBaseResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.IvrMemoryInvalidateResponse), - jsonSerializerContext) as global::Speechify.IvrMemoryInvalidateResponse; + typeof(global::Speechify.AttachKnowledgeBaseResponse), + jsonSerializerContext) as global::Speechify.AttachKnowledgeBaseResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.IvrMemoryInvalidateResponse? FromJson( + public static global::Speechify.AttachKnowledgeBaseResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.IvrMemoryInvalidateResponse? FromJson( + public static global::Speechify.AttachKnowledgeBaseResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.IvrMemoryInvalidateResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.IvrMemoryInvalidateResponse; + typeof(global::Speechify.AttachKnowledgeBaseResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AttachKnowledgeBaseResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.g.cs new file mode 100644 index 00000000..0030b020 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachKnowledgeBaseResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class AttachKnowledgeBaseResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AttachResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachResponse.Json.g.cs new file mode 100644 index 00000000..b1760d25 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class AttachResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.AttachResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.AttachResponse), + jsonSerializerContext) as global::Speechify.AttachResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.AttachResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.AttachResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.AttachResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AttachResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.AttachResponse.g.cs index 0a455501..d69a6589 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class TeamsDeleteResponse + public sealed partial class AttachResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.Json.g.cs index 509e3a63..b8d7189c 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class FilesUploadRequest + public sealed partial class AttachToolResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.FilesUploadRequest? FromJson( + public static global::Speechify.AttachToolResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.FilesUploadRequest), - jsonSerializerContext) as global::Speechify.FilesUploadRequest; + typeof(global::Speechify.AttachToolResponse), + jsonSerializerContext) as global::Speechify.AttachToolResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.FilesUploadRequest? FromJson( + public static global::Speechify.AttachToolResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.FilesUploadRequest? FromJson( + public static global::Speechify.AttachToolResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.FilesUploadRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FilesUploadRequest; + typeof(global::Speechify.AttachToolResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AttachToolResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.g.cs index 8e084a2c..dd2f6441 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.AttachToolResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class AgentDeleteResponse + public sealed partial class AttachToolResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.Json.g.cs deleted file mode 100644 index f3f09fcd..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AudioAssetsDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AudioAssetsDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AudioAssetsDeleteResponse), - jsonSerializerContext) as global::Speechify.AudioAssetsDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AudioAssetsDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AudioAssetsDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AudioAssetsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AudioAssetsDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.g.cs deleted file mode 100644 index 14aa049a..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class AudioAssetsDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.Json.g.cs deleted file mode 100644 index 23206393..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class AudioAssetsUploadRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.AudioAssetsUploadRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.AudioAssetsUploadRequest), - jsonSerializerContext) as global::Speechify.AudioAssetsUploadRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.AudioAssetsUploadRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.AudioAssetsUploadRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.AudioAssetsUploadRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AudioAssetsUploadRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.Json.g.cs index 19a91a6f..26fd40a2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class ProjectsRevokeMemberResponse + public sealed partial class BatchDeleteDocumentsResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.ProjectsRevokeMemberResponse? FromJson( + public static global::Speechify.BatchDeleteDocumentsResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.ProjectsRevokeMemberResponse), - jsonSerializerContext) as global::Speechify.ProjectsRevokeMemberResponse; + typeof(global::Speechify.BatchDeleteDocumentsResponse), + jsonSerializerContext) as global::Speechify.BatchDeleteDocumentsResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.ProjectsRevokeMemberResponse? FromJson( + public static global::Speechify.BatchDeleteDocumentsResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.ProjectsRevokeMemberResponse? FromJson( + public static global::Speechify.BatchDeleteDocumentsResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.ProjectsRevokeMemberResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ProjectsRevokeMemberResponse; + typeof(global::Speechify.BatchDeleteDocumentsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.BatchDeleteDocumentsResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.g.cs new file mode 100644 index 00000000..bf638aa4 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.BatchDeleteDocumentsResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class BatchDeleteDocumentsResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.Json.g.cs deleted file mode 100644 index 2425a591..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class ContactsDeleteResolverResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.ContactsDeleteResolverResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.ContactsDeleteResolverResponse), - jsonSerializerContext) as global::Speechify.ContactsDeleteResolverResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.ContactsDeleteResolverResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.ContactsDeleteResolverResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.ContactsDeleteResolverResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ContactsDeleteResolverResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.g.cs deleted file mode 100644 index 133afe3c..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ContactsDeleteResolverResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ContactsDeleteResolverResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.Json.g.cs deleted file mode 100644 index 1f8e2cbc..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class ContactsDetachIdentifierResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.ContactsDetachIdentifierResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.ContactsDetachIdentifierResponse), - jsonSerializerContext) as global::Speechify.ContactsDetachIdentifierResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.ContactsDetachIdentifierResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.ContactsDetachIdentifierResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.ContactsDetachIdentifierResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ContactsDetachIdentifierResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.g.cs deleted file mode 100644 index 6a64c74f..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ContactsDetachIdentifierResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ContactsDetachIdentifierResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.Json.g.cs new file mode 100644 index 00000000..e55d00a5 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class ConversationPrompt + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.ConversationPrompt? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.ConversationPrompt), + jsonSerializerContext) as global::Speechify.ConversationPrompt; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.ConversationPrompt? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.ConversationPrompt? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.ConversationPrompt), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ConversationPrompt; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.g.cs new file mode 100644 index 00000000..01facc63 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ConversationPrompt.g.cs @@ -0,0 +1,149 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// An agent-initiated turn as a job: what a backend polls to learn whether its instruction posted, and cancels while the worker has not started it. + /// + public sealed partial class ConversationPrompt + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConversationId { get; set; } + + /// + /// The one lifecycle vocabulary shared by every async job (batch
+ /// calls, knowledge-base imports, agent-test runs, suite runs):
+ /// `pending` → `running` → a terminal state.
+ /// - `pending` - accepted but not yet executing (queued for a worker,
+ /// or deferred to a future scheduled time).
+ /// - `running` - actively executing.
+ /// - `completed` - ran to conclusion. The single terminal-success
+ /// verb. For a job that produces a pass/fail judgment (an agent-test
+ /// run), this means it produced a verdict - read the separate
+ /// `verdict` field for the judgment, not this status.
+ /// - `failed` - could not complete (an infrastructure or input
+ /// failure), distinct from a `completed` job whose `verdict` is
+ /// `failed`.
+ /// - `cancelled` - cancelled before reaching a natural terminal state. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.JobStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Speechify.JobStatus Status { get; set; } + + /// + /// What the agent was asked to do, as sent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instruction")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Instruction { get; set; } + + /// + /// Why a `failed` prompt never posted, in plain words: the conversation ended before the turn ran, the workspace's channel grant was withdrawn, the runtime gave up. Absent otherwise. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// When the worker picked the turn up. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("started_at")] + public global::System.DateTime? StartedAt { get; set; } + + /// + /// When the prompt reached a terminal status. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ended_at")] + public global::System.DateTime? EndedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// The one lifecycle vocabulary shared by every async job (batch
+ /// calls, knowledge-base imports, agent-test runs, suite runs):
+ /// `pending` → `running` → a terminal state.
+ /// - `pending` - accepted but not yet executing (queued for a worker,
+ /// or deferred to a future scheduled time).
+ /// - `running` - actively executing.
+ /// - `completed` - ran to conclusion. The single terminal-success
+ /// verb. For a job that produces a pass/fail judgment (an agent-test
+ /// run), this means it produced a verdict - read the separate
+ /// `verdict` field for the judgment, not this status.
+ /// - `failed` - could not complete (an infrastructure or input
+ /// failure), distinct from a `completed` job whose `verdict` is
+ /// `failed`.
+ /// - `cancelled` - cancelled before reaching a natural terminal state. + /// + /// + /// What the agent was asked to do, as sent. + /// + /// + /// + /// Why a `failed` prompt never posted, in plain words: the conversation ended before the turn ran, the workspace's channel grant was withdrawn, the runtime gave up. Absent otherwise. + /// + /// + /// When the worker picked the turn up. + /// + /// + /// When the prompt reached a terminal status. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationPrompt( + string id, + string conversationId, + global::Speechify.JobStatus status, + string instruction, + global::System.DateTime createdAt, + string? error, + global::System.DateTime? startedAt, + global::System.DateTime? endedAt) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); + this.Status = status; + this.Instruction = instruction ?? throw new global::System.ArgumentNullException(nameof(instruction)); + this.Error = error; + this.CreatedAt = createdAt; + this.StartedAt = startedAt; + this.EndedAt = endedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationPrompt() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.Json.g.cs similarity index 87% rename from src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.Json.g.cs index 331c749a..d8da67b2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentsDetachSkillResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class AgentsDetachSkillResponse + public sealed partial class ConversationPromptRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.AgentsDetachSkillResponse? FromJson( + public static global::Speechify.ConversationPromptRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.AgentsDetachSkillResponse), - jsonSerializerContext) as global::Speechify.AgentsDetachSkillResponse; + typeof(global::Speechify.ConversationPromptRequest), + jsonSerializerContext) as global::Speechify.ConversationPromptRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.AgentsDetachSkillResponse? FromJson( + public static global::Speechify.ConversationPromptRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.AgentsDetachSkillResponse? FromJson( + public static global::Speechify.ConversationPromptRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.AgentsDetachSkillResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentsDetachSkillResponse; + typeof(global::Speechify.ConversationPromptRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ConversationPromptRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.g.cs new file mode 100644 index 00000000..54159d65 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ConversationPromptRequest.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// Body for `POST /v1/agents/conversations/{conversation_id}/prompts`. + /// + public sealed partial class ConversationPromptRequest + { + /// + /// What the agent is asked to do in the conversation. It is the turn's input, run with the agent's normal tools on the thread's own context; what the agent writes in reply is what the thread sees. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instruction")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Instruction { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// What the agent is asked to do in the conversation. It is the turn's input, run with the agent's normal tools on the thread's own context; what the agent writes in reply is what the thread sees. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationPromptRequest( + string instruction) + { + this.Instruction = instruction ?? throw new global::System.ArgumentNullException(nameof(instruction)); + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationPromptRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.CreateRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.CreateRequest.Json.g.cs new file mode 100644 index 00000000..0871efe5 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.CreateRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class CreateRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.CreateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.CreateRequest), + jsonSerializerContext) as global::Speechify.CreateRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.CreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.CreateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.CreateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.CreateRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.CreateRequest.g.cs similarity index 96% rename from src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.CreateRequest.g.cs index 83632728..61eab3f2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.CreateRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class VoicesCreateRequest + public sealed partial class CreateRequest { /// /// Name of the personal voice @@ -98,7 +98,7 @@ public sealed partial class VoicesCreateRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Name of the personal voice @@ -148,7 +148,7 @@ public sealed partial class VoicesCreateRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public VoicesCreateRequest( + public CreateRequest( string name, global::Speechify.V1VoicesPostRequestBodyContentMultipartFormDataSchemaGender gender, byte[] sample, @@ -173,9 +173,9 @@ public VoicesCreateRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public VoicesCreateRequest() + public CreateRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.Json.g.cs new file mode 100644 index 00000000..92f7eabe --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeactivateResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeactivateResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeactivateResponse), + jsonSerializerContext) as global::Speechify.DeactivateResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeactivateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeactivateResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeactivateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeactivateResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.g.cs index 74c2cccd..b8e7b9bf 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeactivateResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class TriggersFireRequest + public sealed partial class DeactivateResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.Json.g.cs index fd59695d..17336f60 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class FlowDeactivateResponse + public sealed partial class DeleteDocumentResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.FlowDeactivateResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.FlowDeactivateResponse), - jsonSerializerContext) as global::Speechify.FlowDeactivateResponse; + typeof(global::Speechify.DeleteDocumentResponse), + jsonSerializerContext) as global::Speechify.DeleteDocumentResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.FlowDeactivateResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.FlowDeactivateResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.FlowDeactivateResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FlowDeactivateResponse; + typeof(global::Speechify.DeleteDocumentResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteDocumentResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.g.cs index d0302ff7..60708124 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class AdminForceEndResponse + public sealed partial class DeleteDocumentResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.Json.g.cs index 9c543933..ffd7d0f4 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class EndpointsDeleteResponse + public sealed partial class DeleteDocumentResponse2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.EndpointsDeleteResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.EndpointsDeleteResponse), - jsonSerializerContext) as global::Speechify.EndpointsDeleteResponse; + typeof(global::Speechify.DeleteDocumentResponse2), + jsonSerializerContext) as global::Speechify.DeleteDocumentResponse2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.EndpointsDeleteResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.EndpointsDeleteResponse? FromJson( + public static global::Speechify.DeleteDocumentResponse2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.EndpointsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.EndpointsDeleteResponse; + typeof(global::Speechify.DeleteDocumentResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteDocumentResponse2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.g.cs index 76612d7b..d477d344 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentAttachToolResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteDocumentResponse2.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class AgentAttachToolResponse + public sealed partial class DeleteDocumentResponse2 { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.Json.g.cs index f5ffc1a1..c404bd34 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class MemoriesDeleteResponse + public sealed partial class DeleteEvalCaseResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.MemoriesDeleteResponse? FromJson( + public static global::Speechify.DeleteEvalCaseResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.MemoriesDeleteResponse), - jsonSerializerContext) as global::Speechify.MemoriesDeleteResponse; + typeof(global::Speechify.DeleteEvalCaseResponse), + jsonSerializerContext) as global::Speechify.DeleteEvalCaseResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.MemoriesDeleteResponse? FromJson( + public static global::Speechify.DeleteEvalCaseResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.MemoriesDeleteResponse? FromJson( + public static global::Speechify.DeleteEvalCaseResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.MemoriesDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.MemoriesDeleteResponse; + typeof(global::Speechify.DeleteEvalCaseResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteEvalCaseResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.g.cs index 0bbfa736..b8567a96 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDeactivateResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteEvalCaseResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class FlowDeactivateResponse + public sealed partial class DeleteEvalCaseResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.Json.g.cs index 8d36de8f..015cc405 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class SkillsDeleteResponse + public sealed partial class DeleteFolderResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.SkillsDeleteResponse? FromJson( + public static global::Speechify.DeleteFolderResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.SkillsDeleteResponse), - jsonSerializerContext) as global::Speechify.SkillsDeleteResponse; + typeof(global::Speechify.DeleteFolderResponse), + jsonSerializerContext) as global::Speechify.DeleteFolderResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.SkillsDeleteResponse? FromJson( + public static global::Speechify.DeleteFolderResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.SkillsDeleteResponse? FromJson( + public static global::Speechify.DeleteFolderResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.SkillsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.SkillsDeleteResponse; + typeof(global::Speechify.DeleteFolderResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteFolderResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.g.cs index 14aa8fcd..0c77606e 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteFolderResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class StoresAttachResponse + public sealed partial class DeleteFolderResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.Json.g.cs index 05a321df..ac012276 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class ProjectsDeleteResponse + public sealed partial class DeleteResolverResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.ProjectsDeleteResponse? FromJson( + public static global::Speechify.DeleteResolverResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.ProjectsDeleteResponse), - jsonSerializerContext) as global::Speechify.ProjectsDeleteResponse; + typeof(global::Speechify.DeleteResolverResponse), + jsonSerializerContext) as global::Speechify.DeleteResolverResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.ProjectsDeleteResponse? FromJson( + public static global::Speechify.DeleteResolverResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.ProjectsDeleteResponse? FromJson( + public static global::Speechify.DeleteResolverResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.ProjectsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ProjectsDeleteResponse; + typeof(global::Speechify.DeleteResolverResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResolverResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.g.cs new file mode 100644 index 00000000..3798f9d5 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResolverResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResolverResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.Json.g.cs new file mode 100644 index 00000000..28d2ec00 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse), + jsonSerializerContext) as global::Speechify.DeleteResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.g.cs new file mode 100644 index 00000000..eb7689ba --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.Json.g.cs new file mode 100644 index 00000000..72a2694e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse10 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse10), + jsonSerializerContext) as global::Speechify.DeleteResponse10; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse10? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse10), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse10; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.g.cs new file mode 100644 index 00000000..e0d2df97 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse10.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse10 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.Json.g.cs new file mode 100644 index 00000000..424de88e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse11 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse11), + jsonSerializerContext) as global::Speechify.DeleteResponse11; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse11? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse11? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse11), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse11; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.g.cs new file mode 100644 index 00000000..4e3cf58d --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse11.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse11 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.Json.g.cs new file mode 100644 index 00000000..5922cdc6 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse12 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse12), + jsonSerializerContext) as global::Speechify.DeleteResponse12; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse12? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse12? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse12), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse12; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.g.cs new file mode 100644 index 00000000..b0bc9371 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse12.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse12 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.Json.g.cs new file mode 100644 index 00000000..856612d1 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse13 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse13), + jsonSerializerContext) as global::Speechify.DeleteResponse13; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse13? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse13? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse13), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse13; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.g.cs new file mode 100644 index 00000000..2394a667 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse13.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse13 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.Json.g.cs new file mode 100644 index 00000000..4e50e317 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse14 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse14), + jsonSerializerContext) as global::Speechify.DeleteResponse14; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse14? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse14? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse14), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse14; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.g.cs new file mode 100644 index 00000000..7a9c64ff --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse14.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse14 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.Json.g.cs new file mode 100644 index 00000000..67406148 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse15 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse15), + jsonSerializerContext) as global::Speechify.DeleteResponse15; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse15? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse15? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse15), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse15; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.g.cs new file mode 100644 index 00000000..1cbd4f20 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse15.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse15 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.Json.g.cs new file mode 100644 index 00000000..ae0e2bf4 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse16 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse16), + jsonSerializerContext) as global::Speechify.DeleteResponse16; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse16? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse16? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse16), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse16; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.g.cs new file mode 100644 index 00000000..dbc757a0 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse16.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse16 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.Json.g.cs new file mode 100644 index 00000000..22210237 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse2), + jsonSerializerContext) as global::Speechify.DeleteResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse2? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.g.cs new file mode 100644 index 00000000..90d4aba4 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.Json.g.cs new file mode 100644 index 00000000..d6e46f4f --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse3), + jsonSerializerContext) as global::Speechify.DeleteResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse3? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.g.cs new file mode 100644 index 00000000..8ba0947b --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse3.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse3 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.Json.g.cs new file mode 100644 index 00000000..537b4a9e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse4), + jsonSerializerContext) as global::Speechify.DeleteResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse4? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.g.cs new file mode 100644 index 00000000..827301cf --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse4.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse4 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.Json.g.cs new file mode 100644 index 00000000..a7ec0d0c --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse5), + jsonSerializerContext) as global::Speechify.DeleteResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse5? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.g.cs new file mode 100644 index 00000000..78a7d3a8 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse5.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse5 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.Json.g.cs new file mode 100644 index 00000000..ec65464a --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse6), + jsonSerializerContext) as global::Speechify.DeleteResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse6? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.g.cs new file mode 100644 index 00000000..f390b563 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse6.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse6 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.Json.g.cs new file mode 100644 index 00000000..00e0e747 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse7 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse7), + jsonSerializerContext) as global::Speechify.DeleteResponse7; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse7? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse7), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse7; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.g.cs new file mode 100644 index 00000000..2b0a416e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse7.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse7 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.Json.g.cs new file mode 100644 index 00000000..c8c11cd7 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse8 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse8), + jsonSerializerContext) as global::Speechify.DeleteResponse8; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse8? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse8), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse8; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.g.cs new file mode 100644 index 00000000..29db0650 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse8.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse8 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.Json.g.cs new file mode 100644 index 00000000..d2bb6aa4 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteResponse9 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteResponse9), + jsonSerializerContext) as global::Speechify.DeleteResponse9; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteResponse9? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteResponse9? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteResponse9), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteResponse9; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.g.cs new file mode 100644 index 00000000..7fc68388 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteResponse9.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteResponse9 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.Json.g.cs index fd92e56b..88f240b1 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TeamsDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class TeamsDeleteResponse + public sealed partial class DeleteRouteResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.TeamsDeleteResponse? FromJson( + public static global::Speechify.DeleteRouteResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.TeamsDeleteResponse), - jsonSerializerContext) as global::Speechify.TeamsDeleteResponse; + typeof(global::Speechify.DeleteRouteResponse), + jsonSerializerContext) as global::Speechify.DeleteRouteResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.TeamsDeleteResponse? FromJson( + public static global::Speechify.DeleteRouteResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.TeamsDeleteResponse? FromJson( + public static global::Speechify.DeleteRouteResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.TeamsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TeamsDeleteResponse; + typeof(global::Speechify.DeleteRouteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteRouteResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.g.cs new file mode 100644 index 00000000..51bc4201 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteRouteResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteRouteResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.Json.g.cs index 4b0b125a..fec6b416 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class TriggersDeleteResponse + public sealed partial class DeleteTemplateResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.TriggersDeleteResponse? FromJson( + public static global::Speechify.DeleteTemplateResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.TriggersDeleteResponse), - jsonSerializerContext) as global::Speechify.TriggersDeleteResponse; + typeof(global::Speechify.DeleteTemplateResponse), + jsonSerializerContext) as global::Speechify.DeleteTemplateResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.TriggersDeleteResponse? FromJson( + public static global::Speechify.DeleteTemplateResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.TriggersDeleteResponse? FromJson( + public static global::Speechify.DeleteTemplateResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.TriggersDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TriggersDeleteResponse; + typeof(global::Speechify.DeleteTemplateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteTemplateResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.g.cs new file mode 100644 index 00000000..5b1a2312 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTemplateResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteTemplateResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.Json.g.cs index d4ceb8b8..8f3c06cf 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class ShareLinksRevokeResponse + public sealed partial class DeleteTestFolderResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.ShareLinksRevokeResponse? FromJson( + public static global::Speechify.DeleteTestFolderResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.ShareLinksRevokeResponse), - jsonSerializerContext) as global::Speechify.ShareLinksRevokeResponse; + typeof(global::Speechify.DeleteTestFolderResponse), + jsonSerializerContext) as global::Speechify.DeleteTestFolderResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.ShareLinksRevokeResponse? FromJson( + public static global::Speechify.DeleteTestFolderResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.ShareLinksRevokeResponse? FromJson( + public static global::Speechify.DeleteTestFolderResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.ShareLinksRevokeResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ShareLinksRevokeResponse; + typeof(global::Speechify.DeleteTestFolderResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteTestFolderResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.g.cs index 90341675..a50bcdcf 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteToolResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestFolderResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class AgentDeleteToolResponse + public sealed partial class DeleteTestFolderResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.Json.g.cs new file mode 100644 index 00000000..91989ca5 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteTestResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteTestResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteTestResponse), + jsonSerializerContext) as global::Speechify.DeleteTestResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteTestResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteTestResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteTestResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteTestResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.g.cs new file mode 100644 index 00000000..ac538bd6 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteTestResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteTestResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.Json.g.cs new file mode 100644 index 00000000..f3cf11c9 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DeleteToolResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DeleteToolResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DeleteToolResponse), + jsonSerializerContext) as global::Speechify.DeleteToolResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DeleteToolResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DeleteToolResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DeleteToolResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DeleteToolResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.g.cs new file mode 100644 index 00000000..6b3d20c8 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DeleteToolResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DeleteToolResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.Json.g.cs index 47c7931d..d81d70ba 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class HostedApisDeleteResponse + public sealed partial class DetachIdentifierResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.HostedApisDeleteResponse? FromJson( + public static global::Speechify.DetachIdentifierResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.HostedApisDeleteResponse), - jsonSerializerContext) as global::Speechify.HostedApisDeleteResponse; + typeof(global::Speechify.DetachIdentifierResponse), + jsonSerializerContext) as global::Speechify.DetachIdentifierResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.HostedApisDeleteResponse? FromJson( + public static global::Speechify.DetachIdentifierResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.HostedApisDeleteResponse? FromJson( + public static global::Speechify.DetachIdentifierResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.HostedApisDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.HostedApisDeleteResponse; + typeof(global::Speechify.DetachIdentifierResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DetachIdentifierResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.g.cs new file mode 100644 index 00000000..bcf46373 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachIdentifierResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DetachIdentifierResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.Json.g.cs index 1bc7b6aa..c953aa4c 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class ProjectsGrantMemberResponse + public sealed partial class DetachKnowledgeBaseResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.ProjectsGrantMemberResponse? FromJson( + public static global::Speechify.DetachKnowledgeBaseResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.ProjectsGrantMemberResponse), - jsonSerializerContext) as global::Speechify.ProjectsGrantMemberResponse; + typeof(global::Speechify.DetachKnowledgeBaseResponse), + jsonSerializerContext) as global::Speechify.DetachKnowledgeBaseResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.ProjectsGrantMemberResponse? FromJson( + public static global::Speechify.DetachKnowledgeBaseResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.ProjectsGrantMemberResponse? FromJson( + public static global::Speechify.DetachKnowledgeBaseResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.ProjectsGrantMemberResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ProjectsGrantMemberResponse; + typeof(global::Speechify.DetachKnowledgeBaseResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DetachKnowledgeBaseResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.g.cs new file mode 100644 index 00000000..4190eb42 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachKnowledgeBaseResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DetachKnowledgeBaseResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.Json.g.cs new file mode 100644 index 00000000..f3416f22 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DetachResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DetachResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DetachResponse), + jsonSerializerContext) as global::Speechify.DetachResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DetachResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DetachResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DetachResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DetachResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.g.cs new file mode 100644 index 00000000..28d8aef2 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DetachResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.Json.g.cs index 0103fed5..3baa4c98 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FilesDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class FilesDeleteResponse + public sealed partial class DetachSkillResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.FilesDeleteResponse? FromJson( + public static global::Speechify.DetachSkillResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.FilesDeleteResponse), - jsonSerializerContext) as global::Speechify.FilesDeleteResponse; + typeof(global::Speechify.DetachSkillResponse), + jsonSerializerContext) as global::Speechify.DetachSkillResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.FilesDeleteResponse? FromJson( + public static global::Speechify.DetachSkillResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.FilesDeleteResponse? FromJson( + public static global::Speechify.DetachSkillResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.FilesDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FilesDeleteResponse; + typeof(global::Speechify.DetachSkillResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DetachSkillResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.g.cs new file mode 100644 index 00000000..dfac58b2 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetachSkillResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class DetachSkillResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.DetectRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetectRequest.Json.g.cs new file mode 100644 index 00000000..05b3b70d --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.DetectRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class DetectRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.DetectRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.DetectRequest), + jsonSerializerContext) as global::Speechify.DetectRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.DetectRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.DetectRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.DetectRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DetectRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DetectRequest.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DetectRequest.g.cs index 132ac7ff..c727c3f4 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DetectRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class WatermarkDetectRequest + public sealed partial class DetectRequest { /// /// The clip to check, at most 25MB. Give the detector at least
@@ -35,7 +35,7 @@ public sealed partial class WatermarkDetectRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The clip to check, at most 25MB. Give the detector at least
@@ -52,7 +52,7 @@ public sealed partial class WatermarkDetectRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WatermarkDetectRequest( + public DetectRequest( byte[] audio, string audioname) { @@ -61,9 +61,9 @@ public WatermarkDetectRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WatermarkDetectRequest() + public DetectRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.Json.g.cs index e049b871..9d2903d1 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresAttachResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class StoresAttachResponse + public sealed partial class DiscardDraftResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.StoresAttachResponse? FromJson( + public static global::Speechify.DiscardDraftResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.StoresAttachResponse), - jsonSerializerContext) as global::Speechify.StoresAttachResponse; + typeof(global::Speechify.DiscardDraftResponse), + jsonSerializerContext) as global::Speechify.DiscardDraftResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.StoresAttachResponse? FromJson( + public static global::Speechify.DiscardDraftResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.StoresAttachResponse? FromJson( + public static global::Speechify.DiscardDraftResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.StoresAttachResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.StoresAttachResponse; + typeof(global::Speechify.DiscardDraftResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DiscardDraftResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.g.cs index d1110c78..88ce9aad 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.SkillsDeleteResponse.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.DiscardDraftResponse.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class SkillsDeleteResponse + public sealed partial class DiscardDraftResponse { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.Json.g.cs deleted file mode 100644 index 76b8e60a..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class DocumentsDeleteDocumentResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.DocumentsDeleteDocumentResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.DocumentsDeleteDocumentResponse), - jsonSerializerContext) as global::Speechify.DocumentsDeleteDocumentResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.DocumentsDeleteDocumentResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.DocumentsDeleteDocumentResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.DocumentsDeleteDocumentResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.DocumentsDeleteDocumentResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.g.cs deleted file mode 100644 index 32c2bca0..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.DocumentsDeleteDocumentResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class DocumentsDeleteDocumentResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.g.cs deleted file mode 100644 index 03212c4e..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.EndpointsDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class EndpointsDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ErrorCode.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ErrorCode.g.cs index a619d09f..5281fd95 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ErrorCode.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.ErrorCode.g.cs @@ -188,10 +188,26 @@ public enum ErrorCode /// /// /// + ConversationChannelBound, + /// + /// + /// + ConversationClosed, + /// + /// + /// ConversationNotFound, /// /// /// + ConversationNotReachable, + /// + /// + /// + ConversationPromptNotFound, + /// + /// + /// ConversationTurnInProgress, /// /// @@ -212,6 +228,14 @@ public enum ErrorCode /// /// /// + CustomModelInUse, + /// + /// + /// + CustomModelNotFound, + /// + /// + /// DestinationNotAllowed, /// /// @@ -678,12 +702,18 @@ public static string ToValueString(this ErrorCode value) ErrorCode.ContactNotFound => "contact_not_found", ErrorCode.ContactResolverNotFound => "contact_resolver_not_found", ErrorCode.ContentPolicyViolation => "content_policy_violation", + ErrorCode.ConversationChannelBound => "conversation_channel_bound", + ErrorCode.ConversationClosed => "conversation_closed", ErrorCode.ConversationNotFound => "conversation_not_found", + ErrorCode.ConversationNotReachable => "conversation_not_reachable", + ErrorCode.ConversationPromptNotFound => "conversation_prompt_not_found", ErrorCode.ConversationTurnInProgress => "conversation_turn_in_progress", ErrorCode.CredentialInUse => "credential_in_use", ErrorCode.CredentialNotFound => "credential_not_found", ErrorCode.CreditPurchaseUnpaid => "credit_purchase_unpaid", ErrorCode.CrossProjectReference => "cross_project_reference", + ErrorCode.CustomModelInUse => "custom_model_in_use", + ErrorCode.CustomModelNotFound => "custom_model_not_found", ErrorCode.DestinationNotAllowed => "destination_not_allowed", ErrorCode.DurableRunsNotInPlan => "durable_runs_not_in_plan", ErrorCode.FileNotFound => "file_not_found", @@ -840,12 +870,18 @@ public static string ToValueString(this ErrorCode value) "contact_not_found" => ErrorCode.ContactNotFound, "contact_resolver_not_found" => ErrorCode.ContactResolverNotFound, "content_policy_violation" => ErrorCode.ContentPolicyViolation, + "conversation_channel_bound" => ErrorCode.ConversationChannelBound, + "conversation_closed" => ErrorCode.ConversationClosed, "conversation_not_found" => ErrorCode.ConversationNotFound, + "conversation_not_reachable" => ErrorCode.ConversationNotReachable, + "conversation_prompt_not_found" => ErrorCode.ConversationPromptNotFound, "conversation_turn_in_progress" => ErrorCode.ConversationTurnInProgress, "credential_in_use" => ErrorCode.CredentialInUse, "credential_not_found" => ErrorCode.CredentialNotFound, "credit_purchase_unpaid" => ErrorCode.CreditPurchaseUnpaid, "cross_project_reference" => ErrorCode.CrossProjectReference, + "custom_model_in_use" => ErrorCode.CustomModelInUse, + "custom_model_not_found" => ErrorCode.CustomModelNotFound, "destination_not_allowed" => ErrorCode.DestinationNotAllowed, "durable_runs_not_in_plan" => ErrorCode.DurableRunsNotInPlan, "file_not_found" => ErrorCode.FileNotFound, diff --git a/src/libs/Speechify/Generated/Speechify.Models.FireRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FireRequest.Json.g.cs new file mode 100644 index 00000000..82afd612 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.FireRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class FireRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.FireRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.FireRequest), + jsonSerializerContext) as global::Speechify.FireRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.FireRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.FireRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.FireRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FireRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.FireRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FireRequest.g.cs new file mode 100644 index 00000000..50048749 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.FireRequest.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class FireRequest + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.FireRequest2.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FireRequest2.Json.g.cs new file mode 100644 index 00000000..70f4ac65 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.FireRequest2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class FireRequest2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.FireRequest2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.FireRequest2), + jsonSerializerContext) as global::Speechify.FireRequest2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.FireRequest2? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.FireRequest2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.FireRequest2), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FireRequest2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FireRequest2.g.cs similarity index 90% rename from src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.FireRequest2.g.cs index a58a498f..5aa254ab 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.FireRequest2.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// Any type /// - public sealed partial class TriggersFireRequest2 + public sealed partial class FireRequest2 { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.Json.g.cs deleted file mode 100644 index 6434b14d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class FlowDeleteTemplateResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.FlowDeleteTemplateResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.FlowDeleteTemplateResponse), - jsonSerializerContext) as global::Speechify.FlowDeleteTemplateResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.FlowDeleteTemplateResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.FlowDeleteTemplateResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.FlowDeleteTemplateResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FlowDeleteTemplateResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.g.cs deleted file mode 100644 index ee17b816..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDeleteTemplateResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class FlowDeleteTemplateResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.Json.g.cs deleted file mode 100644 index f4bfe999..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class FlowDiscardDraftResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.FlowDiscardDraftResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.FlowDiscardDraftResponse), - jsonSerializerContext) as global::Speechify.FlowDiscardDraftResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.FlowDiscardDraftResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.FlowDiscardDraftResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.FlowDiscardDraftResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.FlowDiscardDraftResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.g.cs deleted file mode 100644 index e198fb5b..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.FlowDiscardDraftResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class FlowDiscardDraftResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.Json.g.cs new file mode 100644 index 00000000..c025956e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class ForceEndResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.ForceEndResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.ForceEndResponse), + jsonSerializerContext) as global::Speechify.ForceEndResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.ForceEndResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.ForceEndResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.ForceEndResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ForceEndResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.g.cs new file mode 100644 index 00000000..c4cd1437 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.ForceEndResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class ForceEndResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.Json.g.cs new file mode 100644 index 00000000..5a51d3f3 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class GetOpenApiResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.GetOpenApiResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.GetOpenApiResponse), + jsonSerializerContext) as global::Speechify.GetOpenApiResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.GetOpenApiResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.GetOpenApiResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.GetOpenApiResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.GetOpenApiResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.g.cs new file mode 100644 index 00000000..945c3f3a --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class GetOpenApiResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.Json.g.cs index 4366b5e2..9740ba37 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class TestsRunTestRequest + public sealed partial class GetOpenApiResponse2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.TestsRunTestRequest? FromJson( + public static global::Speechify.GetOpenApiResponse2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.TestsRunTestRequest), - jsonSerializerContext) as global::Speechify.TestsRunTestRequest; + typeof(global::Speechify.GetOpenApiResponse2), + jsonSerializerContext) as global::Speechify.GetOpenApiResponse2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.TestsRunTestRequest? FromJson( + public static global::Speechify.GetOpenApiResponse2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.TestsRunTestRequest? FromJson( + public static global::Speechify.GetOpenApiResponse2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.TestsRunTestRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TestsRunTestRequest; + typeof(global::Speechify.GetOpenApiResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.GetOpenApiResponse2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.g.cs index b5b039ed..49463fd8 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.GetOpenApiResponse2.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// Any type /// - public sealed partial class HostedApisGetOpenApiResponse2 + public sealed partial class GetOpenApiResponse2 { /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.Json.g.cs index b328beee..089fdbd5 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AgentDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class AgentDeleteResponse + public sealed partial class GrantMemberResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.AgentDeleteResponse? FromJson( + public static global::Speechify.GrantMemberResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.AgentDeleteResponse), - jsonSerializerContext) as global::Speechify.AgentDeleteResponse; + typeof(global::Speechify.GrantMemberResponse), + jsonSerializerContext) as global::Speechify.GrantMemberResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.AgentDeleteResponse? FromJson( + public static global::Speechify.GrantMemberResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.AgentDeleteResponse? FromJson( + public static global::Speechify.GrantMemberResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.AgentDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AgentDeleteResponse; + typeof(global::Speechify.GrantMemberResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.GrantMemberResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.g.cs new file mode 100644 index 00000000..1b326bf5 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.GrantMemberResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class GrantMemberResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.g.cs deleted file mode 100644 index 27b60e51..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class HostedApisDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.Json.g.cs deleted file mode 100644 index 9a08386d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class HostedApisGetOpenApiResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.HostedApisGetOpenApiResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.HostedApisGetOpenApiResponse), - jsonSerializerContext) as global::Speechify.HostedApisGetOpenApiResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.HostedApisGetOpenApiResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.HostedApisGetOpenApiResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.HostedApisGetOpenApiResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.HostedApisGetOpenApiResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.g.cs deleted file mode 100644 index 7bb1d867..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class HostedApisGetOpenApiResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.Json.g.cs deleted file mode 100644 index fde3263b..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.HostedApisGetOpenApiResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class HostedApisGetOpenApiResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.HostedApisGetOpenApiResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.HostedApisGetOpenApiResponse2), - jsonSerializerContext) as global::Speechify.HostedApisGetOpenApiResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.HostedApisGetOpenApiResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.HostedApisGetOpenApiResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.HostedApisGetOpenApiResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.HostedApisGetOpenApiResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.Json.g.cs new file mode 100644 index 00000000..efeb1f9b --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class InvalidateResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.InvalidateResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.InvalidateResponse), + jsonSerializerContext) as global::Speechify.InvalidateResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.InvalidateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.InvalidateResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.InvalidateResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.InvalidateResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.g.cs new file mode 100644 index 00000000..b27f42bd --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.InvalidateResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class InvalidateResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.g.cs deleted file mode 100644 index 9d84cd7d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.IvrMemoryInvalidateResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class IvrMemoryInvalidateResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.Json.g.cs deleted file mode 100644 index d4237988..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesBatchDeleteDocumentsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse), - jsonSerializerContext) as global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesBatchDeleteDocumentsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.g.cs deleted file mode 100644 index 883a751e..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesBatchDeleteDocumentsResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class KnowledgeBasesBatchDeleteDocumentsResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.Json.g.cs deleted file mode 100644 index 04037b14..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesDeleteDocumentResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteDocumentResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesDeleteDocumentResponse), - jsonSerializerContext) as global::Speechify.KnowledgeBasesDeleteDocumentResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteDocumentResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesDeleteDocumentResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesDeleteDocumentResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesDeleteDocumentResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.g.cs deleted file mode 100644 index 30c7e8ee..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteDocumentResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class KnowledgeBasesDeleteDocumentResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.Json.g.cs deleted file mode 100644 index 854c83a3..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesDeleteEvalCaseResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteEvalCaseResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesDeleteEvalCaseResponse), - jsonSerializerContext) as global::Speechify.KnowledgeBasesDeleteEvalCaseResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteEvalCaseResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesDeleteEvalCaseResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesDeleteEvalCaseResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesDeleteEvalCaseResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.g.cs deleted file mode 100644 index 638fd54b..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteEvalCaseResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class KnowledgeBasesDeleteEvalCaseResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.Json.g.cs deleted file mode 100644 index 5d06446f..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesDeleteFolderResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteFolderResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesDeleteFolderResponse), - jsonSerializerContext) as global::Speechify.KnowledgeBasesDeleteFolderResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteFolderResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesDeleteFolderResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesDeleteFolderResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesDeleteFolderResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.g.cs deleted file mode 100644 index b63eaf52..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteFolderResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class KnowledgeBasesDeleteFolderResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.Json.g.cs deleted file mode 100644 index b64f1306..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesDeleteResponse), - jsonSerializerContext) as global::Speechify.KnowledgeBasesDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.g.cs deleted file mode 100644 index 67b0667d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class KnowledgeBasesDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.Json.g.cs deleted file mode 100644 index 19678d51..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesUpdateDocumentRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesUpdateDocumentRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesUpdateDocumentRequest), - jsonSerializerContext) as global::Speechify.KnowledgeBasesUpdateDocumentRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesUpdateDocumentRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesUpdateDocumentRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesUpdateDocumentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesUpdateDocumentRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.Json.g.cs deleted file mode 100644 index 57d82f23..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class KnowledgeBasesUploadDocumentRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesUploadDocumentRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.KnowledgeBasesUploadDocumentRequest), - jsonSerializerContext) as global::Speechify.KnowledgeBasesUploadDocumentRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.KnowledgeBasesUploadDocumentRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.KnowledgeBasesUploadDocumentRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.KnowledgeBasesUploadDocumentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.KnowledgeBasesUploadDocumentRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.g.cs deleted file mode 100644 index cb1e57cb..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.MemoriesDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class MemoriesDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.Message.g.cs b/src/libs/Speechify/Generated/Speechify.Models.Message.g.cs index 21802ec6..44bc3355 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.Message.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.Message.g.cs @@ -55,6 +55,20 @@ public sealed partial class Message [global::System.Text.Json.Serialization.JsonPropertyName("speaker_identity")] public string? SpeakerIdentity { get; set; } + /// + /// What started the turn this row belongs to, when it was not a
+ /// person. `api` marks an agent-initiated turn the workspace's own
+ /// backend asked for through the conversation prompt endpoint: the
+ /// `user` row is the instruction that was sent and the `assistant`
+ /// row is the reply the thread saw unasked. Both rows of such a turn
+ /// carry it, so a transcript reader or an evaluator can tell an
+ /// unprompted correction from an answer to a person. Omitted on
+ /// every turn a person or a channel started. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("initiated_by")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Speechify.JsonConverters.MessageInitiatedByJsonConverter))] + public global::Speechify.MessageInitiatedBy? InitiatedBy { get; set; } + /// /// /// @@ -119,6 +133,16 @@ public sealed partial class Message /// including on the agent's own turns, and on a turn whose speaker was
/// later erased at their own request. /// + /// + /// What started the turn this row belongs to, when it was not a
+ /// person. `api` marks an agent-initiated turn the workspace's own
+ /// backend asked for through the conversation prompt endpoint: the
+ /// `user` row is the instruction that was sent and the `assistant`
+ /// row is the reply the thread saw unasked. Both rows of such a turn
+ /// carry it, so a transcript reader or an evaluator can tell an
+ /// unprompted correction from an answer to a person. Omitted on
+ /// every turn a person or a channel started. + /// /// /// /// @@ -135,6 +159,7 @@ public Message( string content, global::System.DateTime startedAt, string? speakerIdentity, + global::Speechify.MessageInitiatedBy? initiatedBy, string? toolName, object? toolArgs, object? toolResult, @@ -145,6 +170,7 @@ public Message( this.Role = role; this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); this.SpeakerIdentity = speakerIdentity; + this.InitiatedBy = initiatedBy; this.ToolName = toolName; this.ToolArgs = toolArgs; this.ToolResult = toolResult; diff --git a/src/libs/Speechify/Generated/Speechify.Models.MessageInitiatedBy.g.cs b/src/libs/Speechify/Generated/Speechify.Models.MessageInitiatedBy.g.cs new file mode 100644 index 00000000..4b87c7ce --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.MessageInitiatedBy.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// What started the turn this row belongs to, when it was not a
+ /// person. `api` marks an agent-initiated turn the workspace's own
+ /// backend asked for through the conversation prompt endpoint: the
+ /// `user` row is the instruction that was sent and the `assistant`
+ /// row is the reply the thread saw unasked. Both rows of such a turn
+ /// carry it, so a transcript reader or an evaluator can tell an
+ /// unprompted correction from an answer to a person. Omitted on
+ /// every turn a person or a channel started. + ///
+ public enum MessageInitiatedBy + { + /// + /// + /// + Api, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class MessageInitiatedByExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this MessageInitiatedBy value) + { + return value switch + { + MessageInitiatedBy.Api => "api", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static MessageInitiatedBy? ToEnum(string value) + { + return value switch + { + "api" => MessageInitiatedBy.Api, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.Json.g.cs deleted file mode 100644 index 45e12879..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class PhoneNumbersDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.PhoneNumbersDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.PhoneNumbersDeleteResponse), - jsonSerializerContext) as global::Speechify.PhoneNumbersDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.PhoneNumbersDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.PhoneNumbersDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.PhoneNumbersDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.PhoneNumbersDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.g.cs deleted file mode 100644 index 1f9a231d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.PhoneNumbersDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class PhoneNumbersDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectResourceCounts.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectResourceCounts.g.cs index 41f0fe20..818267d6 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectResourceCounts.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.ProjectResourceCounts.g.cs @@ -150,6 +150,13 @@ public sealed partial class ProjectResourceCounts [global::System.Text.Json.Serialization.JsonRequired] public required int Files { get; set; } + /// + /// Number of custom models scoped to the project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_models")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CustomModels { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -223,6 +230,9 @@ public sealed partial class ProjectResourceCounts /// their own within a fortnight, so this count falls without
/// anyone deleting anything. /// + /// + /// Number of custom models scoped to the project. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -244,7 +254,8 @@ public ProjectResourceCounts( int channelInstances, int stores, int hostedApis, - int files) + int files, + int customModels) { this.Agents = agents; this.KnowledgeBases = knowledgeBases; @@ -264,6 +275,7 @@ public ProjectResourceCounts( this.Stores = stores; this.HostedApis = hostedApis; this.Files = files; + this.CustomModels = customModels; } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectRestoredCounts.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectRestoredCounts.g.cs index f1606550..d84472e2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectRestoredCounts.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.ProjectRestoredCounts.g.cs @@ -39,6 +39,12 @@ public sealed partial class ProjectRestoredCounts [global::System.Text.Json.Serialization.JsonPropertyName("audio_assets")] public int? AudioAssets { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_models")] + public int? CustomModels { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,6 +59,7 @@ public sealed partial class ProjectRestoredCounts /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -61,13 +68,15 @@ public ProjectRestoredCounts( int? agentTests, int? knowledgeBases, int? tools, - int? audioAssets) + int? audioAssets, + int? customModels) { this.Agents = agents; this.AgentTests = agentTests; this.KnowledgeBases = knowledgeBases; this.Tools = tools; this.AudioAssets = audioAssets; + this.CustomModels = customModels; } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.Json.g.cs deleted file mode 100644 index 25828f4f..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class ProjectsArchiveResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.ProjectsArchiveResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.ProjectsArchiveResponse), - jsonSerializerContext) as global::Speechify.ProjectsArchiveResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.ProjectsArchiveResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.ProjectsArchiveResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.ProjectsArchiveResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ProjectsArchiveResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.g.cs deleted file mode 100644 index 5ff1835d..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsArchiveResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ProjectsArchiveResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.g.cs deleted file mode 100644 index fe1d895f..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ProjectsDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.g.cs deleted file mode 100644 index 708c2c2a..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsGrantMemberResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ProjectsGrantMemberResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.g.cs deleted file mode 100644 index ec967fa1..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsRevokeMemberResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ProjectsRevokeMemberResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.Json.g.cs deleted file mode 100644 index f6fe033b..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class ProjectsUnarchiveResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.ProjectsUnarchiveResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.ProjectsUnarchiveResponse), - jsonSerializerContext) as global::Speechify.ProjectsUnarchiveResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.ProjectsUnarchiveResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.ProjectsUnarchiveResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.ProjectsUnarchiveResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ProjectsUnarchiveResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.g.cs deleted file mode 100644 index c7185ca7..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ProjectsUnarchiveResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ProjectsUnarchiveResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.PromoteAttentionKind.g.cs b/src/libs/Speechify/Generated/Speechify.Models.PromoteAttentionKind.g.cs index 2d31a032..9de783a1 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.PromoteAttentionKind.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.PromoteAttentionKind.g.cs @@ -19,6 +19,10 @@ public enum PromoteAttentionKind /// /// /// + CustomModel, + /// + /// + /// KnowledgeBase, /// /// @@ -44,6 +48,7 @@ public static string ToValueString(this PromoteAttentionKind value) { PromoteAttentionKind.Agent => "agent", PromoteAttentionKind.AudioAsset => "audio_asset", + PromoteAttentionKind.CustomModel => "custom_model", PromoteAttentionKind.KnowledgeBase => "knowledge_base", PromoteAttentionKind.Tool => "tool", PromoteAttentionKind.WebhookEndpoint => "webhook_endpoint", @@ -59,6 +64,7 @@ public static string ToValueString(this PromoteAttentionKind value) { "agent" => PromoteAttentionKind.Agent, "audio_asset" => PromoteAttentionKind.AudioAsset, + "custom_model" => PromoteAttentionKind.CustomModel, "knowledge_base" => PromoteAttentionKind.KnowledgeBase, "tool" => PromoteAttentionKind.Tool, "webhook_endpoint" => PromoteAttentionKind.WebhookEndpoint, diff --git a/src/libs/Speechify/Generated/Speechify.Models.PromoteCreated.g.cs b/src/libs/Speechify/Generated/Speechify.Models.PromoteCreated.g.cs index 1b8696f9..b7eae73a 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.PromoteCreated.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.PromoteCreated.g.cs @@ -57,6 +57,15 @@ public sealed partial class PromoteCreated [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList ImportJobs { get; set; } + /// + /// The project-scoped custom models copied into the target so its
+ /// agents keep running on their own endpoints. A workspace-shared
+ /// custom model is not copied; the target reaches it as it is. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("custom_models")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList CustomModels { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -75,6 +84,11 @@ public sealed partial class PromoteCreated /// /// The URL re-imports queued in the target's knowledge bases; poll each for completion. /// + /// + /// The project-scoped custom models copied into the target so its
+ /// agents keep running on their own endpoints. A workspace-shared
+ /// custom model is not copied; the target reaches it as it is. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -85,7 +99,8 @@ public PromoteCreated( global::System.Collections.Generic.IList audioAssets, global::System.Collections.Generic.IList webhookEndpoints, global::System.Collections.Generic.IList agentTests, - global::System.Collections.Generic.IList importJobs) + global::System.Collections.Generic.IList importJobs, + global::System.Collections.Generic.IList customModels) { this.Agents = agents ?? throw new global::System.ArgumentNullException(nameof(agents)); this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); @@ -94,6 +109,7 @@ public PromoteCreated( this.WebhookEndpoints = webhookEndpoints ?? throw new global::System.ArgumentNullException(nameof(webhookEndpoints)); this.AgentTests = agentTests ?? throw new global::System.ArgumentNullException(nameof(agentTests)); this.ImportJobs = importJobs ?? throw new global::System.ArgumentNullException(nameof(importJobs)); + this.CustomModels = customModels ?? throw new global::System.ArgumentNullException(nameof(customModels)); } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.Json.g.cs index e4aad1e2..8c0f0e42 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class StoresDeleteResponse + public sealed partial class RevokeMemberResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.StoresDeleteResponse? FromJson( + public static global::Speechify.RevokeMemberResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.StoresDeleteResponse), - jsonSerializerContext) as global::Speechify.StoresDeleteResponse; + typeof(global::Speechify.RevokeMemberResponse), + jsonSerializerContext) as global::Speechify.RevokeMemberResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.StoresDeleteResponse? FromJson( + public static global::Speechify.RevokeMemberResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.StoresDeleteResponse? FromJson( + public static global::Speechify.RevokeMemberResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.StoresDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.StoresDeleteResponse; + typeof(global::Speechify.RevokeMemberResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.RevokeMemberResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.g.cs new file mode 100644 index 00000000..e55da7ba --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.RevokeMemberResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class RevokeMemberResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.Json.g.cs new file mode 100644 index 00000000..43b29fc4 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class RevokeResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.RevokeResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.RevokeResponse), + jsonSerializerContext) as global::Speechify.RevokeResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.RevokeResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.RevokeResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.RevokeResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.RevokeResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.g.cs new file mode 100644 index 00000000..ef4d2e47 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.RevokeResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class RevokeResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.Json.g.cs deleted file mode 100644 index debe9f2e..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class RoutesDeleteRouteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.RoutesDeleteRouteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.RoutesDeleteRouteResponse), - jsonSerializerContext) as global::Speechify.RoutesDeleteRouteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.RoutesDeleteRouteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.RoutesDeleteRouteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.RoutesDeleteRouteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.RoutesDeleteRouteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.g.cs deleted file mode 100644 index e184d894..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.RoutesDeleteRouteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class RoutesDeleteRouteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.Json.g.cs new file mode 100644 index 00000000..381f06c0 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class RunTestRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.RunTestRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.RunTestRequest), + jsonSerializerContext) as global::Speechify.RunTestRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.RunTestRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.RunTestRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.RunTestRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.RunTestRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.g.cs similarity index 82% rename from src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.g.cs index 6cff171c..e6e430d1 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsRunTestRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.RunTestRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class TestsRunTestRequest + public sealed partial class RunTestRequest { /// /// Bind the run to this agent (any agent in the workspace).
@@ -23,7 +23,7 @@ public sealed partial class TestsRunTestRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Bind the run to this agent (any agent in the workspace).
@@ -33,16 +33,16 @@ public sealed partial class TestsRunTestRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public TestsRunTestRequest( + public RunTestRequest( string? agentId) { this.AgentId = agentId; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public TestsRunTestRequest() + public RunTestRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.g.cs deleted file mode 100644 index 25ca3f29..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ShareLinksRevokeResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ShareLinksRevokeResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.Json.g.cs deleted file mode 100644 index acb94677..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class SipTrunksDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.SipTrunksDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.SipTrunksDeleteResponse), - jsonSerializerContext) as global::Speechify.SipTrunksDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.SipTrunksDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.SipTrunksDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.SipTrunksDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.SipTrunksDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.g.cs deleted file mode 100644 index 9bc6c71e..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.SipTrunksDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class SipTrunksDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.g.cs deleted file mode 100644 index 80069982..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class StoresDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.Json.g.cs deleted file mode 100644 index 07de289e..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class StoresDetachResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.StoresDetachResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.StoresDetachResponse), - jsonSerializerContext) as global::Speechify.StoresDetachResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.StoresDetachResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.StoresDetachResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.StoresDetachResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.StoresDetachResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.g.cs deleted file mode 100644 index 40548875..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.StoresDetachResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class StoresDetachResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.SystemBuiltinInfo.g.cs b/src/libs/Speechify/Generated/Speechify.Models.SystemBuiltinInfo.g.cs index 9bbd7d80..900233d4 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.SystemBuiltinInfo.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.SystemBuiltinInfo.g.cs @@ -76,13 +76,33 @@ public sealed partial class SystemBuiltinInfo /// conversation - voice or text - never offers one, so attaching it to
/// an agent that only holds conversations leaves it inert. This is NOT
/// the same as `execution`: `fetch_url` is `control_plane` and a text
- /// turn does run it.
+ /// turn does run it. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("runs_only")] + public bool? RunsOnly { get; set; } + + /// + /// Whether only a live text conversation can execute this built-in -
+ /// an autonomous run is never offered it. The mirror of `runs_only`,
+ /// for a capability whose meaning is the conversation it is called
+ /// from: `create_watch` registers a standing order for the chat
+ /// thread it is called in. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("turn_only")] + public bool? TurnOnly { get; set; } + + /// + /// Whether every call is billed at an outside vendor on top of the
+ /// plan. Read this rather than inferring it from `default_on`: a
+ /// built-in can be off by default because turning it on is a
+ /// decision (`create_watch` commits recurring run spend) without
+ /// costing anything per call.
/// Deliberately not required, so a console deployed ahead of the server
/// reads it as absent and simply shows no badge, rather than failing on
/// a missing required field. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("runs_only")] - public bool? RunsOnly { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("priced")] + public bool? Priced { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -131,7 +151,21 @@ public sealed partial class SystemBuiltinInfo /// conversation - voice or text - never offers one, so attaching it to
/// an agent that only holds conversations leaves it inert. This is NOT
/// the same as `execution`: `fetch_url` is `control_plane` and a text
- /// turn does run it.
+ /// turn does run it. + /// + /// + /// Whether only a live text conversation can execute this built-in -
+ /// an autonomous run is never offered it. The mirror of `runs_only`,
+ /// for a capability whose meaning is the conversation it is called
+ /// from: `create_watch` registers a standing order for the chat
+ /// thread it is called in. + /// + /// + /// Whether every call is billed at an outside vendor on top of the
+ /// plan. Read this rather than inferring it from `default_on`: a
+ /// built-in can be off by default because turning it on is a
+ /// decision (`create_watch` commits recurring run spend) without
+ /// costing anything per call.
/// Deliberately not required, so a console deployed ahead of the server
/// reads it as absent and simply shows no badge, rather than failing on
/// a missing required field. @@ -147,7 +181,9 @@ public SystemBuiltinInfo( global::Speechify.SystemBuiltinInfoExecution execution, bool defaultOn, bool voiceOnly, - bool? runsOnly) + bool? runsOnly, + bool? turnOnly, + bool? priced) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); @@ -157,6 +193,8 @@ public SystemBuiltinInfo( this.DefaultOn = defaultOn; this.VoiceOnly = voiceOnly; this.RunsOnly = runsOnly; + this.TurnOnly = turnOnly; + this.Priced = priced; } /// diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.Json.g.cs deleted file mode 100644 index 5a1eb363..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class TestsDeleteTestFolderResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.TestsDeleteTestFolderResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.TestsDeleteTestFolderResponse), - jsonSerializerContext) as global::Speechify.TestsDeleteTestFolderResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.TestsDeleteTestFolderResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.TestsDeleteTestFolderResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.TestsDeleteTestFolderResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TestsDeleteTestFolderResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.g.cs deleted file mode 100644 index 48c05c15..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestFolderResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class TestsDeleteTestFolderResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.Json.g.cs deleted file mode 100644 index aea573b2..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class TestsDeleteTestResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.TestsDeleteTestResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.TestsDeleteTestResponse), - jsonSerializerContext) as global::Speechify.TestsDeleteTestResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.TestsDeleteTestResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.TestsDeleteTestResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.TestsDeleteTestResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TestsDeleteTestResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.g.cs deleted file mode 100644 index 8e25d0b1..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TestsDeleteTestResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class TestsDeleteTestResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.Json.g.cs deleted file mode 100644 index 8fc00b3c..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class ToolDefinitionsDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.ToolDefinitionsDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.ToolDefinitionsDeleteResponse), - jsonSerializerContext) as global::Speechify.ToolDefinitionsDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.ToolDefinitionsDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.ToolDefinitionsDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.ToolDefinitionsDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.ToolDefinitionsDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.g.cs deleted file mode 100644 index 683eb2c2..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.ToolDefinitionsDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class ToolDefinitionsDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TriggerThread.Json.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.TriggerThread.Json.g.cs index 661a73d4..958ca60b 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.TriggerThread.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class TriggersFireRequest + public sealed partial class TriggerThread { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.TriggersFireRequest? FromJson( + public static global::Speechify.TriggerThread? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.TriggersFireRequest), - jsonSerializerContext) as global::Speechify.TriggersFireRequest; + typeof(global::Speechify.TriggerThread), + jsonSerializerContext) as global::Speechify.TriggerThread; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.TriggersFireRequest? FromJson( + public static global::Speechify.TriggerThread? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.TriggersFireRequest? FromJson( + public static global::Speechify.TriggerThread? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.TriggersFireRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TriggersFireRequest; + typeof(global::Speechify.TriggerThread), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TriggerThread; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggerThread.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TriggerThread.g.cs new file mode 100644 index 00000000..6e857f0e --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.TriggerThread.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// The chat thread a standing watch was created in and posts into.
+ /// Present only on a trigger the agent registered from a conversation;
+ /// it cannot be set or changed through this API - the platform resolves
+ /// it from the conversation the order was given in. + ///
+ public sealed partial class TriggerThread + { + /// + /// The channel instance (front door) the thread belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channel_instance_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ChannelInstanceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The channel instance (front door) the thread belongs to. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TriggerThread( + string channelInstanceId) + { + this.ChannelInstanceId = channelInstanceId ?? throw new global::System.ArgumentNullException(nameof(channelInstanceId)); + } + + /// + /// Initializes a new instance of the class. + /// + public TriggerThread() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.g.cs deleted file mode 100644 index 0a1ea158..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class TriggersDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.Json.g.cs deleted file mode 100644 index 9a5100d0..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.TriggersFireRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class TriggersFireRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.TriggersFireRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.TriggersFireRequest2), - jsonSerializerContext) as global::Speechify.TriggersFireRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.TriggersFireRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.TriggersFireRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.TriggersFireRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.TriggersFireRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.Json.g.cs new file mode 100644 index 00000000..6c7ddea2 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class UnarchiveResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.UnarchiveResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.UnarchiveResponse), + jsonSerializerContext) as global::Speechify.UnarchiveResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.UnarchiveResponse? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.UnarchiveResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.UnarchiveResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.UnarchiveResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.g.cs new file mode 100644 index 00000000..72239a34 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.UnarchiveResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Speechify +{ + /// + /// + /// + public sealed partial class UnarchiveResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.Json.g.cs similarity index 88% rename from src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.Json.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.Json.g.cs index 1eb7e525..0a655a16 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AdminForceEndResponse.Json.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Speechify { - public sealed partial class AdminForceEndResponse + public sealed partial class UpdateDocumentRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Speechify.AdminForceEndResponse? FromJson( + public static global::Speechify.UpdateDocumentRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Speechify.AdminForceEndResponse), - jsonSerializerContext) as global::Speechify.AdminForceEndResponse; + typeof(global::Speechify.UpdateDocumentRequest), + jsonSerializerContext) as global::Speechify.UpdateDocumentRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Speechify.AdminForceEndResponse? FromJson( + public static global::Speechify.UpdateDocumentRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Speechify.AdminForceEndResponse? FromJson( + public static global::Speechify.UpdateDocumentRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Speechify.AdminForceEndResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.AdminForceEndResponse; + typeof(global::Speechify.UpdateDocumentRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.UpdateDocumentRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Speechify.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.g.cs similarity index 86% rename from src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.g.cs index 8c8a0e6d..ff6b2fb3 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUpdateDocumentRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.UpdateDocumentRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class KnowledgeBasesUpdateDocumentRequest + public sealed partial class UpdateDocumentRequest { /// /// Destination folder. Prefixed wire identifier
@@ -31,7 +31,7 @@ public sealed partial class KnowledgeBasesUpdateDocumentRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Destination folder. Prefixed wire identifier
@@ -45,7 +45,7 @@ public sealed partial class KnowledgeBasesUpdateDocumentRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public KnowledgeBasesUpdateDocumentRequest( + public UpdateDocumentRequest( string? folderId, global::Speechify.V1AgentsKnowledgeBasesKbIdDocumentsDocumentIdPatchRequestBodyContentApplicationJsonSchemaInjectionMode? injectionMode) { @@ -54,9 +54,9 @@ public KnowledgeBasesUpdateDocumentRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public KnowledgeBasesUpdateDocumentRequest() + public UpdateDocumentRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.Json.g.cs new file mode 100644 index 00000000..396f662a --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class UploadDocumentRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.UploadDocumentRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.UploadDocumentRequest), + jsonSerializerContext) as global::Speechify.UploadDocumentRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.UploadDocumentRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.UploadDocumentRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.UploadDocumentRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.UploadDocumentRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.g.cs similarity index 80% rename from src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.g.cs index 302ee4b1..c1a2e1f2 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.KnowledgeBasesUploadDocumentRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadDocumentRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class KnowledgeBasesUploadDocumentRequest + public sealed partial class UploadDocumentRequest { /// /// @@ -29,14 +29,14 @@ public sealed partial class KnowledgeBasesUploadDocumentRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public KnowledgeBasesUploadDocumentRequest( + public UploadDocumentRequest( byte[] file, string filename) { @@ -45,9 +45,9 @@ public KnowledgeBasesUploadDocumentRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public KnowledgeBasesUploadDocumentRequest() + public UploadDocumentRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.UploadRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest.Json.g.cs new file mode 100644 index 00000000..6fdec584 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class UploadRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.UploadRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.UploadRequest), + jsonSerializerContext) as global::Speechify.UploadRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.UploadRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.UploadRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.UploadRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.UploadRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest.g.cs similarity index 89% rename from src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.UploadRequest.g.cs index 53864f13..5d3fb943 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.AudioAssetsUploadRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class AudioAssetsUploadRequest + public sealed partial class UploadRequest { /// /// Optional workspace project to place this resource in (prefixed
@@ -39,7 +39,7 @@ public sealed partial class AudioAssetsUploadRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The WAV file bytes. Must be PCM 16-bit signed, mono,
@@ -57,7 +57,7 @@ public sealed partial class AudioAssetsUploadRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AudioAssetsUploadRequest( + public UploadRequest( byte[] file, string filename, string? projectId) @@ -68,9 +68,9 @@ public AudioAssetsUploadRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AudioAssetsUploadRequest() + public UploadRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.Json.g.cs new file mode 100644 index 00000000..d568f081 --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class UploadRequest2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.UploadRequest2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.UploadRequest2), + jsonSerializerContext) as global::Speechify.UploadRequest2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.UploadRequest2? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.UploadRequest2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.UploadRequest2), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.UploadRequest2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.g.cs similarity index 96% rename from src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.g.cs index a6ebc2be..01010682 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.FilesUploadRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.UploadRequest2.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class FilesUploadRequest + public sealed partial class UploadRequest2 { /// /// The file to store (at most 25 MiB). The part's `filename` is stored
@@ -77,7 +77,7 @@ public sealed partial class FilesUploadRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The file to store (at most 25 MiB). The part's `filename` is stored
@@ -123,7 +123,7 @@ public sealed partial class FilesUploadRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public FilesUploadRequest( + public UploadRequest2( byte[] file, string filename, string? userIdentity, @@ -140,9 +140,9 @@ public FilesUploadRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public FilesUploadRequest() + public UploadRequest2() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.Json.g.cs new file mode 100644 index 00000000..0ca17a5f --- /dev/null +++ b/src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Speechify +{ + public sealed partial class VerifyRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Speechify.VerifyRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Speechify.VerifyRequest), + jsonSerializerContext) as global::Speechify.VerifyRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Speechify.VerifyRequest? FromJson( + string json) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Speechify.VerifyRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Speechify.VerifyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.VerifyRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Speechify.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.g.cs b/src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.g.cs similarity index 87% rename from src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.g.cs rename to src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.g.cs index 3b1fce88..7beb8d97 100644 --- a/src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.Models.VerifyRequest.g.cs @@ -6,7 +6,7 @@ namespace Speechify /// /// /// - public sealed partial class WatermarkVerifyRequest + public sealed partial class VerifyRequest { /// /// The clip to check, at most 25MB. Give the detector at least
@@ -33,7 +33,7 @@ public sealed partial class WatermarkVerifyRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The clip to check, at most 25MB. Give the detector at least
@@ -48,7 +48,7 @@ public sealed partial class WatermarkVerifyRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WatermarkVerifyRequest( + public VerifyRequest( byte[] audio, string audioname) { @@ -57,9 +57,9 @@ public WatermarkVerifyRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WatermarkVerifyRequest() + public VerifyRequest() { } diff --git a/src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.Json.g.cs deleted file mode 100644 index 847457fe..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.VoicesCreateRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class VoicesCreateRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.VoicesCreateRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.VoicesCreateRequest), - jsonSerializerContext) as global::Speechify.VoicesCreateRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.VoicesCreateRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.VoicesCreateRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.VoicesCreateRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.VoicesCreateRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.Json.g.cs deleted file mode 100644 index e49200b1..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class VoicesDeleteResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.VoicesDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.VoicesDeleteResponse), - jsonSerializerContext) as global::Speechify.VoicesDeleteResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.VoicesDeleteResponse? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.VoicesDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.VoicesDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.VoicesDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.g.cs b/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.g.cs deleted file mode 100644 index 92b606b7..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.VoicesDeleteResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Speechify -{ - /// - /// - /// - public sealed partial class VoicesDeleteResponse - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.Json.g.cs deleted file mode 100644 index d95e641c..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.WatermarkDetectRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class WatermarkDetectRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.WatermarkDetectRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.WatermarkDetectRequest), - jsonSerializerContext) as global::Speechify.WatermarkDetectRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.WatermarkDetectRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.WatermarkDetectRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.WatermarkDetectRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.WatermarkDetectRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.Json.g.cs b/src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.Json.g.cs deleted file mode 100644 index 31160ec5..00000000 --- a/src/libs/Speechify/Generated/Speechify.Models.WatermarkVerifyRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Speechify -{ - public sealed partial class WatermarkVerifyRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Speechify.WatermarkVerifyRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Speechify.WatermarkVerifyRequest), - jsonSerializerContext) as global::Speechify.WatermarkVerifyRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Speechify.WatermarkVerifyRequest? FromJson( - string json) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Speechify.WatermarkVerifyRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Speechify.WatermarkVerifyRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Speechify.WatermarkVerifyRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Speechify.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs index 45d060db..af43f5ac 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs @@ -30,14 +30,14 @@ partial void PrepareRunTestArguments( ref string testId, ref string? speechifyVersion, ref string? idempotencyKey, - global::Speechify.TestsRunTestRequest request); + global::Speechify.RunTestRequest request); partial void PrepareRunTestRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string testId, string? speechifyVersion, string? idempotencyKey, - global::Speechify.TestsRunTestRequest request); + global::Speechify.RunTestRequest request); partial void ProcessRunTestResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -75,7 +75,7 @@ partial void ProcessRunTestResponseContent( public async global::System.Threading.Tasks.Task RunTestAsync( string testId, - global::Speechify.TestsRunTestRequest request, + global::Speechify.RunTestRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -121,7 +121,7 @@ partial void ProcessRunTestResponseContent( public async global::System.Threading.Tasks.Task> RunTestAsResponseAsync( string testId, - global::Speechify.TestsRunTestRequest request, + global::Speechify.RunTestRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -720,7 +720,7 @@ partial void ProcessRunTestResponseContent( global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.TestsRunTestRequest + var __request = new global::Speechify.RunTestRequest { AgentId = agentId, }; diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs index 0586862f..bdff72a4 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs @@ -29,13 +29,13 @@ partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref string? speechifyVersion, ref string? idempotencyKey, - global::Speechify.VoicesCreateRequest request); + global::Speechify.CreateRequest request); partial void PrepareCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? speechifyVersion, string? idempotencyKey, - global::Speechify.VoicesCreateRequest request); + global::Speechify.CreateRequest request); partial void ProcessCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -62,7 +62,7 @@ partial void ProcessCreateResponseContent( /// public async global::System.Threading.Tasks.Task CreateAsync( - global::Speechify.VoicesCreateRequest request, + global::Speechify.CreateRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -96,7 +96,7 @@ partial void ProcessCreateResponseContent( /// public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( - global::Speechify.VoicesCreateRequest request, + global::Speechify.CreateRequest request, string? speechifyVersion = default, string? idempotencyKey = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, @@ -1089,7 +1089,7 @@ request.ConsentRecordingname is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.VoicesCreateRequest + var __request = new global::Speechify.CreateRequest { Name = name, Locale = locale, @@ -1189,7 +1189,7 @@ request.ConsentRecordingname is null sample = sample ?? throw new global::System.ArgumentNullException(nameof(sample)); consentRecording = consentRecording ?? throw new global::System.ArgumentNullException(nameof(consentRecording)); - var request = new global::Speechify.VoicesCreateRequest + var request = new global::Speechify.CreateRequest { Name = name, Locale = locale, @@ -2182,7 +2182,7 @@ request.ConsentRecordingname is null sample = sample ?? throw new global::System.ArgumentNullException(nameof(sample)); consentRecording = consentRecording ?? throw new global::System.ArgumentNullException(nameof(consentRecording)); - var request = new global::Speechify.VoicesCreateRequest + var request = new global::Speechify.CreateRequest { Name = name, Locale = locale, diff --git a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs index cb41f461..12c38579 100644 --- a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs +++ b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs @@ -28,12 +28,12 @@ public partial class WatermarkClient partial void PrepareDetectArguments( global::System.Net.Http.HttpClient httpClient, ref string? speechifyVersion, - global::Speechify.WatermarkDetectRequest request); + global::Speechify.DetectRequest request); partial void PrepareDetectRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? speechifyVersion, - global::Speechify.WatermarkDetectRequest request); + global::Speechify.DetectRequest request); partial void ProcessDetectResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -65,7 +65,7 @@ partial void ProcessDetectResponseContent( /// public async global::System.Threading.Tasks.Task DetectAsync( - global::Speechify.WatermarkDetectRequest request, + global::Speechify.DetectRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -102,7 +102,7 @@ partial void ProcessDetectResponseContent( /// public async global::System.Threading.Tasks.Task> DetectAsResponseAsync( - global::Speechify.WatermarkDetectRequest request, + global::Speechify.DetectRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -840,7 +840,7 @@ request.Audioname is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.WatermarkDetectRequest + var __request = new global::Speechify.DetectRequest { Audio = audio, Audioname = audioname, @@ -893,7 +893,7 @@ request.Audioname is null { audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::Speechify.WatermarkDetectRequest + var request = new global::Speechify.DetectRequest { Audio = global::System.Array.Empty(), Audioname = audioname, @@ -1623,7 +1623,7 @@ request.Audioname is null { audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::Speechify.WatermarkDetectRequest + var request = new global::Speechify.DetectRequest { Audio = global::System.Array.Empty(), Audioname = audioname, diff --git a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs index 9ff6e66e..a7a88129 100644 --- a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs +++ b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs @@ -28,12 +28,12 @@ public partial class WatermarkClient partial void PrepareVerifyArguments( global::System.Net.Http.HttpClient httpClient, ref string? speechifyVersion, - global::Speechify.WatermarkVerifyRequest request); + global::Speechify.VerifyRequest request); partial void PrepareVerifyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? speechifyVersion, - global::Speechify.WatermarkVerifyRequest request); + global::Speechify.VerifyRequest request); partial void ProcessVerifyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -77,7 +77,7 @@ partial void ProcessVerifyResponseContent( /// public async global::System.Threading.Tasks.Task VerifyAsync( - global::Speechify.WatermarkVerifyRequest request, + global::Speechify.VerifyRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -126,7 +126,7 @@ partial void ProcessVerifyResponseContent( /// public async global::System.Threading.Tasks.Task> VerifyAsResponseAsync( - global::Speechify.WatermarkVerifyRequest request, + global::Speechify.VerifyRequest request, string? speechifyVersion = default, global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -800,7 +800,7 @@ request.Audioname is null global::Speechify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Speechify.WatermarkVerifyRequest + var __request = new global::Speechify.VerifyRequest { Audio = audio, Audioname = audioname, @@ -863,7 +863,7 @@ request.Audioname is null { audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::Speechify.WatermarkVerifyRequest + var request = new global::Speechify.VerifyRequest { Audio = global::System.Array.Empty(), Audioname = audioname, @@ -1529,7 +1529,7 @@ request.Audioname is null { audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::Speechify.WatermarkVerifyRequest + var request = new global::Speechify.VerifyRequest { Audio = global::System.Array.Empty(), Audioname = audioname, diff --git a/src/libs/Speechify/openapi.yaml b/src/libs/Speechify/openapi.yaml index 2a3c4619..ef53d147 100644 --- a/src/libs/Speechify/openapi.yaml +++ b/src/libs/Speechify/openapi.yaml @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"paths":{"/v1/audio/speech":{"post":{"operationId":"audio_speech","summary":"Create Speech","description":"Synthesize speech audio from text or SSML. Returns the complete audio\nfile plus billing and speech-mark metadata in a single JSON response.\nFor low-latency playback or long-form text, use POST /v1/audio/stream.\nSet `output_format` for explicit sample-rate/bitrate control (e.g.\n`pcm_16000` or `ulaw_8000` for telephony).","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Synthesized speech audio for the requested input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSpeechResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSpeechRequest"}}}}}},"/v1/audio/stream":{"post":{"operationId":"audio_stream","summary":"Stream Speech","description":"Synthesize speech and stream the audio back as it is generated, for\nlow-latency playback. Set `output_format` in the body for explicit\ncodec/sample-rate/bitrate control (e.g. `pcm_16000` or `ulaw_8000` for\ntelephony), or fall back to the Accept header for the container; the\nresponse is raw audio bytes (HTTP chunked). For Base64-encoded audio\nwith speech-mark metadata in a single JSON response, use\nPOST /v1/audio/speech.","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","description":"Selects the audio container/codec for the streamed response when\n`output_format` is not set in the request body. The response\nContent-Type echoes this value, except `audio/pcm` returns\n`audio/L16` with rate and channels parameters (raw 16-bit linear\nPCM, 24 kHz mono, little-endian). For explicit sample-rate/bitrate\ncontrol (e.g. `pcm_16000`, `ulaw_8000`), set `output_format` in the\nbody instead; it takes precedence over this header.","required":false,"schema":{"$ref":"#/components/schemas/V1AudioStreamPostParametersAccept"}}],"responses":{"200":{"description":"Streamed audio. When `output_format` is set it selects the\ncodec/sample rate; otherwise the Accept header does. The\nContent-Type reflects the selected format: it matches the Accept\nheader, except raw PCM returns `audio/L16` (with rate and channels\nparameters) and u-law returns `audio/basic`.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStreamRequest"}}}}}},"/v1/audio/stream/with-timestamps":{"post":{"operationId":"audio_streamWithTimestamps","summary":"Stream Speech With Timestamps","description":"Synthesize speech and stream it back together with word-level speech\nmarks, for text highlighting, captions and audio-text synchronization\nwhile the audio is still arriving.\n\nThe response is a Server-Sent Events stream. Each `speech.chunk` event\ncarries a Base64-encoded run of audio, the speech marks that became\nfinal with it, or both - a chunk may carry only one of the two, and the\nlast chunk of a stream is often marks-only. A terminal `speech.done`\nevent ends the stream; there is no `[DONE]` sentinel. Ignore any event\ntype you do not recognize, so that new event types do not break your\nintegration.\n\nSpeech-mark times are absolute milliseconds from the start of the\nsynthesis, so concatenate the audio chunks into one stream and apply the\nmarks against that single timeline. Which chunk a mark arrives on is a\ndelivery detail and carries no meaning. Times stay correct for every\n`output_format`: changing the codec or sample rate does not change the\nduration.\n\nSpeech marks are produced by the streaming-native models. The default\n`simba-3.0` and `simba-3.2` both serve this route. The legacy\n`simba-english` and `simba-multilingual` models never could: on a\nworkspace pinned before API version `2026-09-21` they return 400\n`speech_marks_unsupported` here, and from that version on they return\n400 `model_retired` on every synthesis route. Both are switched off\nentirely on 2026-11-21.\nFor Base64-encoded audio and speech marks in one non-streamed JSON\nresponse, on any model, use POST /v1/audio/speech.","tags":["audio"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","description":"Selects the audio container/codec carried inside the events when\n`output_format` is not set in the request body. The selected media\ntype is echoed on the `Speechify-Audio-Content-Type` response\nheader, since the response's own Content-Type is `text/event-stream`.","required":false,"schema":{"$ref":"#/components/schemas/V1AudioStreamWithTimestampsPostParametersAccept"}}],"responses":{"200":{"description":"A Server-Sent Events stream of `speech.chunk` events followed by one\nterminal `speech.done` event. A failure after the stream has started\nis delivered as a `speech.error` event carrying the standard error\nenvelope, because the status code is already committed.\n\nThe transport is `text/event-stream`: each event is an\n`event:`/`data:` pair whose `data` is one JSON payload matching the\nschema below. The payload's `type` field mirrors the `event:` name,\nso the stream is also parseable from `data:` lines alone. Ignore\nevent types you do not recognize.","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SpeechStreamEvent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStreamRequest"}}}}}},"/v1/voices":{"get":{"operationId":"voices_list","summary":"List Voices","description":"Lists the voices available to the caller - the shared voice\ncatalog plus the cloned voices they can reach, whichever member or\nservice-account key created them. A clone filed under a project is\nlisted only for a caller who can reach that project; a clone no\nproject filed is shared with the whole workspace and is listed for\neveryone in it. By default\nthe full catalogue is returned in one response. Pagination is\nopt-in: pass `limit` (and then `cursor` from the previous\nresponse) to page through the list while `has_more` is true. Max\npage size is 200. Narrow the list with the `type` and `locale`\nfilters.\n\nA page can come back with fewer than `limit` voices, and a short\npage - an empty one included - is not the end of the list. Keep\nfollowing `next_cursor` while `has_more` is true.","tags":["voices"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"type","in":"query","description":"Filter by voice type: `personal` (the workspace's cloned voices)\nor `shared` (the public catalogue). Omit to return both.","required":false,"schema":{"$ref":"#/components/schemas/V1VoicesGetParametersType"}},{"name":"locale","in":"query","description":"Filter to voices whose locale matches this BCP-47 language range,\nprefix-matched: `en` matches `en-US` and `en-GB`; `en-US` matches\nonly `en-US`. Case-insensitive. Omit to return all locales.","required":false,"schema":{"type":"string"}},{"name":"gender","in":"query","description":"Filter by voice gender. Omit to return all genders.","required":false,"schema":{"$ref":"#/components/schemas/V1VoicesGetParametersGender"}},{"name":"model","in":"query","description":"Filter to voices that support this model (as listed in each voice's\n`models[]`), e.g. `simba-3.2`. Omit to return voices for all models.","required":false,"schema":{"type":"string"}},{"name":"project_id","in":"query","description":"Filter cloned voices by workspace project: omit for every voice you\ncan reach, pass the literal `shared` for the clones no project\nfiled, or a `proj_...` id for the clones filed under that project.\nThe shared catalog carries no project and is returned either way.\n\nA clone is filed under a project when a project-pinned key created\nit. A clone with no project is shared with the whole workspace\nrather than sitting in a Default project, so the literal here is\n`shared`, never `default` - passing `default` is a 400. Returns 404\nproject_not_found for a malformed id and for any project outside\nyour reach: a project-pinned key reaches only its pinned project,\nand a member holding project grants reaches only the granted ones.\nThat 404 is the same in every case and does not reveal whether such\na project exists. `shared` is always inside your reach.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The voice catalogue (or a page of it when `limit` is set).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVoicesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"voices_create","summary":"Create Voice","description":"Create a cloned voice for the workspace from a 10-30 second audio sample, with verified consent from the speaker.\n\nCloning requires proof that the speaker agreed to it. Create a consent challenge with `POST /v1/voices/consent-challenges`, show the returned `phrase` to the speaker, record them reading it aloud, and send that recording here as `consent_recording` together with the challenge's `consent_challenge_id`. Speechify transcribes the recording, checks it against the phrase it issued, checks that its speaker is the speaker in your `sample`, and keeps it as the consent record for the voice. The person consenting therefore has to be the person being cloned. A challenge is single use and short-lived, so record and submit in one sitting.\n\nThe clone belongs to the workspace rather than the member who created it, and access follows the caller's workspace role and API-key scopes exactly as for any other voice: voices scopes to list it, audio scopes to synthesize with it, and the content-management permission plus a write scope on the key to delete it. Cloned voices are usable self-serve on `simba-3.0` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual` until they are switched off on 2026-11-21). `simba-3.2` also serves cloned voices.\n\nCallers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog.","tags":["voices"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"A created voice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoice"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the personal voice"},"locale":{"type":"string","default":"en-US","description":"Native language (locale) of the personal voice (e.g. en-US, es-ES, etc.)"},"gender":{"$ref":"#/components/schemas/V1VoicesPostRequestBodyContentMultipartFormDataSchemaGender","description":"Gender marker for the personal voice\nmale GenderMale\nfemale GenderFemale\nnot_specified GenderNotSpecified"},"sample":{"type":"string","format":"binary","description":"Audio sample of the voice to clone, 10-30 seconds of clean speech."},"avatar":{"type":"string","format":"binary","description":"Avatar image file"},"consent_challenge_id":{"type":"string","description":"The `id` of the consent challenge this create consumes, from\n`POST /v1/voices/consent-challenges`. Single use: once a\ncreate has consumed it, whether or not that create\nsucceeded, it cannot be used again."},"consent_recording":{"type":"string","format":"binary","description":"Recording of the speaker reading the challenge's `phrase`\naloud. This is the consent record for the voice, not a\nsecond voice sample: it must be the same person as in\n`sample`, and it is retained as evidence. 5-30 seconds, at\nmost 25 MB, in any common audio container."}},"required":["name","gender","sample","consent_challenge_id","consent_recording"]}}}}}},"/v1/voices/consent-challenges":{"post":{"operationId":"consentChallenges_create","summary":"Create Consent Challenge","description":"Start the consent check for a voice clone.\n\nReturns a `phrase` for the speaker to read aloud and an `id` that identifies this challenge. Show the phrase to the speaker exactly as returned, record them reading it, then send the recording and the `id` to `POST /v1/voices`, which verifies the recording against the phrase and against the voice sample being cloned, then keeps it as the consent record.\n\nA challenge is single use, is bound to the workspace that created it, and expires at `expires_at` - it is proof that a speaker was in front of a microphone just now, so create it when you are ready to record, not at the start of your flow. If it expires, create another one and record again.\n\nChallenge creation is rate limited per workspace at a few dozen per hour, far more tightly than the rest of the voice surface, because each one precedes a person recording themselves - mint it when your speaker is ready, not speculatively. Read the live ceiling off `RateLimit-*` rather than hard-coding it. **On a `429`, always honour `Retry-After` rather than a fixed backoff of your own**: the wait is measured in minutes and can run to most of an hour. `RateLimit-*` are omitted rather than reporting a bucket that is not the one refusing.","tags":["consentChallenges"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created consent challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentChallenge"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConsentChallengeRequest"}}}}}},"/v1/voices/{voice_id}":{"get":{"operationId":"voices_get","summary":"Get Voice","description":"Fetch a single voice by id - a shared catalogue voice or one of\nthe workspace's cloned voices. A cloned voice that belongs to\nanother workspace returns 404, identical to an unknown id, so\nvoice inventory is never enumerable across tenants.","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to fetch","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The voice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoice"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"voices_delete","summary":"Delete Voice","description":"Delete one of the workspace's cloned voices. Requires the\n`content.manage` permission (owner, admin, or member); a\nservice-account key is authorized by its scopes instead.","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to delete","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Voice deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/voices/{voice_id}/sample":{"get":{"operationId":"voices_downloadSample","summary":"Download Voice Sample","description":"Download a personal (cloned) voice sample","tags":["voices"],"parameters":[{"name":"voice_id","in":"path","description":"The ID of the voice to download sample for","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Voice sample audio file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"A downstream dependency is degraded or the endpoint is\nintentionally disabled (e.g. phone-number purchase before\nops setup).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/audio/models":{"get":{"operationId":"models_list","summary":"List Models","description":"List the text-to-speech models available for synthesis. Drive a model\npicker from this response, then pass a model `id` as the `model`\nparameter to POST /v1/audio/speech or /v1/audio/stream. The response\nmarks the default model (used when a request omits `model`), the\nroutes each model may be passed to, and which voices it accepts.\nMulti-speaker models arrive in a separate `dialogue_models` array\nbecause they are valid only on POST /v1/audio/dialogue. Returns\nthe full set in a single response: the model catalog is static\nplatform reference data, so it is intentionally not paginated.","tags":["models"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The available text-to-speech models.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/audio/watermark/detect":{"post":{"operationId":"watermark_detect","summary":"Detect Watermark","description":"Check whether a clip carries the watermark Speechify seals into audio it\ngenerates. Upload the audio as `audio`; nothing about it is stored, and\nno voice is read or written.\n\nRead the answer carefully in one direction. A `watermarked: true` is\npositive evidence that the audio came from Speechify synthesis. A\n`watermarked: false` is NOT proof that it did not: only models\nredeployed since the watermark shipped mark their output, the detector\nneeds at least three seconds of clear speech to judge, and re-encoding\nor changing the speed of a clip degrades the mark. Treat a negative as\nthe absence of evidence rather than as evidence of absence.\n\nChecks are rate-limited well below the synthesis budget: this is a\nforensic question, not a data-plane call.","tags":["watermark"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The clip was checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatermarkDetectionResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"The clip to check, at most 25MB. Give the detector at least\nthree seconds of clear speech; below that its confidence is\nnot worth acting on, and below half a second it always\nreports zero."}},"required":["audio"]}}}}}},"/v1/audio/watermark/verify":{"post":{"operationId":"watermark_verify","summary":"Verify Watermark","description":"The public AI detection tool. Ask whether a clip carries the watermark\nSpeechify seals into audio it generates, with no account, no API key and\nno credential of any kind.\n\n`verify` answers; `detect` measures. This route returns a bare yes or no,\nthe way verifying a signature does. Its sibling\n`POST /v1/audio/watermark/detect` takes an API key and returns the\ndetector's confidence alongside the verdict.\n\nThis is the programmatic half of the tool published at\n, and it exists so the tool can be invoked\nwithout visiting our website, as California's AI Transparency Act\n(BPC 22757.2) requires. Nothing about the clip is stored, and nothing\nidentifying about you is collected or retained.\n\nThe answer is a bare verdict. `watermarked: true` is positive evidence\nthat the audio came from Speechify synthesis. `watermarked: false` is\nNOT proof that it did not: only models redeployed since the watermark\nshipped mark their output, the detector needs at least three seconds of\nclear speech to judge, and re-encoding or changing the speed of a clip\ndegrades the mark. Treat a negative as the absence of evidence rather\nthan as evidence of absence.\n\nBecause the tool takes no credential, it is rate-limited per client\naddress and shares a platform-wide budget: expect a 429 under sustained\nautomated use, and retry after the interval the response advertises.\nUse `POST /v1/audio/watermark/detect` with an API key for the detector's\nconfidence score and a per-workspace allowance of its own.","tags":["watermark"],"parameters":[{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The clip was checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatermarkVerificationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeded a per-endpoint size limit (e.g. the file\nupload cap, KB document upload cap, batch-call CSV cap).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request was well-formed but semantically rejected -\ntypically a referential integrity violation (e.g. flow node\nreferences an audio asset in another workspace) or a state\nmachine refusal.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"An upstream dependency (the TTS composer or voice-metadata\nservice) returned a 5xx. The raw upstream detail is not\nforwarded - the cause is in the server log; the response is a\nfixed `upstream_failure` envelope. Safe to retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"The clip to check, at most 25MB. Give the detector at least\nthree seconds of clear speech; below that its answer is not\nworth acting on."}},"required":["audio"]}}}}}},"/v1/agents":{"get":{"operationId":"agent_list","summary":"List Agents","description":"List voice agents owned by the caller. Cursor-paginated: omit\n`cursor` for the first page; walk pages while `has_more` is true\n(default page size 50, max 200).","tags":["agent"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A list of voice agents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"agent_create","summary":"Create Agent","description":"Create a voice agent.\n\nThe agent lands in the project named by `project_id`, or in the\nimplicit Default project when none is given. Each project holds at\nmost a fixed number of live agents; a create past that answers\n`409 agent_limit_reached` naming the ceiling, and deleting an agent\nin that project - or creating this one in another - frees a slot.\n","tags":["agent"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"The created agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}}}}},"/v1/agents/voices":{"get":{"operationId":"agent_listAgentVoices","summary":"List Agent Voices","description":"List the voice catalogue available for voice agents: the curated\nshared catalogue plus your workspace's own cloned voices, each\nmarked by `type` (`shared` or `personal`). The same slug set is\naccepted by POST/PATCH /v1/agents, so any voice listed here can be\nassigned to an agent. Cloned voices are workspace-owned only - a\npersonal voice scoped to an individual is not selectable on an\nagent, which is a workspace-shared resource. The JSON layout\nintentionally mirrors the TTS `/v1/voices` shape so a single voice\npicker can consume both endpoints.\n\nCursor-paginated: pass `cursor` + `limit` and walk pages while\n`has_more` is true. From API version `2026-08-07` an omitted `limit`\nreturns the first page (default 50, max 200); a caller pinned before\nthat date keeps the historical whole-catalogue response until it opts\nin. The shared catalogue is served first, then your cloned voices.\n","tags":["agent"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The curated agent voice catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentVoicesResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/tts-models":{"get":{"operationId":"agent_listTTSModels","summary":"List Agent TTS Models","description":"List the Simba text-to-speech models a voice agent can be pinned to\nwith `tts.model`.\n\nThe response is the whole catalog and is the same for every\nworkspace - which model serves an agent is a routing decision, not\nan entitlement, so nothing here is plan-gated. Whether a *particular*\nagent may select an entry depends on two facts this response\npublishes rather than resolving for you, because both change without\nthis list changing:\n\n- `english_only` - the model has no multilingual deployment, so an\n agent that declares `additional_languages` (or whose `language` is\n not English) cannot select it.\n- `requires_voice_curation` - deprecated and always false. No model\n asks a voice for a registration: every training conditions on the\n voice's own prompt audio, so every model is selectable on every\n voice we speak ourselves, cloned voices included.\n\nDrive a model picker from this and the agent's languages and it can\nonly offer combinations POST/PATCH /v1/agents will accept.\nReturns the full set in one response: bounded by the platform's\ncurated model catalog, so it is intentionally not paginated.\n","tags":["agent"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The TTS models selectable for voice agents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTTSModelsResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}":{"delete":{"operationId":"agent_delete","summary":"Delete Agent","description":"Delete an agent, and with it everything that belonged only to that\nagent.\n\n**Goes with the agent**, immediately unreadable through every\nendpoint: its runs and their step journals and approvals, its\nconversations and the transcripts, messages and recordings inside\nthem, what it learned about the people it spoke to, its triggers,\nshare links, channel bindings, team memberships and the batch\ncampaigns it dialled. A run that has not settled is asked to stop,\nincluding one parked waiting on a person or on a delegated child. These are removed for good 30 days\nlater; until then the delete can still be walked back by support.\n\n**Survives the agent**, because it belongs to the workspace rather\nthan to this agent: attached tools, knowledge bases, stores and\nskills (only the attachment is dropped), the agent's tests, phone\nnumbers, and the teams it belonged to.\n\n**Kept regardless**, because it is accounting rather than content:\nthe usage the workspace was billed for.\n\nRefused with `409 agent_in_use` while a live phone number still\nroutes to the agent, including the agent a webhook binding\nprovisioned for its number; `used_by` names the numbers. Unbind them\n(`DELETE /v1/agents/{agent_id}/phone-numbers/{phone_number_id}`,\nwhich also clears a webhook binding) and the delete proceeds.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Agent deleted.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A live phone number still routes to the agent. `used_by` names\nthem so the caller can unbind first.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInUseError"}}}}}},"get":{"operationId":"agent_get","summary":"Get Agent","description":"Retrieve a voice agent by ID.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"agent_update","summary":"Update Agent","description":"Update a voice agent. Only fields present on the request body are changed.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentRequest"}}}}}},"/v1/agents/{agent_id}/widget-config":{"get":{"operationId":"agent_getWidgetConfig","summary":"Get Agent Widget Config","description":"Return the embed-widget appearance config for an agent. Works\nunauthenticated for public agents; the body is cosmetic only.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's widget configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfig"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/schema":{"get":{"operationId":"flow_getSchema","summary":"Get Flow Graph Schema","description":"Return the JSON Schema describing the flow graph node taxonomy.\nUnauthenticated; flow editors fetch it to validate graphs client-side.\n","tags":["flow"],"parameters":[{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A JSON Schema document for the flow graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agent_flow_getSchema_Response_200"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow":{"get":{"operationId":"flow_getFlow","summary":"Get Agent Flow","description":"Return the agent's flow graph: the current draft (if any), the\nactive published graph (if any), and the version history.\n","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The draft graph, active graph, and version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFlowResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"flow_updateFlow","summary":"Update Agent Flow Draft","description":"Replace the agent's draft flow graph. The graph is validated\nbefore it is stored; publish it separately to make it active.\n","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The stored draft graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/publish":{"post":{"operationId":"flow_publish","summary":"Publish Agent Flow","description":"Publish the agent's draft graph as a new active flow version.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The newly published flow version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowVersion"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The behavioral-eval publish gate refused the publish, on one of two\ncodes the caller can FIX (neither is waited out):\n\n- `agent_publish_gate_failed`: the agent's configured suite did not\n pass. `error.details` carries the verdict (per-case, per-criterion).\n- `agent_publish_gate_tool_unreachable`: the checks never ran because\n a tool the agent is attached to could not be reached. Nothing was\n judged, and no retry helps while the endpoint is down;\n `error.message` names the tool, the endpoint and the reason.\n\nThe one publish failure that IS waited out is the `503`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The publish checks could not run (`agent_publish_gate_unavailable`):\nthe eval worker, the judge or the probe corpus errored, so nothing\nabout the agent was judged. This is OURS, and the only publish failure\na caller waits out: not a verdict on the configuration, retry after\n`Retry-After`. `error.details` lists the cases that could not run. A\ncheck that could not run because of the agent's own configuration is\nthe `422 agent_publish_gate_tool_unreachable` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/rollback":{"post":{"operationId":"flow_rollback","summary":"Roll Back Agent Flow","description":"Publish a prior flow version as the active graph.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The flow version that is now active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowVersion"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The behavioral-eval publish gate refused the rollback, on one of two\ncodes the caller can FIX (neither is waited out):\n\n- `agent_publish_gate_failed`: the target version did not pass the\n agent's configured suite. `error.details` carries the verdict.\n- `agent_publish_gate_tool_unreachable`: the checks never ran because\n a tool the agent is attached to could not be reached;\n `error.message` names the tool, the endpoint and the reason.\n\nThe one rollback failure that IS waited out is the `503`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The gate's checks could not run on the rollback target\n(`agent_publish_gate_unavailable`): the eval worker, the judge or\nthe probe corpus errored, so nothing about the version was judged.\nThis is OURS, and the only rollback failure a caller waits out: not a\nverdict on it, retry after `Retry-After`. `error.details` lists the\ncases that could not run. A check that could not run because of the\nagent's own configuration is the `422\nagent_publish_gate_tool_unreachable` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackFlowRequest"}}}}}},"/v1/agents/{agent_id}/flow/deactivate":{"post":{"operationId":"flow_deactivate","summary":"Deactivate Agent Flow","description":"Deactivate the agent's published flow so the agent runs the synthesized default flow.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Flow deactivated.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/draft":{"delete":{"operationId":"flow_discardDraft","summary":"Discard Agent Flow Draft","description":"Discard the agent's unpublished draft flow graph.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Draft discarded.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/versions":{"get":{"operationId":"flow_listVersions","summary":"List Agent Flow Versions","description":"List every published flow version for the agent, newest first.\nCursor-paginated: omit `cursor` for the first page; walk pages\nwhile `has_more` is true (default page size 50, max 200).","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's flow version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFlowVersionsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{agent_id}/flow/versions/{version_id}":{"get":{"operationId":"flow_getVersion","summary":"Get Agent Flow Version","description":"Return the full flow graph for a specific published version.","tags":["flow"],"parameters":[{"name":"agent_id","in":"path","description":"Prefixed agent id.","required":true,"schema":{"type":"string"}},{"name":"version_id","in":"path","description":"Prefixed flow version id (`fver_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested flow version's graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/templates":{"get":{"operationId":"flow_listTemplates","summary":"List Flow Templates","description":"List the reusable flow templates available to the workspace.\nCursor-paginated: omit `cursor` for the first page; walk pages\nwhile `has_more` is true (default page size 50, max 200).","tags":["flow"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The available flow templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFlowTemplatesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"flow_createTemplate","summary":"Create Flow Template","description":"Create a reusable flow template from a graph.","tags":["flow"],"parameters":[{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"201":{"description":"The created flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlowTemplateRequest"}}}}}},"/v1/agents/flow/templates/{flow_template_id}":{"get":{"operationId":"flow_getTemplate","summary":"Get Flow Template","description":"Retrieve a flow template by id.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"flow_updateTemplate","summary":"Update Flow Template","description":"Replace a flow template. The whole template is replaced, not patched field-by-field.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated flow template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowTemplate"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlowTemplateRequest"}}}}},"delete":{"operationId":"flow_deleteTemplate","summary":"Delete Flow Template","description":"Delete a flow template.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Template deleted.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/flow/templates/{flow_template_id}/clone":{"post":{"operationId":"flow_cloneTemplate","summary":"Clone Flow Template","description":"Clone a flow template onto an agent as a new draft graph.","tags":["flow"],"parameters":[{"name":"flow_template_id","in":"path","description":"Flow template id (prefixed external id, `tmpl_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's new draft graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowGraph"}}}},"400":{"description":"Flow validation failed (or the request body was undecodable). The\nstandard `Error` envelope plus an `issues` array locating each problem\nfor the editor. See the `FlowValidationError` schema.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationError"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"An unexpected server-side error occurred. Safe to retry with\nexponential backoff for idempotent requests.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneFlowTemplateRequest"}}}}}},"/v1/agents/{agent_id}/evaluation-config":{"get":{"operationId":"agent_getEvaluationConfig","summary":"Get Evaluation Config","description":"Retrieve the agent's post-call evaluation criteria + data-collection config.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The evaluation config for the agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationConfig"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"agent_updateEvaluationConfig","summary":"Update Evaluation Config","description":"Replace the agent's evaluation criteria + data-collection fields.","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated evaluation config.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationConfig"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationConfigRequest"}}}}}},"/v1/agents/{agent_id}/variables":{"get":{"operationId":"agent_getDynamicVariables","summary":"Get Dynamic Variables","description":"Retrieve the agent's customer-scope dynamic variables and the read-only\ncatalogue of reserved `system__*` keys. The system variables list is\nprovided so editor UIs can render the reference list without maintaining\na client-side copy of the catalogue.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The agent's variable catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDynamicVariablesResponse"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"agent_updateDynamicVariables","summary":"Update Dynamic Variables","description":"Replace the agent's customer-scope dynamic variable definitions.\nThe supplied list overwrites the stored list wholesale (same\nsemantics as `updateEvaluationConfig`). Pass an empty array to\nclear all variables. Up to 20 variables per agent. Keys must\nmatch `[a-zA-Z0-9_]+` and must not start with the reserved\n`system__` prefix.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The updated variable catalogue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDynamicVariablesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDynamicVariablesRequest"}}}}}},"/v1/agents/{agent_id}/conversations":{"post":{"operationId":"agent_createConversation","summary":"Create Conversation","description":"Start a new voice conversation with the agent. Returns a realtime\nvoice session + short-lived client token so the caller can\nconnect the audio pipeline directly. The agent is dispatched\nserver-side; no additional client action required.\n\nPass `dynamic_variables` to supply per-session values that override\nthe agent's stored variable defaults for this one conversation.\nKeys in the `system__` namespace are rejected at this boundary.\n\nPass `user_identity` as the stable caller key your application uses\nfor memory and caller correlation. It is kept separate from the\nopaque, per-session realtime participant identity.\n\n`overrides.voice_id` replaces the configured voice for the entire\nconversation, including every configured language the voice can\nserve. The request is rejected when the voice is unavailable or\ncannot cover the agent's configured language set; the rejection\nnames `overrides.voice_id` in the error envelope's `fields` map.\nThe override belongs to this conversation only: if the call is\ntransferred to another agent mid-conversation, that agent speaks\nwith its own configured voice.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created conversation with its realtime session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationRequest"}}}}}},"/v1/agents/{agent_id}/sessions":{"post":{"operationId":"agent_createSession","summary":"Create Session","description":"Mint a realtime voice session for the given agent. Widget-friendly\ncounterpart to `createConversation` \u2014 same response shape, dual\nauthentication:\n\n* **Authenticated (Bearer)**: works for any agent the caller\n owns. Typical server-to-server flow where the embedding\n site's backend mints a token and hands it to the browser so\n the API key never reaches the client.\n* **Unauthenticated**: works only when `agent.is_public = true`\n AND the request's `Origin` header matches `agent.allowed_origins`\n (or that list is empty). When `agent.hostname_allowlist` is\n non-empty, the `Origin` hostname must additionally be a\n member of that list. Used directly by the\n `` web component.\n\nResponds with the same `CreateConversationResponse` as\n`createConversation`.\n\n`Idempotency-Key` replay is scoped to the authenticated caller, so it\napplies to Bearer requests only: an unauthenticated mint has no scope\nto replay under, and retrying one mints a fresh session.\n","tags":["agent"],"parameters":[{"name":"agent_id","in":"path","description":"Agent id (prefixed external id, `agent_...`).","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key (an opaque string, max 255 chars) that makes a\nside-effect POST safe to retry: the server runs the operation exactly\nonce and replays the first response (its status and body) for 24 hours.\nReusing a key with a different request body, or while the first request\nis still in flight, returns `409 idempotency_conflict`. A replayed\nresponse carries the `Idempotent-Replayed: true` header.\n","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The created session with its realtime token + URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace has insufficient credits, or the request needs a\nplan tier the workspace is not on (e.g. voice cloning). Distinct\nfrom `Forbidden` so SDK consumers can drive upgrade UX.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential authenticated, but is not authorised for this\nresource - typically a workspace-role gate (owner / admin\nrequired) or a cross-tenant access attempt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request conflicts with the current resource state - e.g.\nduplicate, optimistic-concurrency mismatch, or last-owner\nguard.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or concurrency limit exceeded. `error.code` says which\nceiling, and they need different responses: `rate_limited` is the\nrequest-rate budget (slow down), `concurrency_limit_reached` is a\nworkspace-wide concurrency ceiling (fewer at once, or raise it), and\n`conversation_turn_in_progress` is contention over one named\nconversation (keep one message in flight on it). Every 429 carries\n`Retry-After` and the request-rate budget headers; the active-call cap\nalso carries `RateLimit-Remaining-Calls: 0`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}}}}},"/v1/agents/conversations":{"get":{"operationId":"conversations_list","summary":"List Conversations","description":"List conversations owned by the caller, ordered by most recent.\nCursor-paginated: omit `cursor` to fetch the first page; pass the\nprevious response's `next_cursor` back to fetch the next page.\nWalk pages while `has_more` is true.\n\n`project_id` matches the project the call was DISPATCHED under, which\nis frozen when the conversation starts. Moving an agent to another\nproject therefore leaves its past calls attributed where they ran, the\nsame way per-project usage reports them.","tags":["conversations"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"agent_id","in":"query","description":"Filter to conversations for this agent.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by conversation status.","required":false,"schema":{"$ref":"#/components/schemas/ConversationStatus"}},{"name":"transport","in":"query","description":"Filter by the runtime that carried the conversation. `phone`\nmatches calls in either direction.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationTransport"}},{"name":"channel","in":"query","description":"Filter by the front door the conversation arrived through.\nThis is the axis that separates two conversations sharing one\ntransport: `channel=slack` and `channel=text` both run the\n`text` transport. Combining it with `transport` narrows by\nboth.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationChannel"}},{"name":"live","in":"query","description":"Narrow to (`true`) or away from (`false`) the conversations that\nare a realtime session in progress: non-terminal AND holding a\nroom. A text or Slack thread holds no room, so it is open rather\nthan live however long it stays non-terminal - `status=active`\nalone matches it. This is the filter a live view asks for.\n","required":false,"schema":{"type":"boolean"}},{"name":"caller_identity","in":"query","description":"Filter by caller identity.","required":false,"schema":{"type":"string"}},{"name":"contact_id","in":"query","description":"Narrow to one person's conversations, whichever agent or channel\nreached them. Prefixed `contact_...` id.\n","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Free-text search across conversation content.","required":false,"schema":{"type":"string"}},{"name":"started_after","in":"query","description":"Only conversations started at or after this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_before","in":"query","description":"Only conversations started at or before this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"duration_min_ms","in":"query","description":"Minimum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"duration_max_ms","in":"query","description":"Maximum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A list of conversations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConversationsResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}":{"get":{"operationId":"conversations_get","summary":"Get Conversation","description":"Retrieve a conversation by ID.","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","description":"Conversation id (prefixed external id, `conv_...`).","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The requested conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/recent-callees":{"get":{"operationId":"conversations_recent_callees","summary":"List recent callees","description":"Distinct phone numbers the caller's workspace has dialled on\noutbound calls, ordered by most recent. Feeds the batch-calls\ncomposer's \"Suggested from history\" surface. Cursor-paginated:\nomit `cursor` to fetch the first page. Default page size is 50\nand max is 200. Walk pages while `has_more` is true.\n","tags":["conversations"],"parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Recent callees for the caller's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRecentCalleesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/stats":{"get":{"operationId":"conversations_stats","summary":"Conversation stats","description":"Aggregated counts and averages over the caller's conversations, scoped\nby the same filters as the list endpoint, `project_id` included.","tags":["conversations"],"parameters":[{"name":"agent_id","in":"query","description":"Filter to conversations for this agent.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by conversation status.","required":false,"schema":{"$ref":"#/components/schemas/ConversationStatus"}},{"name":"transport","in":"query","description":"Filter by the runtime that carried the conversation. `phone`\nmatches calls in either direction.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationTransport"}},{"name":"channel","in":"query","description":"Filter by the front door the conversation arrived through.\nThis is the axis that separates two conversations sharing one\ntransport: `channel=slack` and `channel=text` both run the\n`text` transport. Combining it with `transport` narrows by\nboth.\n","required":false,"schema":{"$ref":"#/components/schemas/ConversationChannel"}},{"name":"live","in":"query","description":"Narrow to (`true`) or away from (`false`) the conversations that\nare a realtime session in progress: non-terminal AND holding a\nroom. A text or Slack thread holds no room, so it is open rather\nthan live however long it stays non-terminal - `status=active`\nalone matches it. This is the filter a live view asks for.\n","required":false,"schema":{"type":"boolean"}},{"name":"caller_identity","in":"query","description":"Filter by caller identity.","required":false,"schema":{"type":"string"}},{"name":"contact_id","in":"query","description":"Narrow to one person's conversations, whichever agent or channel\nreached them. Prefixed `contact_...` id.\n","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Free-text search across conversation content.","required":false,"schema":{"type":"string"}},{"name":"started_after","in":"query","description":"Only conversations started at or after this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_before","in":"query","description":"Only conversations started at or before this RFC 3339 timestamp.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"duration_min_ms","in":"query","description":"Minimum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"duration_max_ms","in":"query","description":"Maximum conversation duration in milliseconds.","required":false,"schema":{"type":"integer"}},{"name":"project_id","in":"query","description":"Filter by workspace project: omit for every project you can reach,\npass the literal `default` for resources in the implicit Default\nproject only, or a `proj_...` id for that project's resources.\nReturns 404 project_not_found for a malformed id and for any filter\noutside your reach: a project-pinned API key or service-account key\nreaches only its pinned project, and a member holding project grants\nreaches only the granted projects, so neither can name `default`.\nThat 404 is the same in every case and does not reveal whether such\na project exists - outside your reach a project is answered as\nnonexistent, never as forbidden. Inside it, a well-formed id that\nmatches no project yields an empty page.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stats for the matched conversations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationStats"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}/messages":{"get":{"operationId":"conversations_listMessages","summary":"List Messages","description":"Retrieve the transcript for a conversation in started_at order\n(oldest first). Cursor-paginated: omit `cursor` to fetch the\nfirst page. Default page size is 50 and max is 200. Walk pages\nwhile `has_more` is true.","tags":["conversations"],"parameters":[{"name":"conversation_id","in":"path","description":"Conversation id (prefixed external id, `conv_...`).","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max items per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"Authorization","in":"header","description":"Enter your API key with the `Bearer` prefix, e.g. 'Bearer sk_...'.","required":true,"schema":{"type":"string"}},{"name":"Speechify-Version","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The messages for the conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMessagesResponse"}}}},"400":{"description":"The request was malformed or failed validation. The response\nbody is the standard `Error` envelope; for validation\nfailures `error.fields` enumerates the offending fields as\na `path -> message` map (code = `validation_failed`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication is missing or invalid. The request did not\ncarry a recognised credential (console session token, API key,\nor worker JWT).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The referenced resource does not exist or is not visible to\nthe caller's workspace.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/conversations/{conversation_id}/recording":{"get":{"operationId":"conversations_streamRecording","summary":"Stream Recording","description":"Proxy the GCS-stored audio recording for a conversation through\nthe Cloud Run service identity. Returns OGG/Opus bytes (LiveKit\nroom-composite egress default). The response is streamed so a\nlong recording does not buffer in memory; `