diff --git a/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs b/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs index 461cdf7..9e871c0 100644 --- a/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs +++ b/src/libs/AI21/Generated/AI21..JsonSerializerContext.g.cs @@ -13,12 +13,38 @@ namespace AI21 DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::AI21.JsonConverters.AssistantTool2JsonConverter), - typeof(global::AI21.JsonConverters.AssistantTool2NullableJsonConverter), + typeof(global::AI21.JsonConverters.HTTPToolResourceTypeJsonConverter), + typeof(global::AI21.JsonConverters.HTTPToolResourceTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.HTTPToolFunctionParametersTypeJsonConverter), + typeof(global::AI21.JsonConverters.HTTPToolFunctionParametersTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.MCPToolResourceTypeJsonConverter), + typeof(global::AI21.JsonConverters.MCPToolResourceTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceTypeJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeNullableJsonConverter), + typeof(global::AI21.JsonConverters.RetrievalStrategyJsonConverter), + typeof(global::AI21.JsonConverters.RetrievalStrategyNullableJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceResponseLanguageJsonConverter), + typeof(global::AI21.JsonConverters.FileSearchToolResourceResponseLanguageNullableJsonConverter), + typeof(global::AI21.JsonConverters.WebSearchToolResourceTypeJsonConverter), + typeof(global::AI21.JsonConverters.WebSearchToolResourceTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeJsonConverter), + typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.BudgetLevelJsonConverter), + typeof(global::AI21.JsonConverters.BudgetLevelNullableJsonConverter), + typeof(global::AI21.JsonConverters.VisibilityJsonConverter), + typeof(global::AI21.JsonConverters.VisibilityNullableJsonConverter), + typeof(global::AI21.JsonConverters.AssistantTypeJsonConverter), + typeof(global::AI21.JsonConverters.AssistantTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.AssistantResponseLanguageJsonConverter), + typeof(global::AI21.JsonConverters.AssistantResponseLanguageNullableJsonConverter), typeof(global::AI21.JsonConverters.AssistantMessageRoleJsonConverter), typeof(global::AI21.JsonConverters.AssistantMessageRoleNullableJsonConverter), typeof(global::AI21.JsonConverters.ToolCallTypeJsonConverter), typeof(global::AI21.JsonConverters.ToolCallTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.AuthenticationTypeJsonConverter), + typeof(global::AI21.JsonConverters.AuthenticationTypeNullableJsonConverter), typeof(global::AI21.JsonConverters.UploadModeJsonConverter), typeof(global::AI21.JsonConverters.UploadModeNullableJsonConverter), typeof(global::AI21.JsonConverters.ChatStreamingFirstDeltaRoleJsonConverter), @@ -35,8 +61,8 @@ namespace AI21 typeof(global::AI21.JsonConverters.SystemMessageRoleNullableJsonConverter), typeof(global::AI21.JsonConverters.ChatRequestMessageDiscriminatorRoleJsonConverter), typeof(global::AI21.JsonConverters.ChatRequestMessageDiscriminatorRoleNullableJsonConverter), - typeof(global::AI21.JsonConverters.ToolDefinitionTypeJsonConverter), - typeof(global::AI21.JsonConverters.ToolDefinitionTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeJsonConverter), + typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeNullableJsonConverter), typeof(global::AI21.JsonConverters.ToolParametersTypeJsonConverter), typeof(global::AI21.JsonConverters.ToolParametersTypeNullableJsonConverter), typeof(global::AI21.JsonConverters.ResponseFormatTypeJsonConverter), @@ -47,16 +73,10 @@ namespace AI21 typeof(global::AI21.JsonConverters.ConnectorsWorkflowStatusNullableJsonConverter), typeof(global::AI21.JsonConverters.MessageRoleJsonConverter), typeof(global::AI21.JsonConverters.MessageRoleNullableJsonConverter), - typeof(global::AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyJsonConverter), - typeof(global::AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyNullableJsonConverter), - typeof(global::AI21.JsonConverters.ConversationalRagConfigResponseLanguageJsonConverter), - typeof(global::AI21.JsonConverters.ConversationalRagConfigResponseLanguageNullableJsonConverter), - typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadTool2JsonConverter), - typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadTool2NullableJsonConverter), typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadBudgetJsonConverter), typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadBudgetNullableJsonConverter), - typeof(global::AI21.JsonConverters.MaestroPayloadTypeJsonConverter), - typeof(global::AI21.JsonConverters.MaestroPayloadTypeNullableJsonConverter), + typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadVariantJsonConverter), + typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadVariantNullableJsonConverter), typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadResponseLanguageJsonConverter), typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadResponseLanguageNullableJsonConverter), typeof(global::AI21.JsonConverters.DemoVisibilityJsonConverter), @@ -65,22 +85,30 @@ namespace AI21 typeof(global::AI21.JsonConverters.DemoStatusNullableJsonConverter), typeof(global::AI21.JsonConverters.FileStatusJsonConverter), typeof(global::AI21.JsonConverters.FileStatusNullableJsonConverter), + typeof(global::AI21.JsonConverters.GenerateAssistantResponseResponseLanguageJsonConverter), + typeof(global::AI21.JsonConverters.GenerateAssistantResponseResponseLanguageNullableJsonConverter), typeof(global::AI21.JsonConverters.LibrarySearchRequestLabelsFilterModeJsonConverter), typeof(global::AI21.JsonConverters.LibrarySearchRequestLabelsFilterModeNullableJsonConverter), - typeof(global::AI21.JsonConverters.RetrievalStrategyJsonConverter), - typeof(global::AI21.JsonConverters.RetrievalStrategyNullableJsonConverter), typeof(global::AI21.JsonConverters.MaestroRunResultStatusJsonConverter), typeof(global::AI21.JsonConverters.MaestroRunResultStatusNullableJsonConverter), typeof(global::AI21.JsonConverters.ModelQuantizationJsonConverter), typeof(global::AI21.JsonConverters.ModelQuantizationNullableJsonConverter), + typeof(global::AI21.JsonConverters.RunOptimizationJsonConverter), + typeof(global::AI21.JsonConverters.RunOptimizationNullableJsonConverter), + typeof(global::AI21.JsonConverters.ModifyAssistantRequestResponseLanguageJsonConverter), + typeof(global::AI21.JsonConverters.ModifyAssistantRequestResponseLanguageNullableJsonConverter), + typeof(global::AI21.JsonConverters.RunAssistantRequestResponseLanguageJsonConverter), + typeof(global::AI21.JsonConverters.RunAssistantRequestResponseLanguageNullableJsonConverter), typeof(global::AI21.JsonConverters.WebsiteConnectorPayloadTypeJsonConverter), typeof(global::AI21.JsonConverters.WebsiteConnectorPayloadTypeNullableJsonConverter), - typeof(global::AI21.JsonConverters.MessagesItemJsonConverter), + typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionJsonConverter), typeof(global::AI21.JsonConverters.QueryFilterJsonConverter), + typeof(global::AI21.JsonConverters.MessagesItemJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter, string>), + typeof(global::AI21.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter), typeof(global::AI21.JsonConverters.AnyOfJsonConverter>), typeof(global::AI21.JsonConverters.AnyOfJsonConverter>), diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.CanIframeStudioV1DemosScraperCanIframeGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.CanIframeStudioV1DemosScraperCanIframeGet.g.cs index 0626804..05c234a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.CanIframeStudioV1DemosScraperCanIframeGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.CanIframeStudioV1DemosScraperCanIframeGet.g.cs @@ -40,7 +40,7 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/demos/scraper/can-iframe", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("url", url) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs index 70fb632..e2ac8cf 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs @@ -29,6 +29,7 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CompareTextStudioV1DemosDocumentModifierCompareTextPostAsync( + global::AI21.CompareTextRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs index 9a10f61..d1b2ef5 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs @@ -28,6 +28,7 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ConvertDocumentFileStudioV1ChatFilesConvertPostAsync( + global::AI21.BodyConvertDocumentFileStudioV1ChatFilesConvertPost request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -69,7 +70,7 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Files, x => x))}]"), - name: "files"); + name: "\"files\""); __httpRequest.Content = __httpRequestContent; PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.CreateDemoStudioV1DemosPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.CreateDemoStudioV1DemosPost.g.cs index dd6bf1e..ef2b960 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.CreateDemoStudioV1DemosPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.CreateDemoStudioV1DemosPost.g.cs @@ -29,6 +29,7 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateDemoStudioV1DemosPostAsync( + global::AI21.DemoCreate request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs new file mode 100644 index 0000000..ce81d27 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs @@ -0,0 +1,246 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareCreateMcpStorageStudioV1McpStoragePostArguments( + global::System.Net.Http.HttpClient httpClient, + global::AI21.CreateMCPStorageRequest request); + partial void PrepareCreateMcpStorageStudioV1McpStoragePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::AI21.CreateMCPStorageRequest request); + partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateMcpStorageStudioV1McpStoragePostAsync( + + global::AI21.CreateMCPStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateMcpStorageStudioV1McpStoragePostArguments( + httpClient: HttpClient, + request: request); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/studio/v1/mcp/storage", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateMcpStorageStudioV1McpStoragePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateMcpStorageStudioV1McpStoragePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.MCPStorageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.MCPStorageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + + /// + /// Create Mcp Storage + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateMcpStorageStudioV1McpStoragePostAsync( + string serverUrl, + string serverLabel, + global::System.Guid? workspaceId = default, + global::AI21.AuthenticationType? authenticationType = default, + string? authHeaderName = default, + string? authValue = default, + global::System.Collections.Generic.IList? allowedTools = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::AI21.CreateMCPStorageRequest + { + ServerUrl = serverUrl, + ServerLabel = serverLabel, + WorkspaceId = workspaceId, + AuthenticationType = authenticationType, + AuthHeaderName = authHeaderName, + AuthValue = authValue, + AllowedTools = allowedTools, + }; + + return await CreateMcpStorageStudioV1McpStoragePostAsync( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs index 3c65f6b..12fdb51 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs @@ -32,6 +32,7 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr /// public async global::System.Threading.Tasks.Task CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPostAsync( string organizationId, + global::AI21.CreateOrganizationSchemaRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs new file mode 100644 index 0000000..c2f217a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs @@ -0,0 +1,197 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareDeleteMcpStorageStudioV1McpStorageMcpIdDeleteArguments( + global::System.Net.Http.HttpClient httpClient, + ref string mcpId); + partial void PrepareDeleteMcpStorageStudioV1McpStorageMcpIdDeleteRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string mcpId); + partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteMcpStorageStudioV1McpStorageMcpIdDeleteAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteMcpStorageStudioV1McpStorageMcpIdDeleteArguments( + httpClient: HttpClient, + mcpId: ref mcpId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/mcp/storage/{mcpId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteMcpStorageStudioV1McpStorageMcpIdDeleteRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + mcpId: mcpId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.DeleteMCPStorageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.DeleteMCPStorageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs index a38eb41..3548b14 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs @@ -32,6 +32,7 @@ partial void ProcessDetectSchemaStudioV1StructuredRagOrganizationsOrganizationId /// public async global::System.Threading.Tasks.Task DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPostAsync( string organizationId, + global::AI21.DetectSchemaRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs index 323e785..be2b666 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs @@ -29,6 +29,7 @@ partial void ProcessDownloadModifiedDocumentStudioV1DemosDocumentModifierDownloa /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPostAsync( + global::AI21.DownloadModifiedDocumentRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs new file mode 100644 index 0000000..e7b0f06 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Aftersales Batch Predict Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fd_aftersales/parts-classification/batch", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs new file mode 100644 index 0000000..5299a57 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Aftersales Batch Predict + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fd_aftersales/parts-classification/batch", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs new file mode 100644 index 0000000..459797a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Aftersales Batch Predict Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions-preview/fd_aftersales/parts-classification/batch/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs new file mode 100644 index 0000000..f280a4d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Aftersales Batch Predict Status + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions/fd_aftersales/parts-classification/batch/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs new file mode 100644 index 0000000..dedfba2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fd/batches/v1/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..9d0d9d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications Results Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions-preview/fd/batches/v1/classifications/{batchId}/results", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..ab8e177 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications Results + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions/fd/batches/v1/classifications/{batchId}/results", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs new file mode 100644 index 0000000..0cbe0dd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fd/batches/v1/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..6bff2e7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions-preview/fd/batches/v1/classifications/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..9c6f93c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Classifications Status + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions/fd/batches/v1/classifications/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs new file mode 100644 index 0000000..2b75dde --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fd/batches/v1/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..ea5765b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions Results Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions-preview/fd/batches/v1/descriptions/{batchId}/results", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..0c703ff --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions Results + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions/fd/batches/v1/descriptions/{batchId}/results", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs new file mode 100644 index 0000000..0daf9ca --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fd/batches/v1/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..32833c6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions-preview/fd/batches/v1/descriptions/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..b8b951c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string batchId); + partial void PrepareFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string batchId); + partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac Batch Descriptions Status + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostArguments( + httpClient: HttpClient, + batchId: ref batchId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/solutions/fd/batches/v1/descriptions/{batchId}/status", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + batchId: batchId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs new file mode 100644 index 0000000..a55619f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fnac/v1/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs new file mode 100644 index 0000000..84de15a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1ClassificationsSolutionsFnacV1ClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1ClassificationsSolutionsFnacV1ClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Classifications + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1ClassificationsSolutionsFnacV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1ClassificationsSolutionsFnacV1ClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fnac/v1/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1ClassificationsSolutionsFnacV1ClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs new file mode 100644 index 0000000..1fbe4d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Deprecated Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fnac/v1-deprecated/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs new file mode 100644 index 0000000..ec3c0ea --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Deprecated Classifications + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fnac/v1-deprecated/classifications", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs new file mode 100644 index 0000000..655a086 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Deprecated Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fnac/v1-deprecated/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs new file mode 100644 index 0000000..0527d80 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Deprecated Descriptions + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fnac/v1-deprecated/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs new file mode 100644 index 0000000..d3d2c0c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/fnac/v1/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs new file mode 100644 index 0000000..adb2a8f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareFnacV1DescriptionsSolutionsFnacV1DescriptionsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareFnacV1DescriptionsSolutionsFnacV1DescriptionsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Fnac V1 Descriptions + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task FnacV1DescriptionsSolutionsFnacV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareFnacV1DescriptionsSolutionsFnacV1DescriptionsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/fnac/v1/descriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareFnacV1DescriptionsSolutionsFnacV1DescriptionsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs index d362869..0aee001 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs @@ -28,6 +28,7 @@ partial void ProcessGenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostRe /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostAsync( + global::AI21.MarkdownRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs new file mode 100644 index 0000000..7071bf2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs @@ -0,0 +1,197 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string mcpId); + partial void PrepareGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string mcpId); + partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Assistants By Mcp + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetArguments( + httpClient: HttpClient, + mcpId: ref mcpId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/mcp/storage/{mcpId}/assistants", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + mcpId: mcpId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.AssistantsByMcpResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.AssistantsByMcpResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs index 714aaa6..282139d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs @@ -50,7 +50,7 @@ partial void ProcessGetConnectorConnectionStatusStudioV1ConnectorsConnectedUsers var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/connectors/connected-users/{entityId}/data-sources/{dataSource}/connection-status", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("paragon_token", paragonToken) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs index 727fe97..f7b03db 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs @@ -50,7 +50,7 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdD var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/connectors/connected-users/{entityId}/data-sources/{dataSource}/status", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("paragon_token", paragonToken) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs index 924cb00..d33495a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs @@ -45,7 +45,7 @@ partial void ProcessGetFileUrlStudioV1DemosScraperFileUrlFileIdGetResponseConten var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/demos/scraper/file-url/{fileId}", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddOptionalParameter("api_key", apiKey) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs new file mode 100644 index 0000000..8bccad5 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs @@ -0,0 +1,197 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareGetMcpStorageStudioV1McpStorageMcpIdGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string mcpId); + partial void PrepareGetMcpStorageStudioV1McpStorageMcpIdGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string mcpId); + partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetMcpStorageStudioV1McpStorageMcpIdGetAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetMcpStorageStudioV1McpStorageMcpIdGetArguments( + httpClient: HttpClient, + mcpId: ref mcpId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/mcp/storage/{mcpId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetMcpStorageStudioV1McpStorageMcpIdGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + mcpId: mcpId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.MCPStorageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.MCPStorageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs new file mode 100644 index 0000000..1305fbf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs @@ -0,0 +1,206 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string executionId, + ref bool? forceRegenerate); + partial void PrepareGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string executionId, + bool? forceRegenerate); + partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Output Explanation
+ /// Get output explanation for an execution (cached or generated).
+ /// Set force_regenerate=True to regenerate even if cached. + ///
+ /// + /// + /// Default Value: false + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetAsync( + string executionId, + bool? forceRegenerate = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetArguments( + httpClient: HttpClient, + executionId: ref executionId, + forceRegenerate: ref forceRegenerate); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/executions/{executionId}/explanations/output", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("force_regenerate", forceRegenerate?.ToString()) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + executionId: executionId, + forceRegenerate: forceRegenerate); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs index 3e653a4..12d4f20 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs @@ -41,7 +41,7 @@ partial void ProcessGetParsedFileStudioV1DemosDocumentModifierGetParsedFileGetRe var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/demos/document-modifier/get-parsed-file", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("file_name", fileName) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs new file mode 100644 index 0000000..5e36505 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs @@ -0,0 +1,206 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string executionId, + ref bool? forceRegenerate); + partial void PrepareGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string executionId, + bool? forceRegenerate); + partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Step Explanations
+ /// Get step explanations for an execution (cached or generated).
+ /// Set force_regenerate=True to regenerate even if cached. + ///
+ /// + /// + /// Default Value: false + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetAsync( + string executionId, + bool? forceRegenerate = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetArguments( + httpClient: HttpClient, + executionId: ref executionId, + forceRegenerate: ref forceRegenerate); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/executions/{executionId}/explanations/steps", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("force_regenerate", forceRegenerate?.ToString()) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + executionId: executionId, + forceRegenerate: forceRegenerate); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs new file mode 100644 index 0000000..6e32933 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs @@ -0,0 +1,194 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string vectorStoreId); + partial void PrepareGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string vectorStoreId); + partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Vector Store
+ /// Get a vector store by ID. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetAsync( + string vectorStoreId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetArguments( + httpClient: HttpClient, + vectorStoreId: ref vectorStoreId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/demos/regulations/vector-store/{vectorStoreId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + vectorStoreId: vectorStoreId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs index 6853ac8..4dd0081 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs @@ -29,6 +29,7 @@ partial void ProcessJambaExecuteStudioV1DemosDocumentModifierJambaExecutePostRes /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task JambaExecuteStudioV1DemosDocumentModifierJambaExecutePostAsync( + global::AI21.JambaExecuteRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs new file mode 100644 index 0000000..8c1d6bc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Document Upload Process Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/kirsh-document-upload/process", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs new file mode 100644 index 0000000..125d40a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Document Upload Process + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/kirsh-document-upload/process", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs new file mode 100644 index 0000000..b210d0e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Email Assistant Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/kirsh/email-assistant", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs new file mode 100644 index 0000000..a858e80 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshEmailAssistantSolutionsKirshEmailAssistantPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshEmailAssistantSolutionsKirshEmailAssistantPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Email Assistant + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshEmailAssistantSolutionsKirshEmailAssistantPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshEmailAssistantSolutionsKirshEmailAssistantPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/kirsh/email-assistant", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshEmailAssistantSolutionsKirshEmailAssistantPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs new file mode 100644 index 0000000..2217a85 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Grant Compliance Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/kirsh/grant-compliance", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs new file mode 100644 index 0000000..246536b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshGrantComplianceSolutionsKirshGrantCompliancePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshGrantComplianceSolutionsKirshGrantCompliancePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Grant Compliance + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshGrantComplianceSolutionsKirshGrantCompliancePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshGrantComplianceSolutionsKirshGrantCompliancePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/kirsh/grant-compliance", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshGrantComplianceSolutionsKirshGrantCompliancePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs new file mode 100644 index 0000000..c7a173c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Grant Metadata Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/kirsh/grant-metadata", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs new file mode 100644 index 0000000..0f89c07 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareKirshGrantMetadataSolutionsKirshGrantMetadataPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareKirshGrantMetadataSolutionsKirshGrantMetadataPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Kirsh Grant Metadata + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task KirshGrantMetadataSolutionsKirshGrantMetadataPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareKirshGrantMetadataSolutionsKirshGrantMetadataPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/kirsh/grant-metadata", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareKirshGrantMetadataSolutionsKirshGrantMetadataPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.ListMcpStorageStudioV1McpStorageGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.ListMcpStorageStudioV1McpStorageGet.g.cs new file mode 100644 index 0000000..1c9692c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.ListMcpStorageStudioV1McpStorageGet.g.cs @@ -0,0 +1,200 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareListMcpStorageStudioV1McpStorageGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid? workspaceId); + partial void PrepareListMcpStorageStudioV1McpStorageGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid? workspaceId); + partial void ProcessListMcpStorageStudioV1McpStorageGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListMcpStorageStudioV1McpStorageGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListMcpStorageStudioV1McpStorageGetAsync( + global::System.Guid? workspaceId = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListMcpStorageStudioV1McpStorageGetArguments( + httpClient: HttpClient, + workspaceId: ref workspaceId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/studio/v1/mcp/storage", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("workspace_id", workspaceId?.ToString()) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListMcpStorageStudioV1McpStorageGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + workspaceId: workspaceId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListMcpStorageStudioV1McpStorageGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListMcpStorageStudioV1McpStorageGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.ListMCPsStorageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.ListMCPsStorageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs new file mode 100644 index 0000000..fc4f1ca --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs @@ -0,0 +1,232 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareMcpToolDiscoveryStudioV1McpDiscoverPostArguments( + global::System.Net.Http.HttpClient httpClient, + global::AI21.MCPDefinition request); + partial void PrepareMcpToolDiscoveryStudioV1McpDiscoverPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::AI21.MCPDefinition request); + partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Mcp Tool Discovery + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task McpToolDiscoveryStudioV1McpDiscoverPostAsync( + + global::AI21.MCPDefinition request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareMcpToolDiscoveryStudioV1McpDiscoverPostArguments( + httpClient: HttpClient, + request: request); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/studio/v1/mcp/discover", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareMcpToolDiscoveryStudioV1McpDiscoverPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.MCPDiscoveryResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.MCPDiscoveryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + + /// + /// Mcp Tool Discovery + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task McpToolDiscoveryStudioV1McpDiscoverPostAsync( + string serverUrl, + string? serverLabel = default, + object? headers = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::AI21.MCPDefinition + { + ServerUrl = serverUrl, + ServerLabel = serverLabel, + Headers = headers, + }; + + return await McpToolDiscoveryStudioV1McpDiscoverPostAsync( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs index ca01e29..abe2dcf 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs @@ -29,6 +29,7 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ParsePdfStudioV1DemosDocumentModifierParsePdfPostAsync( + global::AI21.BodyParsePdfStudioV1DemosDocumentModifierParsePdfPost request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,10 +69,15 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon } } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), - name: "file", - fileName: request.Filename ?? string.Empty); + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } __httpRequest.Content = __httpRequestContent; PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs index 59bbe37..0dadafa 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs @@ -28,6 +28,7 @@ partial void ProcessPostWebsiteConnectorStudioV1ConnectorsWebsitePostResponseCon /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task PostWebsiteConnectorStudioV1ConnectorsWebsitePostAsync( + global::AI21.WebsiteConnectorPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs index c2873c0..cfcd0ff 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs @@ -28,6 +28,7 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ProcessRfiDocumentStudioV1DemosRfiProcessRfiPostAsync( + global::AI21.BodyProcessRfiDocumentStudioV1DemosRfiProcessRfiPost request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -67,21 +68,28 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont } } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), - name: "file", - fileName: request.Filename ?? string.Empty); + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } if (request.Budget != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.Budget}"), - name: "budget"); + name: "\"budget\""); } if (request.VectorStoreId != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.VectorStoreId}"), - name: "vector_store_id"); + name: "\"vector_store_id\""); } __httpRequest.Content = __httpRequestContent; diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs index 4108aed..1edc50c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs @@ -28,6 +28,7 @@ partial void ProcessRunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostR /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostAsync( + global::AI21.ConnectorsSyncParams request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs new file mode 100644 index 0000000..0228f09 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Tlv Convrag Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/tlv_municipality/convrag", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs new file mode 100644 index 0000000..6512334 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareTlvConvragSolutionsTlvMunicipalityConvragPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareTlvConvragSolutionsTlvMunicipalityConvragPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Tlv Convrag + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task TlvConvragSolutionsTlvMunicipalityConvragPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareTlvConvragSolutionsTlvMunicipalityConvragPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/tlv_municipality/convrag", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareTlvConvragSolutionsTlvMunicipalityConvragPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs index f6e6ade..cbf8615 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs @@ -33,6 +33,7 @@ partial void ProcessUpdateDemoStudioV1DemosDemoIdPutResponseContent( /// public async global::System.Threading.Tasks.Task UpdateDemoStudioV1DemosDemoIdPutAsync( string demoId, + global::AI21.DemoUpdate request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs new file mode 100644 index 0000000..b59d05c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs @@ -0,0 +1,235 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareUpdateMcpStorageStudioV1McpStorageMcpIdPatchArguments( + global::System.Net.Http.HttpClient httpClient, + ref string mcpId, + global::AI21.UpdateMCPStorageRequest request); + partial void PrepareUpdateMcpStorageStudioV1McpStorageMcpIdPatchRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string mcpId, + global::AI21.UpdateMCPStorageRequest request); + partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Mcp Storage + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateMcpStorageStudioV1McpStorageMcpIdPatchAsync( + string mcpId, + + global::AI21.UpdateMCPStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateMcpStorageStudioV1McpStorageMcpIdPatchArguments( + httpClient: HttpClient, + mcpId: ref mcpId, + request: request); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/mcp/storage/{mcpId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + 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") + { + __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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateMcpStorageStudioV1McpStorageMcpIdPatchRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + mcpId: mcpId, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.MCPStorageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.MCPStorageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + + /// + /// Update Mcp Storage + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateMcpStorageStudioV1McpStorageMcpIdPatchAsync( + string mcpId, + string serverLabel, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::AI21.UpdateMCPStorageRequest + { + ServerLabel = serverLabel, + }; + + return await UpdateMcpStorageStudioV1McpStorageMcpIdPatchAsync( + mcpId: mcpId, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs index 069c058..d38e86c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs @@ -32,6 +32,7 @@ partial void ProcessUpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchR /// public async global::System.Threading.Tasks.Task UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchAsync( string name, + global::AI21.WorkspaceModelUpdate request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs index 4c5d35b..f739ebc 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs @@ -29,6 +29,7 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePostAsync( + global::AI21.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -68,15 +69,28 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp } } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), - name: "file", - fileName: request.Filename ?? string.Empty); + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } if (request.Budget != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.Budget}"), - name: "budget"); + name: "\"budget\""); + } + if (request.VectorStoreId != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{request.VectorStoreId}"), + name: "\"vector_store_id\""); } __httpRequest.Content = __httpRequestContent; @@ -214,12 +228,16 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp /// /// Default Value: MEDIUM /// + /// + /// Vector store ID to use for RFI processing + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePostAsync( byte[] file, string filename, string? budget = default, + string? vectorStoreId = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::AI21.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost @@ -227,6 +245,7 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp File = file, Filename = filename, Budget = budget, + VectorStoreId = vectorStoreId, }; return await UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePostAsync( diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateAssistant.g.cs new file mode 100644 index 0000000..f162106 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateAssistant.g.cs @@ -0,0 +1,266 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareV1CreateAssistantArguments( + global::System.Net.Http.HttpClient httpClient, + global::AI21.CreateAssistantRequest request); + partial void PrepareV1CreateAssistantRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::AI21.CreateAssistantRequest request); + partial void ProcessV1CreateAssistantResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessV1CreateAssistantResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Assistant + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task V1CreateAssistantAsync( + + global::AI21.CreateAssistantRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareV1CreateAssistantArguments( + httpClient: HttpClient, + request: request); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/studio/v1/assistants", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareV1CreateAssistantRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessV1CreateAssistantResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessV1CreateAssistantResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.Assistant.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.Assistant.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + + /// + /// Create Assistant + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: medium + /// + /// + /// Default Value: default + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task V1CreateAssistantAsync( + string name, + string? description = default, + string? optimization = default, + string? avatar = default, + global::System.Collections.Generic.IList? models = default, + global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? requirements = default, + global::AI21.BudgetLevel? budget = default, + global::AI21.AssistantType? assistantType = default, + global::System.Collections.Generic.IList? starterQuestions = default, + string? systemPrompt = default, + global::AI21.WorkflowConfig? workflowConfig = default, + object? configOverrides = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::AI21.CreateAssistantRequest + { + Name = name, + Description = description, + Optimization = optimization, + Avatar = avatar, + Models = models, + Tools = tools, + Requirements = requirements, + Budget = budget, + AssistantType = assistantType, + StarterQuestions = starterQuestions, + SystemPrompt = systemPrompt, + WorkflowConfig = workflowConfig, + ConfigOverrides = configOverrides, + }; + + return await V1CreateAssistantAsync( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1CreatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreatePlan.g.cs index fb02f53..6b46c3b 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1CreatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreatePlan.g.cs @@ -32,6 +32,7 @@ partial void ProcessV1CreatePlanResponseContent( /// public async global::System.Threading.Tasks.Task V1CreatePlanAsync( string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateRoute.g.cs index a7add4a..78ed681 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1CreateRoute.g.cs @@ -32,6 +32,7 @@ partial void ProcessV1CreateRouteResponseContent( /// public async global::System.Threading.Tasks.Task V1CreateRouteAsync( string assistantId, + global::AI21.CreateRoutePayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1DeleteRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1DeleteRoute.g.cs index 21a2110..5118a1d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1DeleteRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1DeleteRoute.g.cs @@ -7,13 +7,13 @@ public partial class Ai21Api { partial void PrepareV1DeleteRouteArguments( global::System.Net.Http.HttpClient httpClient, - ref string assistantId, - ref string routeId); + ref string routeId, + ref string assistantId); partial void PrepareV1DeleteRouteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string assistantId, - string routeId); + string routeId, + string assistantId); partial void ProcessV1DeleteRouteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -26,21 +26,21 @@ partial void ProcessV1DeleteRouteResponseContent( /// /// Delete Route /// - /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1DeleteRouteAsync( - string assistantId, string routeId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareV1DeleteRouteArguments( httpClient: HttpClient, - assistantId: ref assistantId, - routeId: ref routeId); + routeId: ref routeId, + assistantId: ref assistantId); var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/assistants/{assistantId}/routes/{routeId}", @@ -76,8 +76,8 @@ partial void ProcessV1DeleteRouteResponseContent( PrepareV1DeleteRouteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - assistantId: assistantId, - routeId: routeId); + routeId: routeId, + assistantId: assistantId); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1GenerateAssistant.g.cs similarity index 80% rename from src/libs/AI21/Generated/AI21.Ai21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs rename to src/libs/AI21/Generated/AI21.Ai21Api.V1GenerateAssistant.g.cs index ee4f6a3..88741a8 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1GenerateAssistant.g.cs @@ -5,42 +5,43 @@ namespace AI21 { public partial class Ai21Api { - partial void PrepareExecuteConvRagStudioV1DemosScraperConversationalRagPostArguments( + partial void PrepareV1GenerateAssistantArguments( global::System.Net.Http.HttpClient httpClient, - global::AI21.ConvRagExecuteRequest request); - partial void PrepareExecuteConvRagStudioV1DemosScraperConversationalRagPostRequest( + global::AI21.GenerateAssistantRequest request); + partial void PrepareV1GenerateAssistantRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::AI21.ConvRagExecuteRequest request); - partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse( + global::AI21.GenerateAssistantRequest request); + partial void ProcessV1GenerateAssistantResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostResponseContent( + partial void ProcessV1GenerateAssistantResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Execute Conv Rag + /// Generate Assistant /// /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExecuteConvRagStudioV1DemosScraperConversationalRagPostAsync( - global::AI21.ConvRagExecuteRequest request, + public async global::System.Threading.Tasks.Task V1GenerateAssistantAsync( + + global::AI21.GenerateAssistantRequest request, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); PrepareArguments( client: HttpClient); - PrepareExecuteConvRagStudioV1DemosScraperConversationalRagPostArguments( + PrepareV1GenerateAssistantArguments( httpClient: HttpClient, request: request); var __pathBuilder = new global::AI21.PathBuilder( - path: "/studio/v1/demos/scraper/conversational-rag", + path: "/studio/v1/assistants/generate", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -76,7 +77,7 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareExecuteConvRagStudioV1DemosScraperConversationalRagPostRequest( + PrepareV1GenerateAssistantRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -89,7 +90,7 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo ProcessResponse( client: HttpClient, response: __response); - ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse( + ProcessV1GenerateAssistantResponse( httpClient: HttpClient, httpResponseMessage: __response); // Validation Error @@ -142,7 +143,7 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo client: HttpClient, response: __response, content: ref __content); - ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostResponseContent( + ProcessV1GenerateAssistantResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -151,7 +152,9 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo { __response.EnsureSuccessStatusCode(); - return __content; + return + global::AI21.GenerateAssistantResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) { @@ -174,13 +177,15 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( + using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER cancellationToken #endif ).ConfigureAwait(false); - return __content; + return + await global::AI21.GenerateAssistantResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) { @@ -199,27 +204,24 @@ partial void ProcessExecuteConvRagStudioV1DemosScraperConversationalRagPostRespo } /// - /// Execute Conv Rag + /// Generate Assistant /// - /// - /// - /// + /// + /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExecuteConvRagStudioV1DemosScraperConversationalRagPostAsync( - string message, - string? label = default, - string? apiKey = default, + public async global::System.Threading.Tasks.Task V1GenerateAssistantAsync( + string prompt, + string? avatar = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::AI21.ConvRagExecuteRequest + var __request = new global::AI21.GenerateAssistantRequest { - Message = message, - Label = label, - ApiKey = apiKey, + Prompt = prompt, + Avatar = avatar, }; - return await ExecuteConvRagStudioV1DemosScraperConversationalRagPostAsync( + return await V1GenerateAssistantAsync( request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1GetPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1GetPlan.g.cs index 14677ff..a0b7fbf 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1GetPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1GetPlan.g.cs @@ -7,13 +7,13 @@ public partial class Ai21Api { partial void PrepareV1GetPlanArguments( global::System.Net.Http.HttpClient httpClient, - ref string assistantId, - ref string planId); + ref string planId, + ref string assistantId); partial void PrepareV1GetPlanRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string assistantId, - string planId); + string planId, + string assistantId); partial void ProcessV1GetPlanResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -26,21 +26,21 @@ partial void ProcessV1GetPlanResponseContent( /// /// Get Plan /// - /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1GetPlanAsync( - string assistantId, string planId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareV1GetPlanArguments( httpClient: HttpClient, - assistantId: ref assistantId, - planId: ref planId); + planId: ref planId, + assistantId: ref assistantId); var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/assistants/{assistantId}/plans/{planId}", @@ -76,8 +76,8 @@ partial void ProcessV1GetPlanResponseContent( PrepareV1GetPlanRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - assistantId: assistantId, - planId: planId); + planId: planId, + assistantId: assistantId); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1GetRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1GetRoute.g.cs index 75b4488..451b4e4 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1GetRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1GetRoute.g.cs @@ -7,13 +7,13 @@ public partial class Ai21Api { partial void PrepareV1GetRouteArguments( global::System.Net.Http.HttpClient httpClient, - ref string assistantId, - ref string routeId); + ref string routeId, + ref string assistantId); partial void PrepareV1GetRouteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string assistantId, - string routeId); + string routeId, + string assistantId); partial void ProcessV1GetRouteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -26,21 +26,21 @@ partial void ProcessV1GetRouteResponseContent( /// /// Get Route /// - /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1GetRouteAsync( - string assistantId, string routeId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareV1GetRouteArguments( httpClient: HttpClient, - assistantId: ref assistantId, - routeId: ref routeId); + routeId: ref routeId, + assistantId: ref assistantId); var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/assistants/{assistantId}/routes/{routeId}", @@ -76,8 +76,8 @@ partial void ProcessV1GetRouteResponseContent( PrepareV1GetRouteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - assistantId: assistantId, - routeId: routeId); + routeId: routeId, + assistantId: assistantId); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ListAssistants.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ListAssistants.g.cs index bc48753..f5e0b77 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ListAssistants.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ListAssistants.g.cs @@ -6,10 +6,12 @@ namespace AI21 public partial class Ai21Api { partial void PrepareV1ListAssistantsArguments( - global::System.Net.Http.HttpClient httpClient); + global::System.Net.Http.HttpClient httpClient, + global::System.Collections.Generic.IList? workspaceIds); partial void PrepareV1ListAssistantsRequest( global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Collections.Generic.IList? workspaceIds); partial void ProcessV1ListAssistantsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -22,19 +24,25 @@ partial void ProcessV1ListAssistantsResponseContent( /// /// Get Assistants /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1ListAssistantsAsync( + global::System.Collections.Generic.IList? workspaceIds = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareV1ListAssistantsArguments( - httpClient: HttpClient); + httpClient: HttpClient, + workspaceIds: workspaceIds); var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/assistants", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("workspace_ids", workspaceIds, delimiter: ",", explode: true) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +73,8 @@ partial void ProcessV1ListAssistantsResponseContent( request: __httpRequest); PrepareV1ListAssistantsRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest); + httpRequestMessage: __httpRequest, + workspaceIds: workspaceIds); using var __response = await HttpClient.SendAsync( request: __httpRequest, @@ -78,6 +87,43 @@ partial void ProcessV1ListAssistantsResponseContent( ProcessV1ListAssistantsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } if (ReadResponseAsString) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ListRoutes.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ListRoutes.g.cs index e6fafdd..80769fe 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ListRoutes.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ListRoutes.g.cs @@ -45,7 +45,7 @@ partial void ProcessV1ListRoutesResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: $"/studio/v1/assistants/{assistantId}/routes", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddOptionalParameter("name", name) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1MaestroRun.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1MaestroRun.g.cs index 0870b7c..531de43 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1MaestroRun.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1MaestroRun.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1MaestroRunResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1MaestroRunAsync( + global::AI21.CreateMaestroRunsPayload request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -209,7 +210,6 @@ partial void ProcessV1MaestroRunResponseContent( /// /// /// - /// /// /// /// @@ -223,33 +223,43 @@ partial void ProcessV1MaestroRunResponseContent( /// /// Default Value: false /// - /// - /// Default Value: false - /// - /// - /// Default Value: maestro_run + /// + /// + /// Default Value: main /// /// - /// + /// + /// Default Value: unset + /// + /// + /// + /// Whether or not to stream the result one token at a time using
+ /// [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).
+ /// This can be useful when waiting for long results where a long wait time for an
+ /// answer can be problematic, such as a chatbot. If set to `True`, then `n` must
+ /// be 1. A streaming response is different than the non-streaming response.
+ /// Default Value: false + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1MaestroRunAsync( global::AI21.AnyOf, string> input, object? outputType = default, global::System.Collections.Generic.IList? models = default, - global::System.Collections.Generic.IList>? tools = default, - global::AI21.ToolResources? toolResources = default, + global::System.Collections.Generic.IList? tools = default, object? context = default, - global::System.Collections.Generic.IList? requirements = default, + global::System.Collections.Generic.IList? requirements = default, global::AI21.CreateMaestroRunsPayloadBudget? budget = default, bool? verbose = default, global::System.Collections.Generic.IList? include = default, bool? structuredRagEnabled = default, bool? dynamicPlanningEnabled = default, - bool? toolsAllowed = default, - global::AI21.MaestroPayloadType? payloadType = default, + string? assistantId = default, + global::AI21.CreateMaestroRunsPayloadVariant? variant = default, global::System.Collections.Generic.IList? customRetrievalConfigs = default, global::AI21.CreateMaestroRunsPayloadResponseLanguage? responseLanguage = default, + string? systemPrompt = default, + bool? stream = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::AI21.CreateMaestroRunsPayload @@ -258,7 +268,6 @@ partial void ProcessV1MaestroRunResponseContent( OutputType = outputType, Models = models, Tools = tools, - ToolResources = toolResources, Context = context, Requirements = requirements, Budget = budget, @@ -266,10 +275,12 @@ partial void ProcessV1MaestroRunResponseContent( Include = include, StructuredRagEnabled = structuredRagEnabled, DynamicPlanningEnabled = dynamicPlanningEnabled, - ToolsAllowed = toolsAllowed, - PayloadType = payloadType, + AssistantId = assistantId, + Variant = variant, CustomRetrievalConfigs = customRetrievalConfigs, ResponseLanguage = responseLanguage, + SystemPrompt = systemPrompt, + Stream = stream, }; return await V1MaestroRunAsync( diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyAssistant.g.cs new file mode 100644 index 0000000..b6fc321 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyAssistant.g.cs @@ -0,0 +1,282 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareV1ModifyAssistantArguments( + global::System.Net.Http.HttpClient httpClient, + ref string assistantId, + global::AI21.ModifyAssistantRequest request); + partial void PrepareV1ModifyAssistantRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string assistantId, + global::AI21.ModifyAssistantRequest request); + partial void ProcessV1ModifyAssistantResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessV1ModifyAssistantResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Modify Assistant + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task V1ModifyAssistantAsync( + string assistantId, + + global::AI21.ModifyAssistantRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareV1ModifyAssistantArguments( + httpClient: HttpClient, + assistantId: ref assistantId, + request: request); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/assistants/{assistantId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + 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") + { + __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); + } + } + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareV1ModifyAssistantRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + assistantId: assistantId, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessV1ModifyAssistantResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessV1ModifyAssistantResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::AI21.Assistant.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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 + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::AI21.Assistant.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + + /// + /// Modify Assistant + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// An enumeration. + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task V1ModifyAssistantAsync( + string assistantId, + string? name = default, + string? description = default, + global::AI21.RunOptimization? optimization = default, + string? avatar = default, + bool? isArchived = default, + global::System.Collections.Generic.IList? models = default, + global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? requirements = default, + global::AI21.BudgetLevel? budget = default, + global::AI21.Visibility? visibility = default, + global::AI21.ModifyAssistantRequestResponseLanguage? responseLanguage = default, + string? systemPrompt = default, + global::AI21.WorkflowConfig? workflowConfig = default, + object? configOverrides = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::AI21.ModifyAssistantRequest + { + Name = name, + Description = description, + Optimization = optimization, + Avatar = avatar, + IsArchived = isArchived, + Models = models, + Tools = tools, + Requirements = requirements, + Budget = budget, + Visibility = visibility, + ResponseLanguage = responseLanguage, + SystemPrompt = systemPrompt, + WorkflowConfig = workflowConfig, + ConfigOverrides = configOverrides, + }; + + return await V1ModifyAssistantAsync( + assistantId: assistantId, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyPlan.g.cs index 9da0950..0a70854 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyPlan.g.cs @@ -7,14 +7,14 @@ public partial class Ai21Api { partial void PrepareV1ModifyPlanArguments( global::System.Net.Http.HttpClient httpClient, - ref string assistantId, ref string planId, + ref string assistantId, global::AI21.CreatePlanPayload request); partial void PrepareV1ModifyPlanRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string assistantId, string planId, + string assistantId, global::AI21.CreatePlanPayload request); partial void ProcessV1ModifyPlanResponse( global::System.Net.Http.HttpClient httpClient, @@ -28,14 +28,15 @@ partial void ProcessV1ModifyPlanResponseContent( /// /// Modify Plan /// - /// /// + /// /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1ModifyPlanAsync( - string assistantId, string planId, + string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -45,8 +46,8 @@ partial void ProcessV1ModifyPlanResponseContent( client: HttpClient); PrepareV1ModifyPlanArguments( httpClient: HttpClient, - assistantId: ref assistantId, planId: ref planId, + assistantId: ref assistantId, request: request); var __pathBuilder = new global::AI21.PathBuilder( @@ -89,8 +90,8 @@ partial void ProcessV1ModifyPlanResponseContent( PrepareV1ModifyPlanRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - assistantId: assistantId, planId: planId, + assistantId: assistantId, request: request); using var __response = await HttpClient.SendAsync( @@ -217,15 +218,15 @@ partial void ProcessV1ModifyPlanResponseContent( /// /// Modify Plan /// - /// /// + /// /// /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1ModifyPlanAsync( - string assistantId, string planId, + string assistantId, string code, global::System.Collections.Generic.IList? schemas = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -237,8 +238,8 @@ partial void ProcessV1ModifyPlanResponseContent( }; return await V1ModifyPlanAsync( - assistantId: assistantId, planId: planId, + assistantId: assistantId, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyRoute.g.cs index 6c35822..171e7ea 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ModifyRoute.g.cs @@ -7,14 +7,14 @@ public partial class Ai21Api { partial void PrepareV1ModifyRouteArguments( global::System.Net.Http.HttpClient httpClient, - ref string assistantId, ref string routeId, + ref string assistantId, global::AI21.UpdateRoutePayload request); partial void PrepareV1ModifyRouteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string assistantId, string routeId, + string assistantId, global::AI21.UpdateRoutePayload request); partial void ProcessV1ModifyRouteResponse( global::System.Net.Http.HttpClient httpClient, @@ -28,14 +28,15 @@ partial void ProcessV1ModifyRouteResponseContent( /// /// Modify Route /// - /// /// + /// /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1ModifyRouteAsync( - string assistantId, string routeId, + string assistantId, + global::AI21.UpdateRoutePayload request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -45,8 +46,8 @@ partial void ProcessV1ModifyRouteResponseContent( client: HttpClient); PrepareV1ModifyRouteArguments( httpClient: HttpClient, - assistantId: ref assistantId, routeId: ref routeId, + assistantId: ref assistantId, request: request); var __pathBuilder = new global::AI21.PathBuilder( @@ -89,8 +90,8 @@ partial void ProcessV1ModifyRouteResponseContent( PrepareV1ModifyRouteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - assistantId: assistantId, routeId: routeId, + assistantId: assistantId, request: request); using var __response = await HttpClient.SendAsync( @@ -217,15 +218,15 @@ partial void ProcessV1ModifyRouteResponseContent( /// /// Modify Route /// - /// /// + /// /// /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1ModifyRouteAsync( - string assistantId, string routeId, + string assistantId, string description, global::System.Collections.Generic.IList? examples = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -237,8 +238,8 @@ partial void ProcessV1ModifyRouteResponseContent( }; return await V1ModifyRouteAsync( - assistantId: assistantId, routeId: routeId, + assistantId: assistantId, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ConversationalRag.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1RunAssistant.g.cs similarity index 75% rename from src/libs/AI21/Generated/AI21.Ai21Api.V1ConversationalRag.g.cs rename to src/libs/AI21/Generated/AI21.Ai21Api.V1RunAssistant.g.cs index 17cfde6..f434b3b 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ConversationalRag.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1RunAssistant.g.cs @@ -5,42 +5,48 @@ namespace AI21 { public partial class Ai21Api { - partial void PrepareV1ConversationalRagArguments( + partial void PrepareV1RunAssistantArguments( global::System.Net.Http.HttpClient httpClient, - global::AI21.ConversationalRagConfig request); - partial void PrepareV1ConversationalRagRequest( + ref string assistantId, + global::AI21.RunAssistantRequest request); + partial void PrepareV1RunAssistantRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::AI21.ConversationalRagConfig request); - partial void ProcessV1ConversationalRagResponse( + string assistantId, + global::AI21.RunAssistantRequest request); + partial void ProcessV1RunAssistantResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessV1ConversationalRagResponseContent( + partial void ProcessV1RunAssistantResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Conversational Rag + /// Run Assistant /// + /// /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task V1ConversationalRagAsync( - global::AI21.ConversationalRagConfig request, + public async global::System.Threading.Tasks.Task V1RunAssistantAsync( + string assistantId, + + global::AI21.RunAssistantRequest request, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); PrepareArguments( client: HttpClient); - PrepareV1ConversationalRagArguments( + PrepareV1RunAssistantArguments( httpClient: HttpClient, + assistantId: ref assistantId, request: request); var __pathBuilder = new global::AI21.PathBuilder( - path: "/studio/v1/conversational-rag", + path: $"/studio/v1/assistants/{assistantId}/run", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -76,9 +82,10 @@ partial void ProcessV1ConversationalRagResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareV1ConversationalRagRequest( + PrepareV1RunAssistantRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + assistantId: assistantId, request: request); using var __response = await HttpClient.SendAsync( @@ -89,7 +96,7 @@ partial void ProcessV1ConversationalRagResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessV1ConversationalRagResponse( + ProcessV1RunAssistantResponse( httpClient: HttpClient, httpResponseMessage: __response); // Validation Error @@ -142,7 +149,7 @@ partial void ProcessV1ConversationalRagResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessV1ConversationalRagResponseContent( + ProcessV1RunAssistantResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -152,7 +159,7 @@ partial void ProcessV1ConversationalRagResponseContent( __response.EnsureSuccessStatusCode(); return - global::AI21.ConversationalRagResult.FromJson(__content, JsonSerializerContext) ?? + global::AI21.MaestroRunResult.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -183,7 +190,7 @@ partial void ProcessV1ConversationalRagResponseContent( ).ConfigureAwait(false); return - await global::AI21.ConversationalRagResult.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::AI21.MaestroRunResult.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -203,67 +210,55 @@ partial void ProcessV1ConversationalRagResponseContent( } /// - /// Conversational Rag + /// Run Assistant /// - /// - /// messages - /// - /// - /// - /// - /// - /// Default Value: segments - /// - /// - /// Default Value: 0 - /// - /// - /// Default Value: 1 + /// + /// + /// + /// Default Value: false /// - /// - /// Default Value: 1 + /// + /// + /// Default Value: [data_sources, requirements_result, requirements_result.metadata] /// - /// - /// Default Value: english - /// - /// + /// /// Default Value: false /// - /// + /// /// Default Value: false /// + /// + /// Default Value: unset + /// + /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task V1ConversationalRagAsync( - global::System.Collections.Generic.IList messages, - string? path = default, - global::System.Collections.Generic.IList? labels = default, - global::System.Collections.Generic.IList? fileIds = default, - global::AI21.ConversationalRagConfigRetrievalStrategy? retrievalStrategy = default, - double? retrievalSimilarityThreshold = default, - int? maxNeighbors = default, - double? hybridSearchAlpha = default, - global::AI21.ConversationalRagConfigResponseLanguage? responseLanguage = default, + public async global::System.Threading.Tasks.Task V1RunAssistantAsync( + string assistantId, + global::System.Collections.Generic.IList input, bool? verbose = default, - bool? shouldSetCustomRetrievalConfigs = default, + object? outputType = default, + global::System.Collections.Generic.IList? include = default, + bool? structuredRagEnabled = default, + bool? dynamicPlanningEnabled = default, + global::AI21.RunAssistantRequestResponseLanguage? responseLanguage = default, + string? systemPrompt = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::AI21.ConversationalRagConfig + var __request = new global::AI21.RunAssistantRequest { - Messages = messages, - Path = path, - Labels = labels, - FileIds = fileIds, - RetrievalStrategy = retrievalStrategy, - RetrievalSimilarityThreshold = retrievalSimilarityThreshold, - MaxNeighbors = maxNeighbors, - HybridSearchAlpha = hybridSearchAlpha, - ResponseLanguage = responseLanguage, + Input = input, Verbose = verbose, - ShouldSetCustomRetrievalConfigs = shouldSetCustomRetrievalConfigs, + OutputType = outputType, + Include = include, + StructuredRagEnabled = structuredRagEnabled, + DynamicPlanningEnabled = dynamicPlanningEnabled, + ResponseLanguage = responseLanguage, + SystemPrompt = systemPrompt, }; - return await V1ConversationalRagAsync( + return await V1RunAssistantAsync( + assistantId: assistantId, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationRequirements.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationRequirements.g.cs index 7df7f07..eeffd44 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationRequirements.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationRequirements.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1StudioApiGenerationRequirementsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1StudioApiGenerationRequirementsAsync( + global::AI21.RequirementsGenerationRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationThreadName.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationThreadName.g.cs index 2954935..a8bba6a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationThreadName.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1StudioApiGenerationThreadName.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1StudioApiGenerationThreadNameResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1StudioApiGenerationThreadNameAsync( + global::AI21.ThreadNameGenerationRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.V1ValidatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.V1ValidatePlan.g.cs index 9e88f15..ee2291f 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.V1ValidatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.V1ValidatePlan.g.cs @@ -32,6 +32,7 @@ partial void ProcessV1ValidatePlanResponseContent( /// public async global::System.Threading.Tasks.Task V1ValidatePlanAsync( string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs new file mode 100644 index 0000000..ee982b9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Action Items Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/action-items", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs new file mode 100644 index 0000000..4abe41d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaActionItemsSolutionsVidaaActionItemsPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaActionItemsSolutionsVidaaActionItemsPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Action Items + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaActionItemsSolutionsVidaaActionItemsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaActionItemsSolutionsVidaaActionItemsPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/action-items", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaActionItemsSolutionsVidaaActionItemsPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs new file mode 100644 index 0000000..cc2ebf4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Feed Items Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/feed-items", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs new file mode 100644 index 0000000..1e2d0aa --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaFeedItemsSolutionsVidaaFeedItemsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaFeedItemsSolutionsVidaaFeedItemsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Feed Items + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaFeedItemsSolutionsVidaaFeedItemsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaFeedItemsSolutionsVidaaFeedItemsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/feed-items", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaFeedItemsSolutionsVidaaFeedItemsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs new file mode 100644 index 0000000..0e63dd4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Messages Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/api/messages", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs new file mode 100644 index 0000000..d9a3f61 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaMessagesSolutionsVidaaApiMessagesPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaMessagesSolutionsVidaaApiMessagesPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Messages + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaMessagesSolutionsVidaaApiMessagesPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaMessagesSolutionsVidaaApiMessagesPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/api/messages", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaMessagesSolutionsVidaaApiMessagesPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs new file mode 100644 index 0000000..523eaf4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Scheduler Stats Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/scheduler-stats", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs new file mode 100644 index 0000000..af77827 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Scheduler Stats + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/scheduler-stats", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs new file mode 100644 index 0000000..7974fd8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Sources Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/sources", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs new file mode 100644 index 0000000..26f1904 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSourcesSolutionsVidaaSourcesGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSourcesSolutionsVidaaSourcesGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSourcesSolutionsVidaaSourcesGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSourcesSolutionsVidaaSourcesGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Sources + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSourcesSolutionsVidaaSourcesGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSourcesSolutionsVidaaSourcesGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/sources", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSourcesSolutionsVidaaSourcesGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSourcesSolutionsVidaaSourcesGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSourcesSolutionsVidaaSourcesGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs new file mode 100644 index 0000000..f5d91a7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Subscribe Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/subscribe", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs new file mode 100644 index 0000000..c8da947 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSubscribeSolutionsVidaaSubscribePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSubscribeSolutionsVidaaSubscribePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Subscribe + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSubscribeSolutionsVidaaSubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSubscribeSolutionsVidaaSubscribePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/subscribe", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSubscribeSolutionsVidaaSubscribePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs new file mode 100644 index 0000000..02a7164 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Subscriptions Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/subscriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs new file mode 100644 index 0000000..972fe10 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSubscriptionsSolutionsVidaaSubscriptionsGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSubscriptionsSolutionsVidaaSubscriptionsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Subscriptions + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSubscriptionsSolutionsVidaaSubscriptionsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSubscriptionsSolutionsVidaaSubscriptionsGetArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/subscriptions", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSubscriptionsSolutionsVidaaSubscriptionsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs new file mode 100644 index 0000000..5a3ed7d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Summarize Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/summarize", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs new file mode 100644 index 0000000..f3578a5 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaSummarizeSolutionsVidaaSummarizePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaSummarizeSolutionsVidaaSummarizePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Summarize + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaSummarizeSolutionsVidaaSummarizePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaSummarizeSolutionsVidaaSummarizePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/summarize", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaSummarizeSolutionsVidaaSummarizePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs new file mode 100644 index 0000000..6ff15c9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Trigger Poll Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/trigger-poll", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs new file mode 100644 index 0000000..af44036 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaTriggerPollSolutionsVidaaTriggerPollPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaTriggerPollSolutionsVidaaTriggerPollPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Trigger Poll + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaTriggerPollSolutionsVidaaTriggerPollPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaTriggerPollSolutionsVidaaTriggerPollPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/trigger-poll", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaTriggerPollSolutionsVidaaTriggerPollPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs new file mode 100644 index 0000000..0584f59 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Unsubscribe Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/vidaa/unsubscribe", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs new file mode 100644 index 0000000..74e7b7f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareVidaaUnsubscribeSolutionsVidaaUnsubscribePostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareVidaaUnsubscribeSolutionsVidaaUnsubscribePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Vidaa Unsubscribe + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task VidaaUnsubscribeSolutionsVidaaUnsubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareVidaaUnsubscribeSolutionsVidaaUnsubscribePostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/vidaa/unsubscribe", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareVidaaUnsubscribeSolutionsVidaaUnsubscribePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs new file mode 100644 index 0000000..03aee80 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Wpp Feedback Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/wpp/feedback", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs new file mode 100644 index 0000000..a511b6f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareWppFeedbackSolutionsWppFeedbackPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareWppFeedbackSolutionsWppFeedbackPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessWppFeedbackSolutionsWppFeedbackPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessWppFeedbackSolutionsWppFeedbackPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Wpp Feedback + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task WppFeedbackSolutionsWppFeedbackPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareWppFeedbackSolutionsWppFeedbackPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/wpp/feedback", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareWppFeedbackSolutionsWppFeedbackPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessWppFeedbackSolutionsWppFeedbackPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessWppFeedbackSolutionsWppFeedbackPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs new file mode 100644 index 0000000..51c4b09 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareWppQueryPrefixPreviewSolutionsPreviewWppQueryPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareWppQueryPrefixPreviewSolutionsPreviewWppQueryPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Wpp Query Prefix Preview + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task WppQueryPrefixPreviewSolutionsPreviewWppQueryPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareWppQueryPrefixPreviewSolutionsPreviewWppQueryPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions-preview/wpp/query", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareWppQueryPrefixPreviewSolutionsPreviewWppQueryPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.WppQuerySolutionsWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.WppQuerySolutionsWppQueryPost.g.cs new file mode 100644 index 0000000..6e2174b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Ai21Api.WppQuerySolutionsWppQueryPost.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace AI21 +{ + public partial class Ai21Api + { + partial void PrepareWppQuerySolutionsWppQueryPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareWppQuerySolutionsWppQueryPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessWppQuerySolutionsWppQueryPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessWppQuerySolutionsWppQueryPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Wpp Query + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task WppQuerySolutionsWppQueryPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareWppQuerySolutionsWppQueryPostArguments( + httpClient: HttpClient); + + var __pathBuilder = new global::AI21.PathBuilder( + path: "/solutions/wpp/query", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareWppQuerySolutionsWppQueryPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessWppQuerySolutionsWppQueryPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessWppQuerySolutionsWppQueryPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.g.cs index fa95eab..0979d93 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.g.cs @@ -58,7 +58,7 @@ public sealed partial class Ai21Api : global::AI21.IAi21Api, global::System.IDis /// /// /// - public RAGEngineClient RAGEngine => new RAGEngineClient(HttpClient, authorizations: Authorizations) + public RagEngineClient RagEngine => new RagEngineClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs index 45b6cc0..29f46bf 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CompareTextStudioV1DemosDocumentModifierCompareTextPostAsync( + global::AI21.CompareTextRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs index 4bb3462..53e9054 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ConvertDocumentFileStudioV1ChatFilesConvertPostAsync( + global::AI21.BodyConvertDocumentFileStudioV1ChatFilesConvertPost request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.CreateDemoStudioV1DemosPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.CreateDemoStudioV1DemosPost.g.cs index 546dcbd..783d022 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.CreateDemoStudioV1DemosPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.CreateDemoStudioV1DemosPost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateDemoStudioV1DemosPostAsync( + global::AI21.DemoCreate request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs new file mode 100644 index 0000000..6b475ec --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.CreateMcpStorageStudioV1McpStoragePost.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Create Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateMcpStorageStudioV1McpStoragePostAsync( + + global::AI21.CreateMCPStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Create Mcp Storage + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateMcpStorageStudioV1McpStoragePostAsync( + string serverUrl, + string serverLabel, + global::System.Guid? workspaceId = default, + global::AI21.AuthenticationType? authenticationType = default, + string? authHeaderName = default, + string? authValue = default, + global::System.Collections.Generic.IList? allowedTools = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs index c8cc61e..dbe3dbe 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPostAsync( string organizationId, + global::AI21.CreateOrganizationSchemaRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs new file mode 100644 index 0000000..2a003f0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Delete Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteMcpStorageStudioV1McpStorageMcpIdDeleteAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs index 7afb1c8..85007a7 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPostAsync( string organizationId, + global::AI21.DetectSchemaRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs index 0e5eb23..e9da62c 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPostAsync( + global::AI21.DownloadModifiedDocumentRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs new file mode 100644 index 0000000..91210bb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Aftersales Batch Predict Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs new file mode 100644 index 0000000..e49c165 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Aftersales Batch Predict + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs new file mode 100644 index 0000000..ec18cb7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Aftersales Batch Predict Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs new file mode 100644 index 0000000..f47d750 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Aftersales Batch Predict Status + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs new file mode 100644 index 0000000..6b7c138 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..dfc5816 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications Results Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..d10570f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications Results + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs new file mode 100644 index 0000000..08deb50 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..e277244 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..b084203 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Classifications Status + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs new file mode 100644 index 0000000..90b9f32 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..25d0146 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions Results Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs new file mode 100644 index 0000000..e25e908 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions Results + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs new file mode 100644 index 0000000..a216333 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..7536b2e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions Status Prefix Preview + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs new file mode 100644 index 0000000..a9c96b9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac Batch Descriptions Status + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostAsync( + string batchId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs new file mode 100644 index 0000000..9158f02 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs new file mode 100644 index 0000000..c6b305f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Classifications + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1ClassificationsSolutionsFnacV1ClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs new file mode 100644 index 0000000..9268cdb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Deprecated Classifications Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs new file mode 100644 index 0000000..4bff79e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Deprecated Classifications + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs new file mode 100644 index 0000000..cf3f3fa --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Deprecated Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs new file mode 100644 index 0000000..d69a5a6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Deprecated Descriptions + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs new file mode 100644 index 0000000..a3ff250 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Descriptions Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs new file mode 100644 index 0000000..cc3fb84 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Fnac V1 Descriptions + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task FnacV1DescriptionsSolutionsFnacV1DescriptionsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs index 810971e..bd4223b 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostAsync( + global::AI21.MarkdownRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs new file mode 100644 index 0000000..3000e55 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Get Assistants By Mcp + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs new file mode 100644 index 0000000..57b9666 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Get Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetMcpStorageStudioV1McpStorageMcpIdGetAsync( + string mcpId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs new file mode 100644 index 0000000..83ee524 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs @@ -0,0 +1,23 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Get Output Explanation
+ /// Get output explanation for an execution (cached or generated).
+ /// Set force_regenerate=True to regenerate even if cached. + ///
+ /// + /// + /// Default Value: false + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetAsync( + string executionId, + bool? forceRegenerate = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs new file mode 100644 index 0000000..2bcafaf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs @@ -0,0 +1,23 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Get Step Explanations
+ /// Get step explanations for an execution (cached or generated).
+ /// Set force_regenerate=True to regenerate even if cached. + ///
+ /// + /// + /// Default Value: false + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetAsync( + string executionId, + bool? forceRegenerate = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs new file mode 100644 index 0000000..435b6a5 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs @@ -0,0 +1,18 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Get Vector Store
+ /// Get a vector store by ID. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetAsync( + string vectorStoreId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs index 1ddf88b..441fc7f 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task JambaExecuteStudioV1DemosDocumentModifierJambaExecutePostAsync( + global::AI21.JambaExecuteRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs new file mode 100644 index 0000000..ba28099 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Document Upload Process Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs new file mode 100644 index 0000000..81d7890 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Document Upload Process + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs new file mode 100644 index 0000000..8ff3ad9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Email Assistant Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs new file mode 100644 index 0000000..78c47d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Email Assistant + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshEmailAssistantSolutionsKirshEmailAssistantPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs new file mode 100644 index 0000000..769815b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Grant Compliance Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs new file mode 100644 index 0000000..2af52cb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Grant Compliance + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshGrantComplianceSolutionsKirshGrantCompliancePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs new file mode 100644 index 0000000..f5964c5 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Grant Metadata Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs new file mode 100644 index 0000000..f5c095d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Kirsh Grant Metadata + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task KirshGrantMetadataSolutionsKirshGrantMetadataPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.ListMcpStorageStudioV1McpStorageGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.ListMcpStorageStudioV1McpStorageGet.g.cs new file mode 100644 index 0000000..8a5bad2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.ListMcpStorageStudioV1McpStorageGet.g.cs @@ -0,0 +1,17 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// List Mcp Storage + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListMcpStorageStudioV1McpStorageGetAsync( + global::System.Guid? workspaceId = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs new file mode 100644 index 0000000..28d4efe --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Mcp Tool Discovery + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task McpToolDiscoveryStudioV1McpDiscoverPostAsync( + + global::AI21.MCPDefinition request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Mcp Tool Discovery + /// + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task McpToolDiscoveryStudioV1McpDiscoverPostAsync( + string serverUrl, + string? serverLabel = default, + object? headers = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs index 213d5ab..9a2cc9b 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ParsePdfStudioV1DemosDocumentModifierParsePdfPostAsync( + global::AI21.BodyParsePdfStudioV1DemosDocumentModifierParsePdfPost request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs index f3fa3de..15793c3 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task PostWebsiteConnectorStudioV1ConnectorsWebsitePostAsync( + global::AI21.WebsiteConnectorPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs index a44a64b..c85ff99 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ProcessRfiDocumentStudioV1DemosRfiProcessRfiPostAsync( + global::AI21.BodyProcessRfiDocumentStudioV1DemosRfiProcessRfiPost request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs index 341f7b4..7954303 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostAsync( + global::AI21.ConnectorsSyncParams request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs new file mode 100644 index 0000000..93c3a40 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Tlv Convrag Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs new file mode 100644 index 0000000..8da693a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Tlv Convrag + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task TlvConvragSolutionsTlvMunicipalityConvragPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs index ff159aa..434f404 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateDemoStudioV1DemosDemoIdPut.g.cs @@ -14,6 +14,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task UpdateDemoStudioV1DemosDemoIdPutAsync( string demoId, + global::AI21.DemoUpdate request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs new file mode 100644 index 0000000..c4fcf68 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Update Mcp Storage + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateMcpStorageStudioV1McpStorageMcpIdPatchAsync( + string mcpId, + + global::AI21.UpdateMCPStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Update Mcp Storage + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateMcpStorageStudioV1McpStorageMcpIdPatchAsync( + string mcpId, + string serverLabel, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs index 13bbad2..e28e6f0 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchAsync( string name, + global::AI21.WorkspaceModelUpdate request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs index d59535f..fe03526 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs @@ -12,6 +12,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePostAsync( + global::AI21.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost request, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,12 +25,16 @@ public partial interface IAi21Api /// /// Default Value: MEDIUM /// + /// + /// Vector store ID to use for RFI processing + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePostAsync( byte[] file, string filename, string? budget = default, + string? vectorStoreId = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ConversationalRag.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ConversationalRag.g.cs deleted file mode 100644 index 651f202..0000000 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1ConversationalRag.g.cs +++ /dev/null @@ -1,63 +0,0 @@ -#nullable enable - -namespace AI21 -{ - public partial interface IAi21Api - { - /// - /// Conversational Rag - /// - /// - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task V1ConversationalRagAsync( - global::AI21.ConversationalRagConfig request, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Conversational Rag - /// - /// - /// messages - /// - /// - /// - /// - /// - /// Default Value: segments - /// - /// - /// Default Value: 0 - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: english - /// - /// - /// Default Value: false - /// - /// - /// Default Value: false - /// - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task V1ConversationalRagAsync( - global::System.Collections.Generic.IList messages, - string? path = default, - global::System.Collections.Generic.IList? labels = default, - global::System.Collections.Generic.IList? fileIds = default, - global::AI21.ConversationalRagConfigRetrievalStrategy? retrievalStrategy = default, - double? retrievalSimilarityThreshold = default, - int? maxNeighbors = default, - double? hybridSearchAlpha = default, - global::AI21.ConversationalRagConfigResponseLanguage? responseLanguage = default, - bool? verbose = default, - bool? shouldSetCustomRetrievalConfigs = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateAssistant.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateAssistant.g.cs new file mode 100644 index 0000000..1b599d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateAssistant.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Create Assistant + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1CreateAssistantAsync( + + global::AI21.CreateAssistantRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Create Assistant + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: medium + /// + /// + /// Default Value: default + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1CreateAssistantAsync( + string name, + string? description = default, + string? optimization = default, + string? avatar = default, + global::System.Collections.Generic.IList? models = default, + global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? requirements = default, + global::AI21.BudgetLevel? budget = default, + global::AI21.AssistantType? assistantType = default, + global::System.Collections.Generic.IList? starterQuestions = default, + string? systemPrompt = default, + global::AI21.WorkflowConfig? workflowConfig = default, + object? configOverrides = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1CreatePlan.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreatePlan.g.cs index 25bdf49..310b342 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1CreatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreatePlan.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task V1CreatePlanAsync( string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateRoute.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateRoute.g.cs index e78b029..1943c8a 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1CreateRoute.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task V1CreateRouteAsync( string assistantId, + global::AI21.CreateRoutePayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1DeleteRoute.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1DeleteRoute.g.cs index cde7969..0367463 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1DeleteRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1DeleteRoute.g.cs @@ -7,13 +7,13 @@ public partial interface IAi21Api /// /// Delete Route /// - /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1DeleteRouteAsync( - string assistantId, string routeId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1GenerateAssistant.g.cs similarity index 55% rename from src/libs/AI21/Generated/AI21.IAi21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs rename to src/libs/AI21/Generated/AI21.IAi21Api.V1GenerateAssistant.g.cs index 93e6012..8301311 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.ExecuteConvRagStudioV1DemosScraperConversationalRagPost.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1GenerateAssistant.g.cs @@ -5,27 +5,26 @@ namespace AI21 public partial interface IAi21Api { /// - /// Execute Conv Rag + /// Generate Assistant /// /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExecuteConvRagStudioV1DemosScraperConversationalRagPostAsync( - global::AI21.ConvRagExecuteRequest request, + global::System.Threading.Tasks.Task V1GenerateAssistantAsync( + + global::AI21.GenerateAssistantRequest request, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Execute Conv Rag + /// Generate Assistant /// - /// - /// - /// + /// + /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExecuteConvRagStudioV1DemosScraperConversationalRagPostAsync( - string message, - string? label = default, - string? apiKey = default, + global::System.Threading.Tasks.Task V1GenerateAssistantAsync( + string prompt, + string? avatar = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1GetPlan.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1GetPlan.g.cs index 6a89241..89b49bb 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1GetPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1GetPlan.g.cs @@ -7,13 +7,13 @@ public partial interface IAi21Api /// /// Get Plan /// - /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1GetPlanAsync( - string assistantId, string planId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1GetRoute.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1GetRoute.g.cs index 725d65b..6bfeadb 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1GetRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1GetRoute.g.cs @@ -7,13 +7,13 @@ public partial interface IAi21Api /// /// Get Route /// - /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1GetRouteAsync( - string assistantId, string routeId, + string assistantId, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ListAssistants.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ListAssistants.g.cs index 4731578..14cae1a 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1ListAssistants.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1ListAssistants.g.cs @@ -7,9 +7,11 @@ public partial interface IAi21Api /// /// Get Assistants /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1ListAssistantsAsync( + global::System.Collections.Generic.IList? workspaceIds = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1MaestroRun.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1MaestroRun.g.cs index 21683f1..1a31aca 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1MaestroRun.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1MaestroRun.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1MaestroRunAsync( + global::AI21.CreateMaestroRunsPayload request, global::System.Threading.CancellationToken cancellationToken = default); @@ -21,7 +22,6 @@ public partial interface IAi21Api /// /// /// - /// /// /// /// @@ -35,33 +35,43 @@ public partial interface IAi21Api /// /// Default Value: false /// - /// - /// Default Value: false - /// - /// - /// Default Value: maestro_run + /// + /// + /// Default Value: main /// /// - /// + /// + /// Default Value: unset + /// + /// + /// + /// Whether or not to stream the result one token at a time using
+ /// [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).
+ /// This can be useful when waiting for long results where a long wait time for an
+ /// answer can be problematic, such as a chatbot. If set to `True`, then `n` must
+ /// be 1. A streaming response is different than the non-streaming response.
+ /// Default Value: false + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1MaestroRunAsync( global::AI21.AnyOf, string> input, object? outputType = default, global::System.Collections.Generic.IList? models = default, - global::System.Collections.Generic.IList>? tools = default, - global::AI21.ToolResources? toolResources = default, + global::System.Collections.Generic.IList? tools = default, object? context = default, - global::System.Collections.Generic.IList? requirements = default, + global::System.Collections.Generic.IList? requirements = default, global::AI21.CreateMaestroRunsPayloadBudget? budget = default, bool? verbose = default, global::System.Collections.Generic.IList? include = default, bool? structuredRagEnabled = default, bool? dynamicPlanningEnabled = default, - bool? toolsAllowed = default, - global::AI21.MaestroPayloadType? payloadType = default, + string? assistantId = default, + global::AI21.CreateMaestroRunsPayloadVariant? variant = default, global::System.Collections.Generic.IList? customRetrievalConfigs = default, global::AI21.CreateMaestroRunsPayloadResponseLanguage? responseLanguage = default, + string? systemPrompt = default, + bool? stream = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyAssistant.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyAssistant.g.cs new file mode 100644 index 0000000..ff5c2e7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyAssistant.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Modify Assistant + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1ModifyAssistantAsync( + string assistantId, + + global::AI21.ModifyAssistantRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Modify Assistant + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// An enumeration. + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1ModifyAssistantAsync( + string assistantId, + string? name = default, + string? description = default, + global::AI21.RunOptimization? optimization = default, + string? avatar = default, + bool? isArchived = default, + global::System.Collections.Generic.IList? models = default, + global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? requirements = default, + global::AI21.BudgetLevel? budget = default, + global::AI21.Visibility? visibility = default, + global::AI21.ModifyAssistantRequestResponseLanguage? responseLanguage = default, + string? systemPrompt = default, + global::AI21.WorkflowConfig? workflowConfig = default, + object? configOverrides = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyPlan.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyPlan.g.cs index 2d2300e..41e4d83 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyPlan.g.cs @@ -7,29 +7,30 @@ public partial interface IAi21Api /// /// Modify Plan /// - /// /// + /// /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1ModifyPlanAsync( - string assistantId, string planId, + string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default); /// /// Modify Plan /// - /// /// + /// /// /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1ModifyPlanAsync( - string assistantId, string planId, + string assistantId, string code, global::System.Collections.Generic.IList? schemas = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyRoute.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyRoute.g.cs index 275c3b0..962a7e6 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1ModifyRoute.g.cs @@ -7,29 +7,30 @@ public partial interface IAi21Api /// /// Modify Route /// - /// /// + /// /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1ModifyRouteAsync( - string assistantId, string routeId, + string assistantId, + global::AI21.UpdateRoutePayload request, global::System.Threading.CancellationToken cancellationToken = default); /// /// Modify Route /// - /// /// + /// /// /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1ModifyRouteAsync( - string assistantId, string routeId, + string assistantId, string description, global::System.Collections.Generic.IList? examples = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1RunAssistant.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1RunAssistant.g.cs new file mode 100644 index 0000000..72ba49e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1RunAssistant.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Run Assistant + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1RunAssistantAsync( + string assistantId, + + global::AI21.RunAssistantRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Run Assistant + /// + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// Default Value: [data_sources, requirements_result, requirements_result.metadata] + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: unset + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1RunAssistantAsync( + string assistantId, + global::System.Collections.Generic.IList input, + bool? verbose = default, + object? outputType = default, + global::System.Collections.Generic.IList? include = default, + bool? structuredRagEnabled = default, + bool? dynamicPlanningEnabled = default, + global::AI21.RunAssistantRequestResponseLanguage? responseLanguage = default, + string? systemPrompt = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationRequirements.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationRequirements.g.cs index 5e866e0..4aabdab 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationRequirements.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationRequirements.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1StudioApiGenerationRequirementsAsync( + global::AI21.RequirementsGenerationRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationThreadName.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationThreadName.g.cs index 3ff7d0c..d073428 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationThreadName.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1StudioApiGenerationThreadName.g.cs @@ -11,6 +11,7 @@ public partial interface IAi21Api /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1StudioApiGenerationThreadNameAsync( + global::AI21.ThreadNameGenerationRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.V1ValidatePlan.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.V1ValidatePlan.g.cs index 8966464..6d2490e 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.V1ValidatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.V1ValidatePlan.g.cs @@ -13,6 +13,7 @@ public partial interface IAi21Api /// global::System.Threading.Tasks.Task V1ValidatePlanAsync( string assistantId, + global::AI21.CreatePlanPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs new file mode 100644 index 0000000..51c307d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Action Items Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs new file mode 100644 index 0000000..cb4b23a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Action Items + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaActionItemsSolutionsVidaaActionItemsPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs new file mode 100644 index 0000000..4846614 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Feed Items Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs new file mode 100644 index 0000000..ff26a89 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Feed Items + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaFeedItemsSolutionsVidaaFeedItemsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs new file mode 100644 index 0000000..f55372f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Messages Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs new file mode 100644 index 0000000..138ed3a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Messages + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaMessagesSolutionsVidaaApiMessagesPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs new file mode 100644 index 0000000..f582309 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Scheduler Stats Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs new file mode 100644 index 0000000..5ea86aa --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Scheduler Stats + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs new file mode 100644 index 0000000..acf26d5 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Sources Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs new file mode 100644 index 0000000..9791d3f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSourcesSolutionsVidaaSourcesGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Sources + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSourcesSolutionsVidaaSourcesGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs new file mode 100644 index 0000000..98a132d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Subscribe Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs new file mode 100644 index 0000000..db588b0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Subscribe + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSubscribeSolutionsVidaaSubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs new file mode 100644 index 0000000..38d1629 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Subscriptions Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs new file mode 100644 index 0000000..1d0117d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Subscriptions + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSubscriptionsSolutionsVidaaSubscriptionsGetAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs new file mode 100644 index 0000000..ce1fbe0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Summarize Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs new file mode 100644 index 0000000..647b651 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Summarize + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaSummarizeSolutionsVidaaSummarizePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs new file mode 100644 index 0000000..dd711eb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Trigger Poll Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs new file mode 100644 index 0000000..5dc8dde --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Trigger Poll + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaTriggerPollSolutionsVidaaTriggerPollPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs new file mode 100644 index 0000000..6954048 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Unsubscribe Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs new file mode 100644 index 0000000..c9a51b3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Vidaa Unsubscribe + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task VidaaUnsubscribeSolutionsVidaaUnsubscribePostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs new file mode 100644 index 0000000..3eb62c7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Wpp Feedback Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs new file mode 100644 index 0000000..db4c670 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.WppFeedbackSolutionsWppFeedbackPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Wpp Feedback + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task WppFeedbackSolutionsWppFeedbackPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs new file mode 100644 index 0000000..6a223fd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Wpp Query Prefix Preview + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task WppQueryPrefixPreviewSolutionsPreviewWppQueryPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.WppQuerySolutionsWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.WppQuerySolutionsWppQueryPost.g.cs new file mode 100644 index 0000000..7718b9c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IAi21Api.WppQuerySolutionsWppQueryPost.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IAi21Api + { + /// + /// Wpp Query + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task WppQuerySolutionsWppQueryPostAsync( + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IAi21Api.g.cs b/src/libs/AI21/Generated/AI21.IAi21Api.g.cs index 2771b1c..d21af24 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Api.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Api.g.cs @@ -50,7 +50,7 @@ public partial interface IAi21Api : global::System.IDisposable /// /// /// - public RAGEngineClient RAGEngine { get; } + public RagEngineClient RagEngine { get; } /// /// diff --git a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs index 764f1e5..ca74c22 100644 --- a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs +++ b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.V1ChatComplete.g.cs @@ -16,6 +16,7 @@ public partial interface IJambaCompleteClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( + global::AI21.ChatRequest request, global::System.Threading.CancellationToken cancellationToken = default); @@ -80,13 +81,15 @@ public partial interface IJambaCompleteClient /// /// /// - /// + /// + /// Default Value: {"type":"text"} + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( global::AI21.ModelName model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? tools = default, int? n = default, int? maxTokens = default, double? temperature = default, diff --git a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryManagement3.g.cs index 9af3d5a..c16c34e 100644 --- a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryManagement3.g.cs +++ b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryManagement3.g.cs @@ -21,6 +21,7 @@ public partial interface ILibraryManagementClient /// global::System.Threading.Tasks.Task V1LibraryManagement3Async( global::System.Guid fileId, + global::AI21.FilesUpdateRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryUpload.g.cs b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryUpload.g.cs index e408f23..63eae85 100644 --- a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryUpload.g.cs +++ b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.V1LibraryUpload.g.cs @@ -17,6 +17,7 @@ public partial interface ILibraryManagementClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1LibraryUploadAsync( + global::AI21.BodyV1LibraryUpload request, global::System.Threading.CancellationToken cancellationToken = default); @@ -40,6 +41,7 @@ public partial interface ILibraryManagementClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1LibraryUploadAsync( @@ -52,6 +54,7 @@ public partial interface ILibraryManagementClient global::AI21.UploadMode? uploadMode = default, global::System.Guid? batchId = default, string? dataSource = default, + string? metadata = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement.g.cs similarity index 92% rename from src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement.g.cs rename to src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement.g.cs index 4a3a2f6..7b721ea 100644 --- a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement.g.cs +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public partial interface IRAGEngineClient + public partial interface IRagEngineClient { /// /// Get Batch Ingestion Status diff --git a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement2.g.cs similarity index 92% rename from src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement2.g.cs rename to src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement2.g.cs index c352c8e..a37a12c 100644 --- a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibraryManagement2.g.cs +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement2.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public partial interface IRAGEngineClient + public partial interface IRagEngineClient { /// /// Generate Documents Signed Url diff --git a/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement3.g.cs new file mode 100644 index 0000000..1d04ab4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibraryManagement3.g.cs @@ -0,0 +1,18 @@ +#nullable enable + +namespace AI21 +{ + public partial interface IRagEngineClient + { + /// + /// Download Parsed Document
+ /// Download parsed document with Content-Disposition header for immediate download. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task V1LibraryManagement3Async( + global::System.Guid fileId, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibrarySearch.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibrarySearch.g.cs similarity index 97% rename from src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibrarySearch.g.cs rename to src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibrarySearch.g.cs index 1035fac..6495d11 100644 --- a/src/libs/AI21/Generated/AI21.IRAGEngineClient.V1LibrarySearch.g.cs +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.V1LibrarySearch.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public partial interface IRAGEngineClient + public partial interface IRagEngineClient { /// /// Search @@ -11,6 +11,7 @@ public partial interface IRAGEngineClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1LibrarySearchAsync( + global::AI21.LibrarySearchRequest request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IRAGEngineClient.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs similarity index 94% rename from src/libs/AI21/Generated/AI21.IRAGEngineClient.g.cs rename to src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs index 95a4a32..6d8c887 100644 --- a/src/libs/AI21/Generated/AI21.IRAGEngineClient.g.cs +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs @@ -7,7 +7,7 @@ namespace AI21 /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
- public partial interface IRAGEngineClient : global::System.IDisposable + public partial interface IRagEngineClient : global::System.IDisposable { /// /// The HttpClient instance. diff --git a/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage2.g.cs b/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage2.g.cs index a134b3d..17ac61d 100644 --- a/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage2.g.cs +++ b/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage2.g.cs @@ -11,6 +11,7 @@ public partial interface ISecretsClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1SecretStorage2Async( + global::AI21.CreateSecretPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage4.g.cs b/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage4.g.cs index b19cb2d..b070620 100644 --- a/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage4.g.cs +++ b/src/libs/AI21/Generated/AI21.ISecretsClient.V1SecretStorage4.g.cs @@ -13,6 +13,7 @@ public partial interface ISecretsClient /// global::System.Threading.Tasks.Task V1SecretStorage4Async( string secretId, + global::AI21.UpdateSecretPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs index 03b3319..272fb96 100644 --- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs @@ -11,6 +11,7 @@ public partial interface IWebsiteConnectorClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1WebsiteConnectorCreateConfigAsync( + global::AI21.WebsiteConnectorCreateConfigPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs index f044397..9271a90 100644 --- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs +++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs @@ -11,6 +11,7 @@ public partial interface IWebsiteConnectorClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1WebsiteConnectorIngestUrlAsync( + global::AI21.WebsiteConnectorIngestUrlPayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs index ac0f27d..9f1ddd6 100644 --- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs @@ -11,6 +11,7 @@ public partial interface IWebsiteConnectorClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1WebsiteConnectorIngestWebsiteAsync( + global::AI21.WebsiteConnectorIngestWebsitePayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs index 0010e3e..394912c 100644 --- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs @@ -11,6 +11,7 @@ public partial interface IWebsiteConnectorClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task V1WebsiteConnectorRetryIngestWebsiteAsync( + global::AI21.WebsiteConnectorRetryIngestWebsitePayload request, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs index 068ad93..d8995f0 100644 --- a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs +++ b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs @@ -33,6 +33,7 @@ partial void ProcessV1ChatCompleteResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( + global::AI21.ChatRequest request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -268,13 +269,15 @@ partial void ProcessV1ChatCompleteResponseContent( /// /// /// - /// + /// + /// Default Value: {"type":"text"} + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task>> V1ChatCompleteAsync( global::AI21.ModelName model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList? tools = default, + global::System.Collections.Generic.IList? tools = default, int? n = default, int? maxTokens = default, double? temperature = default, diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguage.g.cs new file mode 100644 index 0000000..b96c3e4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class AssistantResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.AssistantResponseLanguage 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::AI21.AssistantResponseLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.AssistantResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.AssistantResponseLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.AssistantResponseLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.AssistantResponseLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguageNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguageNullable.g.cs new file mode 100644 index 0000000..94a9f60 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantResponseLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class AssistantResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.AssistantResponseLanguage? 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::AI21.AssistantResponseLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.AssistantResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.AssistantResponseLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.AssistantResponseLanguage? 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::AI21.AssistantResponseLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantType.g.cs similarity index 70% rename from src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.AssistantType.g.cs index 6f1d37c..c1afa3a 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantType.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class AssistantTool2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AssistantTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.AssistantTool2 Read( + public override global::AI21.AssistantType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class AssistantTool2JsonConverter : global::System.Text.Json.Seria var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.AssistantTool2Extensions.ToEnum(stringValue) ?? default; + return global::AI21.AssistantTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class AssistantTool2JsonConverter : global::System.Text.Json.Seria case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.AssistantTool2)numValue; + return (global::AI21.AssistantType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.AssistantTool2); + return default(global::AI21.AssistantType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class AssistantTool2JsonConverter : global::System.Text.Json.Seria /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.AssistantTool2 value, + global::AI21.AssistantType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.AssistantTool2Extensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.AssistantTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2Nullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTypeNullable.g.cs similarity index 72% rename from src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2Nullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.AssistantTypeNullable.g.cs index 012fe89..286e09e 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTool2Nullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AssistantTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class AssistantTool2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AssistantTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.AssistantTool2? Read( + public override global::AI21.AssistantType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class AssistantTool2NullableJsonConverter : global::System.Text.Js var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.AssistantTool2Extensions.ToEnum(stringValue); + return global::AI21.AssistantTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class AssistantTool2NullableJsonConverter : global::System.Text.Js case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.AssistantTool2)numValue; + return (global::AI21.AssistantType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.AssistantTool2?); + return default(global::AI21.AssistantType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class AssistantTool2NullableJsonConverter : global::System.Text.Js /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.AssistantTool2? value, + global::AI21.AssistantType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.AssistantTool2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.AssistantTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationType.g.cs similarity index 74% rename from src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionType.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationType.g.cs index 0544cab..8659d43 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionType.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationType.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ToolDefinitionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AuthenticationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ToolDefinitionType Read( + public override global::AI21.AuthenticationType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolDefinitionTypeJsonConverter : global::System.Text.Json.S var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ToolDefinitionTypeExtensions.ToEnum(stringValue) ?? default; + return global::AI21.AuthenticationTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ToolDefinitionTypeJsonConverter : global::System.Text.Json.S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ToolDefinitionType)numValue; + return (global::AI21.AuthenticationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ToolDefinitionType); + return default(global::AI21.AuthenticationType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ToolDefinitionTypeJsonConverter : global::System.Text.Json.S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ToolDefinitionType value, + global::AI21.AuthenticationType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.ToolDefinitionTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.AuthenticationTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationTypeNullable.g.cs similarity index 78% rename from src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionTypeNullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationTypeNullable.g.cs index 0cfb120..72c0593 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ToolDefinitionTypeNullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.AuthenticationTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ToolDefinitionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AuthenticationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ToolDefinitionType? Read( + public override global::AI21.AuthenticationType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ToolDefinitionTypeNullableJsonConverter : global::System.Tex var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ToolDefinitionTypeExtensions.ToEnum(stringValue); + return global::AI21.AuthenticationTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ToolDefinitionTypeNullableJsonConverter : global::System.Tex case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ToolDefinitionType)numValue; + return (global::AI21.AuthenticationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ToolDefinitionType?); + return default(global::AI21.AuthenticationType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ToolDefinitionTypeNullableJsonConverter : global::System.Tex /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ToolDefinitionType? value, + global::AI21.AuthenticationType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.ToolDefinitionTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.AuthenticationTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevel.g.cs similarity index 69% rename from src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadType.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevel.g.cs index 7f3ec88..2fe0262 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadType.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevel.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class MaestroPayloadTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class BudgetLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.MaestroPayloadType Read( + public override global::AI21.BudgetLevel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class MaestroPayloadTypeJsonConverter : global::System.Text.Json.S var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.MaestroPayloadTypeExtensions.ToEnum(stringValue) ?? default; + return global::AI21.BudgetLevelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class MaestroPayloadTypeJsonConverter : global::System.Text.Json.S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.MaestroPayloadType)numValue; + return (global::AI21.BudgetLevel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.MaestroPayloadType); + return default(global::AI21.BudgetLevel); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class MaestroPayloadTypeJsonConverter : global::System.Text.Json.S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.MaestroPayloadType value, + global::AI21.BudgetLevel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.MaestroPayloadTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.BudgetLevelExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevelNullable.g.cs similarity index 71% rename from src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadTypeNullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevelNullable.g.cs index 3012566..89c6920 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.MaestroPayloadTypeNullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.BudgetLevelNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class MaestroPayloadTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class BudgetLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.MaestroPayloadType? Read( + public override global::AI21.BudgetLevel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class MaestroPayloadTypeNullableJsonConverter : global::System.Tex var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.MaestroPayloadTypeExtensions.ToEnum(stringValue); + return global::AI21.BudgetLevelExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class MaestroPayloadTypeNullableJsonConverter : global::System.Tex case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.MaestroPayloadType)numValue; + return (global::AI21.BudgetLevel)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.MaestroPayloadType?); + return default(global::AI21.BudgetLevel?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class MaestroPayloadTypeNullableJsonConverter : global::System.Tex /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.MaestroPayloadType? value, + global::AI21.BudgetLevel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.MaestroPayloadTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.BudgetLevelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariant.g.cs similarity index 78% rename from src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariant.g.cs index df9591f..96802cf 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariant.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class CreateMaestroRunsPayloadTool2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateMaestroRunsPayloadVariantJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.CreateMaestroRunsPayloadTool2 Read( + public override global::AI21.CreateMaestroRunsPayloadVariant Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateMaestroRunsPayloadTool2JsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.CreateMaestroRunsPayloadTool2Extensions.ToEnum(stringValue) ?? default; + return global::AI21.CreateMaestroRunsPayloadVariantExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateMaestroRunsPayloadTool2JsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.CreateMaestroRunsPayloadTool2)numValue; + return (global::AI21.CreateMaestroRunsPayloadVariant)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.CreateMaestroRunsPayloadTool2); + return default(global::AI21.CreateMaestroRunsPayloadVariant); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateMaestroRunsPayloadTool2JsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.CreateMaestroRunsPayloadTool2 value, + global::AI21.CreateMaestroRunsPayloadVariant value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.CreateMaestroRunsPayloadTool2Extensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.CreateMaestroRunsPayloadVariantExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2Nullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariantNullable.g.cs similarity index 79% rename from src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2Nullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariantNullable.g.cs index d74cf99..7935116 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadTool2Nullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.CreateMaestroRunsPayloadVariantNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class CreateMaestroRunsPayloadTool2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateMaestroRunsPayloadVariantNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.CreateMaestroRunsPayloadTool2? Read( + public override global::AI21.CreateMaestroRunsPayloadVariant? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateMaestroRunsPayloadTool2NullableJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.CreateMaestroRunsPayloadTool2Extensions.ToEnum(stringValue); + return global::AI21.CreateMaestroRunsPayloadVariantExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateMaestroRunsPayloadTool2NullableJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.CreateMaestroRunsPayloadTool2)numValue; + return (global::AI21.CreateMaestroRunsPayloadVariant)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.CreateMaestroRunsPayloadTool2?); + return default(global::AI21.CreateMaestroRunsPayloadVariant?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateMaestroRunsPayloadTool2NullableJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.CreateMaestroRunsPayloadTool2? value, + global::AI21.CreateMaestroRunsPayloadVariant? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.CreateMaestroRunsPayloadTool2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.CreateMaestroRunsPayloadVariantExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterMode.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterMode.g.cs new file mode 100644 index 0000000..e1036db --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceLabelsFilterModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceLabelsFilterMode 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::AI21.FileSearchToolResourceLabelsFilterModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceLabelsFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceLabelsFilterMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceLabelsFilterMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.FileSearchToolResourceLabelsFilterModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeNullable.g.cs new file mode 100644 index 0000000..514898f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceLabelsFilterModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceLabelsFilterMode? 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::AI21.FileSearchToolResourceLabelsFilterModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceLabelsFilterMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceLabelsFilterMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceLabelsFilterMode? 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::AI21.FileSearchToolResourceLabelsFilterModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguage.g.cs new file mode 100644 index 0000000..b0ad8af --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceResponseLanguage 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::AI21.FileSearchToolResourceResponseLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceResponseLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceResponseLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.FileSearchToolResourceResponseLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguageNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguageNullable.g.cs new file mode 100644 index 0000000..c9e7790 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceResponseLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceResponseLanguage? 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::AI21.FileSearchToolResourceResponseLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceResponseLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceResponseLanguage? 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::AI21.FileSearchToolResourceResponseLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceType.g.cs new file mode 100644 index 0000000..26e844b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceType 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::AI21.FileSearchToolResourceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.FileSearchToolResourceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceTypeNullable.g.cs new file mode 100644 index 0000000..533cf67 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.FileSearchToolResourceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class FileSearchToolResourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.FileSearchToolResourceType? 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::AI21.FileSearchToolResourceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.FileSearchToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.FileSearchToolResourceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.FileSearchToolResourceType? 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::AI21.FileSearchToolResourceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategy.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguage.g.cs similarity index 63% rename from src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategy.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguage.g.cs index 2580027..6666010 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategy.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguage.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ConversationalRagConfigRetrievalStrategyJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GenerateAssistantResponseResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ConversationalRagConfigRetrievalStrategy Read( + public override global::AI21.GenerateAssistantResponseResponseLanguage Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ConversationalRagConfigRetrievalStrategyJsonConverter : glob var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ConversationalRagConfigRetrievalStrategyExtensions.ToEnum(stringValue) ?? default; + return global::AI21.GenerateAssistantResponseResponseLanguageExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ConversationalRagConfigRetrievalStrategyJsonConverter : glob case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ConversationalRagConfigRetrievalStrategy)numValue; + return (global::AI21.GenerateAssistantResponseResponseLanguage)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ConversationalRagConfigRetrievalStrategy); + return default(global::AI21.GenerateAssistantResponseResponseLanguage); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ConversationalRagConfigRetrievalStrategyJsonConverter : glob /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ConversationalRagConfigRetrievalStrategy value, + global::AI21.GenerateAssistantResponseResponseLanguage value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.ConversationalRagConfigRetrievalStrategyExtensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.GenerateAssistantResponseResponseLanguageExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguageNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguageNullable.g.cs similarity index 65% rename from src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguageNullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguageNullable.g.cs index 63b5b10..75dd64c 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguageNullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.GenerateAssistantResponseResponseLanguageNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ConversationalRagConfigResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GenerateAssistantResponseResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ConversationalRagConfigResponseLanguage? Read( + public override global::AI21.GenerateAssistantResponseResponseLanguage? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ConversationalRagConfigResponseLanguageNullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ConversationalRagConfigResponseLanguageExtensions.ToEnum(stringValue); + return global::AI21.GenerateAssistantResponseResponseLanguageExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ConversationalRagConfigResponseLanguageNullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ConversationalRagConfigResponseLanguage)numValue; + return (global::AI21.GenerateAssistantResponseResponseLanguage)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ConversationalRagConfigResponseLanguage?); + return default(global::AI21.GenerateAssistantResponseResponseLanguage?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ConversationalRagConfigResponseLanguageNullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ConversationalRagConfigResponseLanguage? value, + global::AI21.GenerateAssistantResponseResponseLanguage? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.ConversationalRagConfigResponseLanguageExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.GenerateAssistantResponseResponseLanguageExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersType.g.cs new file mode 100644 index 0000000..5f581d4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class HTTPToolFunctionParametersTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.HTTPToolFunctionParametersType 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::AI21.HTTPToolFunctionParametersTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.HTTPToolFunctionParametersType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.HTTPToolFunctionParametersType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.HTTPToolFunctionParametersType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.HTTPToolFunctionParametersTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersTypeNullable.g.cs new file mode 100644 index 0000000..429f5c9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolFunctionParametersTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class HTTPToolFunctionParametersTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.HTTPToolFunctionParametersType? 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::AI21.HTTPToolFunctionParametersTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.HTTPToolFunctionParametersType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.HTTPToolFunctionParametersType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.HTTPToolFunctionParametersType? 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::AI21.HTTPToolFunctionParametersTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceType.g.cs new file mode 100644 index 0000000..a7a50ee --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class HTTPToolResourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.HTTPToolResourceType 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::AI21.HTTPToolResourceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.HTTPToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.HTTPToolResourceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.HTTPToolResourceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.HTTPToolResourceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceTypeNullable.g.cs new file mode 100644 index 0000000..02c8981 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.HTTPToolResourceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class HTTPToolResourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.HTTPToolResourceType? 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::AI21.HTTPToolResourceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.HTTPToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.HTTPToolResourceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.HTTPToolResourceType? 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::AI21.HTTPToolResourceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs similarity index 60% rename from src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguage.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs index c73927b..97a5839 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigResponseLanguage.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ConversationalRagConfigResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class LanguageStudioApiServerDataTypesChatToolDefinitionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ConversationalRagConfigResponseLanguage Read( + public override global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ConversationalRagConfigResponseLanguageJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ConversationalRagConfigResponseLanguageExtensions.ToEnum(stringValue) ?? default; + return global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ConversationalRagConfigResponseLanguageJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ConversationalRagConfigResponseLanguage)numValue; + return (global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ConversationalRagConfigResponseLanguage); + return default(global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ConversationalRagConfigResponseLanguageJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ConversationalRagConfigResponseLanguage value, + global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::AI21.ConversationalRagConfigResponseLanguageExtensions.ToValueString(value)); + writer.WriteStringValue(global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeNullable.g.cs similarity index 63% rename from src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyNullable.g.cs rename to src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeNullable.g.cs index 44ad88b..df34fb6 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyNullable.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace AI21.JsonConverters { /// - public sealed class ConversationalRagConfigRetrievalStrategyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class LanguageStudioApiServerDataTypesChatToolDefinitionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::AI21.ConversationalRagConfigRetrievalStrategy? Read( + public override global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ConversationalRagConfigRetrievalStrategyNullableJsonConverte var stringValue = reader.GetString(); if (stringValue != null) { - return global::AI21.ConversationalRagConfigRetrievalStrategyExtensions.ToEnum(stringValue); + return global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ConversationalRagConfigRetrievalStrategyNullableJsonConverte case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::AI21.ConversationalRagConfigRetrievalStrategy)numValue; + return (global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::AI21.ConversationalRagConfigRetrievalStrategy?); + return default(global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ConversationalRagConfigRetrievalStrategyNullableJsonConverte /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::AI21.ConversationalRagConfigRetrievalStrategy? value, + global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::AI21.ConversationalRagConfigRetrievalStrategyExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs new file mode 100644 index 0000000..415c2d1 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs @@ -0,0 +1,99 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace AI21.JsonConverters +{ + /// + public class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::AI21.HTTPToolResource? http = default; + if (discriminator?.Type == global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Http) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.HTTPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::AI21.HTTPToolResource)}"); + http = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::AI21.MCPToolResource? mcp = default; + if (discriminator?.Type == global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Mcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.MCPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::AI21.MCPToolResource)}"); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::AI21.FileSearchToolResource? fileSearch = default; + if (discriminator?.Type == global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.FileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.FileSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::AI21.FileSearchToolResource)}"); + fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::AI21.WebSearchToolResource? webSearch = default; + if (discriminator?.Type == global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.WebSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.WebSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::AI21.WebSearchToolResource)}"); + webSearch = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var result = new global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition( + discriminator?.Type, + http, + mcp, + fileSearch, + webSearch + ); + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsHttp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.HTTPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.HTTPToolResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http, typeInfo); + } + else if (value.IsMcp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.MCPToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.MCPToolResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp, typeInfo); + } + else if (value.IsFileSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.FileSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.FileSearchToolResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch, typeInfo); + } + else if (value.IsWebSearch) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AI21.WebSearchToolResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AI21.WebSearchToolResource).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs new file mode 100644 index 0000000..8f10bce --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..940a5f9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceType.g.cs new file mode 100644 index 0000000..6b793fe --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class MCPToolResourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.MCPToolResourceType 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::AI21.MCPToolResourceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.MCPToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.MCPToolResourceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.MCPToolResourceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.MCPToolResourceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceTypeNullable.g.cs new file mode 100644 index 0000000..426ee22 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.MCPToolResourceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class MCPToolResourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.MCPToolResourceType? 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::AI21.MCPToolResourceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.MCPToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.MCPToolResourceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.MCPToolResourceType? 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::AI21.MCPToolResourceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguage.g.cs new file mode 100644 index 0000000..fc36754 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class ModifyAssistantRequestResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.ModifyAssistantRequestResponseLanguage 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::AI21.ModifyAssistantRequestResponseLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.ModifyAssistantRequestResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.ModifyAssistantRequestResponseLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.ModifyAssistantRequestResponseLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.ModifyAssistantRequestResponseLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguageNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguageNullable.g.cs new file mode 100644 index 0000000..4c42c41 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.ModifyAssistantRequestResponseLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class ModifyAssistantRequestResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.ModifyAssistantRequestResponseLanguage? 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::AI21.ModifyAssistantRequestResponseLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.ModifyAssistantRequestResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.ModifyAssistantRequestResponseLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.ModifyAssistantRequestResponseLanguage? 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::AI21.ModifyAssistantRequestResponseLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.QueryFilter.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.QueryFilter.g.cs index 8a56d11..7703f62 100644 --- a/src/libs/AI21/Generated/AI21.JsonConverters.QueryFilter.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonConverters.QueryFilter.g.cs @@ -17,24 +17,24 @@ public class QueryFilterJsonConverter : global::System.Text.Json.Serialization.J var readerCopy = reader; - object? value1 = default; + object? comparisonOperator = default; try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + comparisonOperator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } readerCopy = reader; - global::System.Collections.Generic.Dictionary>? value2 = default; + global::System.Collections.Generic.Dictionary>? logicalOperator = default; try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary>).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + logicalOperator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -53,18 +53,18 @@ public class QueryFilterJsonConverter : global::System.Text.Json.Serialization.J } var result = new global::AI21.QueryFilter( - value1, - value2, + comparisonOperator, + logicalOperator, value3 ); - if (value1 != null) + if (comparisonOperator != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - else if (value2 != null) + else if (logicalOperator != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary>).Name}"); @@ -89,17 +89,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsComparisonOperator) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonOperator, typeInfo); } - else if (value.IsValue2) + else if (value.IsLogicalOperator) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.Dictionary>).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LogicalOperator, typeInfo); } else if (value.IsValue3) { diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguage.g.cs new file mode 100644 index 0000000..1a0d2d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class RunAssistantRequestResponseLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.RunAssistantRequestResponseLanguage 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::AI21.RunAssistantRequestResponseLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.RunAssistantRequestResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.RunAssistantRequestResponseLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.RunAssistantRequestResponseLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.RunAssistantRequestResponseLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguageNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguageNullable.g.cs new file mode 100644 index 0000000..6d858ae --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.RunAssistantRequestResponseLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class RunAssistantRequestResponseLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.RunAssistantRequestResponseLanguage? 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::AI21.RunAssistantRequestResponseLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.RunAssistantRequestResponseLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.RunAssistantRequestResponseLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.RunAssistantRequestResponseLanguage? 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::AI21.RunAssistantRequestResponseLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimization.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimization.g.cs new file mode 100644 index 0000000..c068a88 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimization.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class RunOptimizationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.RunOptimization 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::AI21.RunOptimizationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.RunOptimization)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.RunOptimization); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.RunOptimization value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.RunOptimizationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimizationNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimizationNullable.g.cs new file mode 100644 index 0000000..1fd5eb7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.RunOptimizationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class RunOptimizationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.RunOptimization? 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::AI21.RunOptimizationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.RunOptimization)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.RunOptimization?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.RunOptimization? 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::AI21.RunOptimizationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.Visibility.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.Visibility.g.cs new file mode 100644 index 0000000..9f092d0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.Visibility.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class VisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.Visibility 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::AI21.VisibilityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.Visibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.Visibility); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.Visibility value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.VisibilityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.VisibilityNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.VisibilityNullable.g.cs new file mode 100644 index 0000000..b16eeee --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.VisibilityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class VisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.Visibility? 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::AI21.VisibilityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.Visibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.Visibility?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.Visibility? 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::AI21.VisibilityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceType.g.cs new file mode 100644 index 0000000..68e5b14 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class WebSearchToolResourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.WebSearchToolResourceType 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::AI21.WebSearchToolResourceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.WebSearchToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.WebSearchToolResourceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.WebSearchToolResourceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AI21.WebSearchToolResourceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceTypeNullable.g.cs b/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceTypeNullable.g.cs new file mode 100644 index 0000000..2b1a1d9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.JsonConverters.WebSearchToolResourceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AI21.JsonConverters +{ + /// + public sealed class WebSearchToolResourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AI21.WebSearchToolResourceType? 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::AI21.WebSearchToolResourceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AI21.WebSearchToolResourceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AI21.WebSearchToolResourceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AI21.WebSearchToolResourceType? 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::AI21.WebSearchToolResourceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs b/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs index 65b8b0e..65959f8 100644 --- a/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs +++ b/src/libs/AI21/Generated/AI21.JsonSerializerContextTypes.g.cs @@ -14,10 +14,12 @@ public sealed partial class JsonSerializerContextTypes /// /// public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } + /// /// /// public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } + /// /// /// @@ -58,726 +60,1051 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type8 { get; set; } + public global::System.Collections.Generic.IList? Type8 { get; set; } + /// + /// + /// + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition? Type9 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolResource? Type10 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolResourceType? Type11 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolFunction? Type12 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolFunctionParameters? Type13 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolFunctionParametersType? Type14 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type15 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolFunctionParamProperties? Type16 { get; set; } + /// + /// + /// + public global::AI21.HTTPToolEndpoint? Type17 { get; set; } + /// + /// + /// + public object? Type18 { get; set; } + /// + /// + /// + public global::AI21.MCPToolResource? Type19 { get; set; } + /// + /// + /// + public global::AI21.MCPToolResourceType? Type20 { get; set; } + /// + /// + /// + public global::AI21.FileSearchToolResource? Type21 { get; set; } + /// + /// + /// + public global::AI21.FileSearchToolResourceType? Type22 { get; set; } + /// + /// + /// + public double? Type23 { get; set; } + /// + /// + /// + public global::AI21.FileSearchToolResourceLabelsFilterMode? Type24 { get; set; } + /// + /// + /// + public global::AI21.QueryFilter? Type25 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>? Type26 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type27 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type28 { get; set; } + /// + /// + /// + public global::AI21.RetrievalStrategy? Type29 { get; set; } + /// + /// + /// + public int? Type30 { get; set; } + /// + /// + /// + public global::AI21.FileSearchToolResourceResponseLanguage? Type31 { get; set; } + /// + /// + /// + public global::AI21.WebSearchToolResource? Type32 { get; set; } + /// + /// + /// + public global::AI21.WebSearchToolResourceType? Type33 { get; set; } + /// + /// + /// + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator? Type34 { get; set; } + /// + /// + /// + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? Type35 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type36 { get; set; } + /// + /// + /// + public global::AI21.LanguageStudioApiServerDataTypesAssistantRequirement? Type37 { get; set; } + /// + /// + /// + public global::AI21.BudgetLevel? Type38 { get; set; } + /// + /// + /// + public global::AI21.Visibility? Type39 { get; set; } + /// + /// + /// + public global::AI21.AssistantType? Type40 { get; set; } + /// + /// + /// + public global::AI21.AssistantResponseLanguage? Type41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type42 { get; set; } + /// + /// + /// + public global::AI21.StarterQuestion? Type43 { get; set; } + /// + /// + /// + public global::AI21.WorkflowConfig? Type44 { get; set; } + /// + /// + /// + public global::AI21.AssistantBasicInfo? Type45 { get; set; } + /// + /// + /// + public global::AI21.AssistantMessage? Type46 { get; set; } + /// + /// + /// + public global::AI21.AssistantMessageRole? Type47 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type48 { get; set; } + /// + /// + /// + public global::AI21.ToolCall? Type49 { get; set; } + /// + /// + /// + public global::AI21.ToolCallType? Type50 { get; set; } + /// + /// + /// + public global::AI21.ToolFunction? Type51 { get; set; } + /// + /// + /// + public global::AI21.AssistantRoute? Type52 { get; set; } + /// + /// + /// + public global::AI21.AssistantsByMcpResponse? Type53 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type54 { get; set; } + /// + /// + /// + public global::AI21.AuthenticationType? Type55 { get; set; } + /// + /// + /// + public global::AI21.BodyConvertDocumentFileStudioV1ChatFilesConvertPost? Type56 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type57 { get; set; } + /// + /// + /// + public byte[]? Type58 { get; set; } + /// + /// + /// + public global::AI21.BodyParsePdfStudioV1DemosDocumentModifierParsePdfPost? Type59 { get; set; } + /// + /// + /// + public global::AI21.BodyProcessRfiDocumentStudioV1DemosRfiProcessRfiPost? Type60 { get; set; } + /// + /// + /// + public global::AI21.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost? Type61 { get; set; } + /// + /// + /// + public global::AI21.BodyV1LibraryUpload? Type62 { get; set; } + /// + /// + /// + public global::AI21.UploadMode? Type63 { get; set; } + /// + /// + /// + public global::AI21.ChatCompletion? Type64 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type65 { get; set; } + /// + /// + /// + public global::AI21.ChatCompletionResponseChoice? Type66 { get; set; } + /// + /// + /// + public global::AI21.Logprobs? Type67 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type68 { get; set; } + /// + /// + /// + public global::AI21.LogprobsData? Type69 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type9 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::AI21.AssistantTool2? Type10 { get; set; } + public global::AI21.TopLogprobsData? Type71 { get; set; } /// /// /// - public global::AI21.AssistantToolResource? Type11 { get; set; } + public global::AI21.UsageInfo? Type72 { get; set; } /// /// /// - public object? Type12 { get; set; } + public global::AI21.ChatCompletionResponseDeltaChoice? Type73 { get; set; } /// /// /// - public global::AI21.AssistantMessage? Type13 { get; set; } + public global::AI21.AnyOf? Type74 { get; set; } /// /// /// - public global::AI21.AssistantMessageRole? Type14 { get; set; } + public global::AI21.ChatStreamingFirstDelta? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type15 { get; set; } + public global::AI21.ChatStreamingFirstDeltaRole? Type76 { get; set; } /// /// /// - public global::AI21.ToolCall? Type16 { get; set; } + public global::AI21.ChatStreamingContentDelta? Type77 { get; set; } /// /// /// - public global::AI21.ToolCallType? Type17 { get; set; } + public global::AI21.ChatStreamingToolCallsFirstDelta? Type78 { get; set; } /// /// /// - public global::AI21.ToolFunction? Type18 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::AI21.AssistantRoute? Type19 { get; set; } + public global::AI21.ToolCallDeltaStart? Type80 { get; set; } /// /// /// - public global::AI21.BodyConvertDocumentFileStudioV1ChatFilesConvertPost? Type20 { get; set; } + public global::AI21.ToolCallDeltaStartType? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type21 { get; set; } + public global::AI21.ToolFunctionDeltaStart? Type82 { get; set; } /// /// /// - public byte[]? Type22 { get; set; } + public global::AI21.ChatStreamingToolCallsDelta? Type83 { get; set; } /// /// /// - public global::AI21.BodyParsePdfStudioV1DemosDocumentModifierParsePdfPost? Type23 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::AI21.BodyProcessRfiDocumentStudioV1DemosRfiProcessRfiPost? Type24 { get; set; } + public global::AI21.ToolCallDelta? Type85 { get; set; } /// /// /// - public global::AI21.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost? Type25 { get; set; } + public global::AI21.ToolFunctionDelta? Type86 { get; set; } /// /// /// - public global::AI21.BodyV1LibraryUpload? Type26 { get; set; } + public global::AI21.ChatCompletionVllmStreamingMessage? Type87 { get; set; } /// /// /// - public global::AI21.UploadMode? Type27 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// - public global::AI21.ChatCompletion? Type28 { get; set; } + public global::AI21.ChatRequest? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public global::AI21.ModelName? Type90 { get; set; } /// /// /// - public global::AI21.ChatCompletionResponseChoice? Type30 { get; set; } + public global::System.Collections.Generic.IList? Type91 { get; set; } /// /// /// - public int? Type31 { get; set; } + public global::AI21.MessagesItem? Type92 { get; set; } /// /// /// - public global::AI21.Logprobs? Type32 { get; set; } + public global::AI21.UserMessage? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type33 { get; set; } + public global::AI21.UserMessageRole? Type94 { get; set; } /// /// /// - public global::AI21.LogprobsData? Type34 { get; set; } + public global::AI21.ToolMessage? Type95 { get; set; } /// /// /// - public double? Type35 { get; set; } + public global::AI21.ToolMessageRole? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::AI21.SystemMessage? Type97 { get; set; } /// /// /// - public global::AI21.TopLogprobsData? Type37 { get; set; } + public global::AI21.SystemMessageRole? Type98 { get; set; } /// /// /// - public global::AI21.UsageInfo? Type38 { get; set; } + public global::AI21.ChatRequestMessageDiscriminator? Type99 { get; set; } /// /// /// - public global::AI21.ChatCompletionResponseDeltaChoice? Type39 { get; set; } + public global::AI21.ChatRequestMessageDiscriminatorRole? Type100 { get; set; } /// /// /// - public global::AI21.AnyOf? Type40 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::AI21.ChatStreamingFirstDelta? Type41 { get; set; } + public global::AI21.LanguageStudioApiServerDataTypesChatToolDefinition? Type102 { get; set; } /// /// /// - public global::AI21.ChatStreamingFirstDeltaRole? Type42 { get; set; } + public global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType? Type103 { get; set; } /// /// /// - public global::AI21.ChatStreamingContentDelta? Type43 { get; set; } + public global::AI21.FunctionToolDefinition? Type104 { get; set; } /// /// /// - public global::AI21.ChatStreamingToolCallsFirstDelta? Type44 { get; set; } + public global::AI21.ToolParameters? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::AI21.ToolParametersType? Type106 { get; set; } /// /// /// - public global::AI21.ToolCallDeltaStart? Type46 { get; set; } + public global::AI21.AnyOf>? Type107 { get; set; } /// /// /// - public global::AI21.ToolCallDeltaStartType? Type47 { get; set; } + public global::AI21.MockResponseConfig? Type108 { get; set; } /// /// /// - public global::AI21.ToolFunctionDeltaStart? Type48 { get; set; } + public global::System.Collections.Generic.IList? Type109 { get; set; } /// /// /// - public global::AI21.ChatStreamingToolCallsDelta? Type49 { get; set; } + public global::AI21.DocumentSchema? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type50 { get; set; } + public global::System.Collections.Generic.Dictionary? Type111 { get; set; } /// /// /// - public global::AI21.ToolCallDelta? Type51 { get; set; } + public global::AI21.ResponseFormat? Type112 { get; set; } /// /// /// - public global::AI21.ToolFunctionDelta? Type52 { get; set; } + public global::AI21.ResponseFormatType? Type113 { get; set; } /// /// /// - public global::AI21.ChatCompletionVllmStreamingMessage? Type53 { get; set; } + public global::AI21.CompareTextRequest? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type54 { get; set; } + public global::AI21.ConnectorConnectionStatus? Type115 { get; set; } /// /// /// - public global::AI21.ChatRequest? Type55 { get; set; } + public global::AI21.ParagonSyncStatus? Type116 { get; set; } /// /// /// - public global::AI21.ModelName? Type56 { get; set; } + public global::AI21.ConnectorsDataSources? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::AI21.MessagesItem? Type58 { get; set; } + public global::AI21.DataSourceMetadata? Type119 { get; set; } /// /// /// - public global::AI21.UserMessage? Type59 { get; set; } + public global::AI21.ConnectorsStatus? Type120 { get; set; } /// /// /// - public global::AI21.UserMessageRole? Type60 { get; set; } + public global::AI21.ConnectorsWorkflowStatus? Type121 { get; set; } /// /// /// - public global::AI21.ToolMessage? Type61 { get; set; } + public global::AI21.ConnectorsSyncParams? Type122 { get; set; } /// /// /// - public global::AI21.ToolMessageRole? Type62 { get; set; } + public global::AI21.ConnectorsToken? Type123 { get; set; } /// /// /// - public global::AI21.SystemMessage? Type63 { get; set; } + public global::AI21.CreateAssistantRequest? Type124 { get; set; } /// /// /// - public global::AI21.SystemMessageRole? Type64 { get; set; } + public global::AI21.CreateMCPStorageRequest? Type125 { get; set; } /// /// /// - public global::AI21.ChatRequestMessageDiscriminator? Type65 { get; set; } + public global::AI21.CreateMaestroRunsPayload? Type126 { get; set; } /// /// /// - public global::AI21.ChatRequestMessageDiscriminatorRole? Type66 { get; set; } + public global::AI21.AnyOf, string>? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::AI21.ToolDefinition? Type68 { get; set; } + public global::AI21.Message? Type129 { get; set; } /// /// /// - public global::AI21.ToolDefinitionType? Type69 { get; set; } + public global::AI21.MessageRole? Type130 { get; set; } /// /// /// - public global::AI21.FunctionToolDefinition? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// /// /// - public global::AI21.ToolParameters? Type71 { get; set; } + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement? Type132 { get; set; } /// /// /// - public global::AI21.ToolParametersType? Type72 { get; set; } + public global::AI21.CreateMaestroRunsPayloadBudget? Type133 { get; set; } /// /// /// - public global::AI21.AnyOf>? Type73 { get; set; } + public global::AI21.CreateMaestroRunsPayloadVariant? Type134 { get; set; } /// /// /// - public global::AI21.MockResponseConfig? Type74 { get; set; } + public global::AI21.CreateMaestroRunsPayloadResponseLanguage? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type75 { get; set; } + public global::AI21.CreateOrganizationSchemaRequest? Type136 { get; set; } /// /// /// - public global::AI21.DocumentSchema? Type76 { get; set; } + public global::AI21.CreatePlanPayload? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type77 { get; set; } + public global::AI21.CreateRoutePayload? Type138 { get; set; } /// /// /// - public global::AI21.ResponseFormat? Type78 { get; set; } + public global::AI21.CreateSecretPayload? Type139 { get; set; } /// /// /// - public global::AI21.ResponseFormatType? Type79 { get; set; } + public global::AI21.DeleteAssistantResponse? Type140 { get; set; } /// /// /// - public global::AI21.CompareTextRequest? Type80 { get; set; } + public global::AI21.DeleteMCPStorageResponse? Type141 { get; set; } /// /// /// - public global::AI21.ConnectorConnectionStatus? Type81 { get; set; } + public global::AI21.Demo? Type142 { get; set; } /// /// /// - public global::AI21.ParagonSyncStatus? Type82 { get; set; } + public global::AI21.DemoVisibility? Type143 { get; set; } /// /// /// - public global::AI21.ConnectorsDataSources? Type83 { get; set; } + public global::AI21.DemoStatus? Type144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::AI21.DemoCreate? Type145 { get; set; } /// /// /// - public global::AI21.DataSourceMetadata? Type85 { get; set; } + public global::AI21.DemoUpdate? Type146 { get; set; } /// /// /// - public global::AI21.ConnectorsStatus? Type86 { get; set; } + public global::AI21.DetectSchemaRequest? Type147 { get; set; } /// /// /// - public global::AI21.ConnectorsWorkflowStatus? Type87 { get; set; } + public global::System.Collections.Generic.IList? Type148 { get; set; } /// /// /// - public global::AI21.ConnectorsSyncParams? Type88 { get; set; } + public global::AI21.DocumentReference? Type149 { get; set; } /// /// /// - public global::AI21.ConnectorsToken? Type89 { get; set; } + public global::AI21.DetectSchemaResponse? Type150 { get; set; } /// /// /// - public global::AI21.ConvRagExecuteRequest? Type90 { get; set; } + public global::AI21.DownloadModifiedDocumentRequest? Type151 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfig? Type91 { get; set; } + public global::AI21.FileResponse? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::AI21.FileStatus? Type153 { get; set; } /// /// /// - public global::AI21.Message? Type93 { get; set; } + public global::AI21.FilesUpdateRequest? Type154 { get; set; } /// /// /// - public global::AI21.MessageRole? Type94 { get; set; } + public global::AI21.GenerateAssistantRequest? Type155 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfigRetrievalStrategy? Type95 { get; set; } + public global::AI21.GenerateAssistantResponse? Type156 { get; set; } /// /// /// - public global::AI21.ConversationalRagConfigResponseLanguage? Type96 { get; set; } + public global::AI21.GenerateAssistantResponseResponseLanguage? Type157 { get; set; } /// /// /// - public global::AI21.ConversationalRagResult? Type97 { get; set; } + public global::AI21.HTTPValidationError? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::AI21.ConversationalRagSource? Type99 { get; set; } + public global::AI21.ValidationError? Type160 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayload? Type100 { get; set; } + public global::System.Collections.Generic.IList>? Type161 { get; set; } /// /// /// - public global::AI21.AnyOf, string>? Type101 { get; set; } + public global::AI21.AnyOf? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type102 { get; set; } + public global::AI21.IgnestionBatchStatusCount? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type103 { get; set; } + public global::AI21.IngestionBatchStatusResponse? Type164 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayloadTool2? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::AI21.ToolResources? Type105 { get; set; } + public global::AI21.JambaExecuteRequest? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::AI21.LibrarySearchRequest? Type167 { get; set; } /// /// /// - public global::AI21.Requirement? Type107 { get; set; } + public global::AI21.LibrarySearchRequestLabelsFilterMode? Type168 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayloadBudget? Type108 { get; set; } + public global::AI21.ListAssistantsResponse? Type169 { get; set; } /// /// /// - public global::AI21.MaestroPayloadType? Type109 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::AI21.ListMCPsStorageResponse? Type171 { get; set; } /// /// /// - public global::AI21.CreateMaestroRunsPayloadResponseLanguage? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::AI21.CreateOrganizationSchemaRequest? Type112 { get; set; } + public global::AI21.MCPStorageResponse? Type173 { get; set; } /// /// /// - public global::AI21.CreatePlanPayload? Type113 { get; set; } + public global::AI21.ListPlansResponse? Type174 { get; set; } /// /// /// - public global::AI21.CreateRoutePayload? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::AI21.CreateSecretPayload? Type115 { get; set; } + public global::AI21.Plan? Type176 { get; set; } /// /// /// - public global::AI21.DeleteAssistantResponse? Type116 { get; set; } + public global::AI21.ListRoutesResponse? Type177 { get; set; } /// /// /// - public global::AI21.Demo? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::AI21.DemoVisibility? Type118 { get; set; } + public global::AI21.MCPDefinition? Type179 { get; set; } /// /// /// - public global::AI21.DemoStatus? Type119 { get; set; } + public global::AI21.MCPDiscoveryResponse? Type180 { get; set; } /// /// /// - public global::AI21.DemoCreate? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::AI21.DemoUpdate? Type121 { get; set; } + public global::AI21.MCPTool? Type182 { get; set; } /// /// /// - public global::AI21.DetectSchemaRequest? Type122 { get; set; } + public global::AI21.MaestroRunError? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::AI21.MaestroRunResult? Type184 { get; set; } /// /// /// - public global::AI21.DocumentReference? Type124 { get; set; } + public global::AI21.MaestroRunResultStatus? Type185 { get; set; } /// /// /// - public global::AI21.DetectSchemaResponse? Type125 { get; set; } + public global::AI21.MarkdownRequest? Type186 { get; set; } /// /// /// - public global::AI21.DownloadModifiedDocumentRequest? Type126 { get; set; } + public global::AI21.ModelInfo? Type187 { get; set; } /// /// /// - public global::AI21.FileResponse? Type127 { get; set; } + public global::AI21.ModelQuantization? Type188 { get; set; } /// /// /// - public global::AI21.FileStatus? Type128 { get; set; } + public global::AI21.ModelPricing? Type189 { get; set; } /// /// /// - public global::AI21.FilesUpdateRequest? Type129 { get; set; } + public global::AI21.ModelsInfoResponse? Type190 { get; set; } /// /// /// - public global::AI21.HTTPValidationError? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::AI21.ModifyAssistantRequest? Type192 { get; set; } /// /// /// - public global::AI21.ValidationError? Type132 { get; set; } + public global::AI21.RunOptimization? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type133 { get; set; } + public global::AI21.ModifyAssistantRequestResponseLanguage? Type194 { get; set; } /// /// /// - public global::AI21.AnyOf? Type134 { get; set; } + public global::AI21.OrgSchema? Type195 { get; set; } /// /// /// - public global::AI21.IgnestionBatchStatusCount? Type135 { get; set; } + public global::AI21.OrgSchemas? Type196 { get; set; } /// /// /// - public global::AI21.IngestionBatchStatusResponse? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type137 { get; set; } + public global::AI21.RFIResponseSection? Type198 { get; set; } /// /// /// - public global::AI21.JambaExecuteRequest? Type138 { get; set; } + public global::AI21.RequirementItem? Type199 { get; set; } /// /// /// - public global::AI21.LibrarySearchRequest? Type139 { get; set; } + public global::AI21.RequirementsGenerationRequest? Type200 { get; set; } /// /// /// - public global::AI21.QueryFilter? Type140 { get; set; } + public global::AI21.RequirementsGenerationResponse? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type141 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type142 { get; set; } + public global::AI21.RunAssistantRequest? Type203 { get; set; } /// /// /// - public global::AI21.LibrarySearchRequestLabelsFilterMode? Type143 { get; set; } + public global::AI21.RunAssistantRequestResponseLanguage? Type204 { get; set; } /// /// /// - public global::AI21.RetrievalStrategy? Type144 { get; set; } + public global::AI21.SecretResponse? Type205 { get; set; } /// /// /// - public global::AI21.ListAssistantsResponse? Type145 { get; set; } + public global::AI21.ThreadNameGenerationRequest? Type206 { get; set; } + /// + /// + /// + public global::AI21.ThreadNameGenerationResponse? Type207 { get; set; } + /// + /// + /// + public global::AI21.UpdateMCPStorageRequest? Type208 { get; set; } + /// + /// + /// + public global::AI21.UpdateRoutePayload? Type209 { get; set; } + /// + /// + /// + public global::AI21.UpdateSecretPayload? Type210 { get; set; } + /// + /// + /// + public global::AI21.ValidationResult? Type211 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorCreateConfigPayload? Type212 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorIngestUrlPayload? Type213 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorIngestWebsitePayload? Type214 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorPayload? Type215 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorPayloadType? Type216 { get; set; } + /// + /// + /// + public global::AI21.WebsiteConnectorRetryIngestWebsitePayload? Type217 { get; set; } + /// + /// + /// + public global::AI21.WorkspaceModelResponse? Type218 { get; set; } + /// + /// + /// + public global::AI21.WorkspaceModelUpdate? Type219 { get; set; } + /// + /// + /// + public global::AI21.WorkspaceModelsResponse? Type220 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type221 { get; set; } + /// + /// + /// + public global::AI21.AnyOf>? Type222 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type223 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type224 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type225 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type226 { get; set; } + /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::AI21.AnyOf, global::System.Collections.Generic.List>? ListType0 { get; set; } /// /// /// - public global::AI21.ListPlansResponse? Type147 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::AI21.Plan? Type149 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::AI21.ListRoutesResponse? Type150 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::AI21.MaestroRunResult? Type152 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::AI21.MaestroRunResultStatus? Type153 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::AI21.MarkdownRequest? Type154 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::AI21.ModelInfo? Type155 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::AI21.ModelQuantization? Type156 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::AI21.ModelPricing? Type157 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::AI21.ModelsInfoResponse? Type158 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::AI21.OrgSchema? Type160 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::AI21.OrgSchemas? Type161 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::AI21.RFIResponseSection? Type163 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::AI21.RequirementItem? Type164 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::AI21.RequirementsGenerationRequest? Type165 { get; set; } + public global::AI21.AnyOf>? ListType19 { get; set; } /// /// /// - public global::AI21.RequirementsGenerationResponse? Type166 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::AI21.SecretResponse? Type168 { get; set; } + public global::AI21.AnyOf, string>? ListType22 { get; set; } /// /// /// - public global::AI21.ThreadNameGenerationRequest? Type169 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::AI21.ThreadNameGenerationResponse? Type170 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::AI21.UpdateRoutePayload? Type171 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::AI21.UpdateSecretPayload? Type172 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::AI21.ValidationResult? Type173 { get; set; } + public global::System.Collections.Generic.List>? ListType27 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorCreateConfigPayload? Type174 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorIngestUrlPayload? Type175 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorIngestWebsitePayload? Type176 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorPayload? Type177 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorPayloadType? Type178 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::AI21.WebsiteConnectorRetryIngestWebsitePayload? Type179 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::AI21.WorkspaceModelResponse? Type180 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::AI21.WorkspaceModelUpdate? Type181 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::AI21.WorkspaceModelsResponse? Type182 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::AI21.AnyOf>? Type184 { get; set; } + public global::AI21.AnyOf>? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs index 800e0e7..03b59b8 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs @@ -71,12 +71,12 @@ partial void ProcessV1LibraryManagementResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/library/files", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("name", name) - .AddOptionalParameter("path", path) - .AddOptionalParameter("status", status?.ToValueString()) - .AddOptionalParameter("label", label, delimiter: ",", explode: true) - .AddOptionalParameter("limit", limit?.ToString()) + __pathBuilder + .AddOptionalParameter("name", name) + .AddOptionalParameter("path", path) + .AddOptionalParameter("status", status?.ToValueString()) + .AddOptionalParameter("label", label, delimiter: ",", explode: true) + .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("offset", offset?.ToString()) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs index 692fd02..8d96ba2 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs @@ -40,6 +40,7 @@ partial void ProcessV1LibraryManagement3ResponseContent( /// public async global::System.Threading.Tasks.Task V1LibraryManagement3Async( global::System.Guid fileId, + global::AI21.FilesUpdateRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs index 2c22b8a..67b85fa 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs @@ -34,6 +34,7 @@ partial void ProcessV1LibraryUploadResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1LibraryUploadAsync( + global::AI21.BodyV1LibraryUpload request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -73,51 +74,70 @@ partial void ProcessV1LibraryUploadResponseContent( } } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), - name: "file", - fileName: request.Filename ?? string.Empty); + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } if (request.Path != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.Path}"), - name: "path"); + name: "\"path\""); } if (request.Labels != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.Labels, x => x))}]"), - name: "labels"); + name: "\"labels\""); } if (request.PublicUrl != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.PublicUrl}"), - name: "publicUrl"); + name: "\"publicUrl\""); } if (request.CustomConfigs != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.CustomConfigs}"), - name: "custom_configs"); + name: "\"custom_configs\""); } if (request.UploadMode != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.UploadMode?.ToValueString()}"), - name: "upload_mode"); + name: "\"upload_mode\""); } if (request.BatchId != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.BatchId}"), - name: "batch_id"); + name: "\"batch_id\""); } if (request.DataSource != default) { + __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.DataSource}"), - name: "data_source"); + name: "\"data_source\""); + } + if (request.Metadata != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{request.Metadata}"), + name: "\"metadata\""); } __httpRequest.Content = __httpRequestContent; @@ -266,6 +286,7 @@ partial void ProcessV1LibraryUploadResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1LibraryUploadAsync( @@ -278,6 +299,7 @@ partial void ProcessV1LibraryUploadResponseContent( global::AI21.UploadMode? uploadMode = default, global::System.Guid? batchId = default, string? dataSource = default, + string? metadata = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::AI21.BodyV1LibraryUpload @@ -291,6 +313,7 @@ partial void ProcessV1LibraryUploadResponseContent( UploadMode = uploadMode, BatchId = batchId, DataSource = dataSource, + Metadata = metadata, }; return await V1LibraryUploadAsync( diff --git a/src/libs/AI21/Generated/AI21.Models.Assistant.g.cs b/src/libs/AI21/Generated/AI21.Models.Assistant.g.cs index 2767991..369f237 100644 --- a/src/libs/AI21/Generated/AI21.Models.Assistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.Assistant.g.cs @@ -66,6 +66,12 @@ public sealed partial class Assistant [global::System.Text.Json.Serialization.JsonRequired] public required string OrganizationId { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public string? WorkspaceId { get; set; } + /// /// /// @@ -96,13 +102,71 @@ public sealed partial class Assistant /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] + public global::System.Collections.Generic.IList? Requirements { get; set; } + + /// + /// Default Value: medium + /// + [global::System.Text.Json.Serialization.JsonPropertyName("budget")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.BudgetLevelJsonConverter))] + public global::AI21.BudgetLevel? Budget { get; set; } + + /// + /// Default Value: public + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.VisibilityJsonConverter))] + public global::AI21.Visibility? Visibility { get; set; } + + /// + /// Default Value: default + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AssistantTypeJsonConverter))] + public global::AI21.AssistantType? AssistantType { get; set; } + + /// + /// Default Value: unset + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AssistantResponseLanguageJsonConverter))] + public global::AI21.AssistantResponseLanguage? ResponseLanguage { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_resources")] - public global::AI21.AssistantToolResource? ToolResources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("vibe_prompt")] + public string? VibePrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("starter_questions")] + public global::System.Collections.Generic.IList? StarterQuestions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workflow_config")] + public global::AI21.WorkflowConfig? WorkflowConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_overrides")] + public object? ConfigOverrides { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -125,6 +189,7 @@ public sealed partial class Assistant /// /// /// + /// /// /// /// @@ -132,7 +197,24 @@ public sealed partial class Assistant /// /// /// - /// + /// + /// + /// Default Value: medium + /// + /// + /// Default Value: public + /// + /// + /// Default Value: default + /// + /// + /// Default Value: unset + /// + /// + /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -146,11 +228,21 @@ public Assistant( string userId, string? description, string? optimization, + string? workspaceId, string? avatar, bool? isArchived, global::AI21.AnyOf, global::System.Collections.Generic.IList>? models, - global::System.Collections.Generic.IList>? tools, - global::AI21.AssistantToolResource? toolResources) + global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? requirements, + global::AI21.BudgetLevel? budget, + global::AI21.Visibility? visibility, + global::AI21.AssistantType? assistantType, + global::AI21.AssistantResponseLanguage? responseLanguage, + string? vibePrompt, + global::System.Collections.Generic.IList? starterQuestions, + string? systemPrompt, + global::AI21.WorkflowConfig? workflowConfig, + object? configOverrides) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.CreatedAt = createdAt; @@ -161,11 +253,21 @@ public Assistant( this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.Description = description; this.Optimization = optimization; + this.WorkspaceId = workspaceId; this.Avatar = avatar; this.IsArchived = isArchived; this.Models = models; this.Tools = tools; - this.ToolResources = toolResources; + this.Requirements = requirements; + this.Budget = budget; + this.Visibility = visibility; + this.AssistantType = assistantType; + this.ResponseLanguage = responseLanguage; + this.VibePrompt = vibePrompt; + this.StarterQuestions = starterQuestions; + this.SystemPrompt = systemPrompt; + this.WorkflowConfig = workflowConfig; + this.ConfigOverrides = configOverrides; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantTool.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.Json.g.cs similarity index 89% rename from src/libs/AI21/Generated/AI21.Models.AssistantTool.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.Json.g.cs index 3124674..e2d0ccc 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantTool.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class AssistantTool + public sealed partial class AssistantBasicInfo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.AssistantTool? FromJson( + public static global::AI21.AssistantBasicInfo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.AssistantTool), - jsonSerializerContext) as global::AI21.AssistantTool; + typeof(global::AI21.AssistantBasicInfo), + jsonSerializerContext) as global::AI21.AssistantBasicInfo; } /// @@ -51,11 +51,11 @@ 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::AI21.AssistantTool? FromJson( + public static global::AI21.AssistantBasicInfo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.AssistantTool), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantTool; + typeof(global::AI21.AssistantBasicInfo), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantBasicInfo; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.g.cs new file mode 100644 index 0000000..49e67f4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.g.cs @@ -0,0 +1,60 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class AssistantBasicInfo + { + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { 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. + /// + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AssistantBasicInfo( + global::System.Guid id, + string name) + { + this.Id = id; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantBasicInfo() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.Json.g.cs index d4ae318..c8992eb 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class AssistantToolResourceWebSearch + public sealed partial class AssistantConfigOverrides { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.AssistantToolResourceWebSearch? FromJson( + public static global::AI21.AssistantConfigOverrides? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.AssistantToolResourceWebSearch), - jsonSerializerContext) as global::AI21.AssistantToolResourceWebSearch; + typeof(global::AI21.AssistantConfigOverrides), + jsonSerializerContext) as global::AI21.AssistantConfigOverrides; } /// @@ -51,11 +51,11 @@ 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::AI21.AssistantToolResourceWebSearch? FromJson( + public static global::AI21.AssistantConfigOverrides? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.AssistantToolResourceWebSearch), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantToolResourceWebSearch; + typeof(global::AI21.AssistantConfigOverrides), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantConfigOverrides; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.g.cs similarity index 88% rename from src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.g.cs rename to src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.g.cs index 12cc44f..36c7b0c 100644 --- a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantConfigOverrides.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class CreateMaestroRunsPayloadTool + public sealed partial class AssistantConfigOverrides { /// diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantMessage.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantMessage.g.cs index 8a4a2a0..5384e5d 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantMessage.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantMessage.g.cs @@ -37,6 +37,12 @@ public sealed partial class AssistantMessage [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] public global::System.Collections.Generic.IList? ToolCalls { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_content")] + public string? ReasoningContent { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,17 +67,20 @@ public sealed partial class AssistantMessage /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AssistantMessage( global::AI21.AssistantMessageRole? role, string? content, - global::System.Collections.Generic.IList? toolCalls) + global::System.Collections.Generic.IList? toolCalls, + string? reasoningContent) { this.Role = role; this.Content = content; this.ToolCalls = toolCalls; + this.ReasoningContent = reasoningContent; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantResponseLanguage.g.cs new file mode 100644 index 0000000..f42647f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.AssistantResponseLanguage.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: unset + /// + public enum AssistantResponseLanguage + { + /// + /// + /// + Arabic, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Hebrew, + /// + /// + /// + Italian, + /// + /// + /// + Portuguese, + /// + /// + /// + Spanish, + /// + /// + /// + Unset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AssistantResponseLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AssistantResponseLanguage value) + { + return value switch + { + AssistantResponseLanguage.Arabic => "arabic", + AssistantResponseLanguage.Dutch => "dutch", + AssistantResponseLanguage.English => "english", + AssistantResponseLanguage.French => "french", + AssistantResponseLanguage.German => "german", + AssistantResponseLanguage.Hebrew => "hebrew", + AssistantResponseLanguage.Italian => "italian", + AssistantResponseLanguage.Portuguese => "portuguese", + AssistantResponseLanguage.Spanish => "spanish", + AssistantResponseLanguage.Unset => "unset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AssistantResponseLanguage? ToEnum(string value) + { + return value switch + { + "arabic" => AssistantResponseLanguage.Arabic, + "dutch" => AssistantResponseLanguage.Dutch, + "english" => AssistantResponseLanguage.English, + "french" => AssistantResponseLanguage.French, + "german" => AssistantResponseLanguage.German, + "hebrew" => AssistantResponseLanguage.Hebrew, + "italian" => AssistantResponseLanguage.Italian, + "portuguese" => AssistantResponseLanguage.Portuguese, + "spanish" => AssistantResponseLanguage.Spanish, + "unset" => AssistantResponseLanguage.Unset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantTool2.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantType.g.cs similarity index 57% rename from src/libs/AI21/Generated/AI21.Models.AssistantTool2.g.cs rename to src/libs/AI21/Generated/AI21.Models.AssistantType.g.cs index cab80b4..3f5a628 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantTool2.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantType.g.cs @@ -6,50 +6,50 @@ namespace AI21 /// /// An enumeration. /// - public enum AssistantTool2 + public enum AssistantType { /// /// /// - FileSearch, + Default, /// /// /// - WebSearch, + Chat, /// /// /// - PlanApproval, + Maestro, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class AssistantTool2Extensions + public static class AssistantTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this AssistantTool2 value) + public static string ToValueString(this AssistantType value) { return value switch { - AssistantTool2.FileSearch => "file_search", - AssistantTool2.WebSearch => "web_search", - AssistantTool2.PlanApproval => "plan_approval", + AssistantType.Default => "default", + AssistantType.Chat => "chat", + AssistantType.Maestro => "maestro", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static AssistantTool2? ToEnum(string value) + public static AssistantType? ToEnum(string value) { return value switch { - "file_search" => AssistantTool2.FileSearch, - "web_search" => AssistantTool2.WebSearch, - "plan_approval" => AssistantTool2.PlanApproval, + "default" => AssistantType.Default, + "chat" => AssistantType.Chat, + "maestro" => AssistantType.Maestro, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResource.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.Json.g.cs similarity index 88% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResource.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.Json.g.cs index a0afd0e..a02d934 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResource.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class AssistantToolResource + public sealed partial class AssistantsByMcpResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.AssistantToolResource? FromJson( + public static global::AI21.AssistantsByMcpResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.AssistantToolResource), - jsonSerializerContext) as global::AI21.AssistantToolResource; + typeof(global::AI21.AssistantsByMcpResponse), + jsonSerializerContext) as global::AI21.AssistantsByMcpResponse; } /// @@ -51,11 +51,11 @@ 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::AI21.AssistantToolResource? FromJson( + public static global::AI21.AssistantsByMcpResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.AssistantToolResource), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantToolResource; + typeof(global::AI21.AssistantsByMcpResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantsByMcpResponse; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.g.cs new file mode 100644 index 0000000..131c944 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.AssistantsByMcpResponse.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class AssistantsByMcpResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Results { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AssistantsByMcpResponse( + global::System.Collections.Generic.IList results) + { + this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantsByMcpResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.MaestroPayloadType.g.cs b/src/libs/AI21/Generated/AI21.Models.AuthenticationType.g.cs similarity index 54% rename from src/libs/AI21/Generated/AI21.Models.MaestroPayloadType.g.cs rename to src/libs/AI21/Generated/AI21.Models.AuthenticationType.g.cs index 2a30086..74b87fd 100644 --- a/src/libs/AI21/Generated/AI21.Models.MaestroPayloadType.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.AuthenticationType.g.cs @@ -6,50 +6,50 @@ namespace AI21 /// /// An enumeration. /// - public enum MaestroPayloadType + public enum AuthenticationType { /// /// /// - ConversationalRag, + None, /// /// /// - MaestroRun, + TokenApi, /// /// /// - ConvRagMaestroRun, + CustomHeader, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class MaestroPayloadTypeExtensions + public static class AuthenticationTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this MaestroPayloadType value) + public static string ToValueString(this AuthenticationType value) { return value switch { - MaestroPayloadType.ConversationalRag => "conversational_rag", - MaestroPayloadType.MaestroRun => "maestro_run", - MaestroPayloadType.ConvRagMaestroRun => "conv_rag_maestro_run", + AuthenticationType.None => "none", + AuthenticationType.TokenApi => "token-api", + AuthenticationType.CustomHeader => "custom-header", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static MaestroPayloadType? ToEnum(string value) + public static AuthenticationType? ToEnum(string value) { return value switch { - "conversational_rag" => MaestroPayloadType.ConversationalRag, - "maestro_run" => MaestroPayloadType.MaestroRun, - "conv_rag_maestro_run" => MaestroPayloadType.ConvRagMaestroRun, + "none" => AuthenticationType.None, + "token-api" => AuthenticationType.TokenApi, + "custom-header" => AuthenticationType.CustomHeader, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Models.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs index f378a64..225c010 100644 --- a/src/libs/AI21/Generated/AI21.Models.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs @@ -28,6 +28,12 @@ public sealed partial class BodyUploadCheckComplianceStudioV1DemosRegulationsUpl [global::System.Text.Json.Serialization.JsonPropertyName("budget")] public string? Budget { get; set; } + /// + /// Vector store ID to use for RFI processing + /// + [global::System.Text.Json.Serialization.JsonPropertyName("vector_store_id")] + public string? VectorStoreId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,17 +48,22 @@ public sealed partial class BodyUploadCheckComplianceStudioV1DemosRegulationsUpl /// /// Default Value: MEDIUM /// + /// + /// Vector store ID to use for RFI processing + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BodyUploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost( byte[] file, string filename, - string? budget) + string? budget, + string? vectorStoreId) { this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); this.Budget = budget; + this.VectorStoreId = vectorStoreId; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.BodyV1LibraryUpload.g.cs b/src/libs/AI21/Generated/AI21.Models.BodyV1LibraryUpload.g.cs index bbf6874..10d8f2e 100644 --- a/src/libs/AI21/Generated/AI21.Models.BodyV1LibraryUpload.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.BodyV1LibraryUpload.g.cs @@ -65,6 +65,12 @@ public sealed partial class BodyV1LibraryUpload [global::System.Text.Json.Serialization.JsonPropertyName("data_source")] public string? DataSource { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public string? Metadata { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -85,6 +91,7 @@ public sealed partial class BodyV1LibraryUpload /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -97,7 +104,8 @@ public BodyV1LibraryUpload( string? customConfigs, global::AI21.UploadMode? uploadMode, global::System.Guid? batchId, - string? dataSource) + string? dataSource, + string? metadata) { this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); @@ -108,6 +116,7 @@ public BodyV1LibraryUpload( this.UploadMode = uploadMode; this.BatchId = batchId; this.DataSource = dataSource; + this.Metadata = metadata; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.BudgetLevel.g.cs b/src/libs/AI21/Generated/AI21.Models.BudgetLevel.g.cs new file mode 100644 index 0000000..ac52457 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.BudgetLevel.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// An enumeration. + /// + public enum BudgetLevel + { + /// + /// + /// + Low, + /// + /// + /// + Medium, + /// + /// + /// + High, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BudgetLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BudgetLevel value) + { + return value switch + { + BudgetLevel.Low => "low", + BudgetLevel.Medium => "medium", + BudgetLevel.High => "high", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BudgetLevel? ToEnum(string value) + { + return value switch + { + "low" => BudgetLevel.Low, + "medium" => BudgetLevel.Medium, + "high" => BudgetLevel.High, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs index 5f3bd5c..8b199ed 100644 --- a/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs @@ -32,7 +32,7 @@ public sealed partial class ChatRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// How many chat responses to generate. _Range: 1 – 16_ **Notes:**
@@ -107,7 +107,7 @@ public sealed partial class ChatRequest public global::System.Collections.Generic.IList? Documents { get; set; } /// - /// + /// Default Value: {"type":"text"} /// [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] public global::AI21.ResponseFormat? ResponseFormat { get; set; } @@ -174,14 +174,16 @@ public sealed partial class ChatRequest /// /// /// - /// + /// + /// Default Value: {"type":"text"} + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatRequest( global::AI21.ModelName model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? tools, int? n, int? maxTokens, double? temperature, diff --git a/src/libs/AI21/Generated/AI21.Models.ConnectorsWorkflowStatus.g.cs b/src/libs/AI21/Generated/AI21.Models.ConnectorsWorkflowStatus.g.cs index e69248d..5eaee12 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConnectorsWorkflowStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ConnectorsWorkflowStatus.g.cs @@ -11,19 +11,19 @@ public enum ConnectorsWorkflowStatus /// /// /// - INPROGRESS, + InProgress, /// /// /// - PARTIALLYCOMPLETED, + PartiallyCompleted, /// /// /// - FAILED, + Failed, /// /// /// - SUCCEEDED, + Succeeded, } /// @@ -38,10 +38,10 @@ public static string ToValueString(this ConnectorsWorkflowStatus value) { return value switch { - ConnectorsWorkflowStatus.INPROGRESS => "IN_PROGRESS", - ConnectorsWorkflowStatus.PARTIALLYCOMPLETED => "PARTIALLY_COMPLETED", - ConnectorsWorkflowStatus.FAILED => "FAILED", - ConnectorsWorkflowStatus.SUCCEEDED => "SUCCEEDED", + ConnectorsWorkflowStatus.InProgress => "IN_PROGRESS", + ConnectorsWorkflowStatus.PartiallyCompleted => "PARTIALLY_COMPLETED", + ConnectorsWorkflowStatus.Failed => "FAILED", + ConnectorsWorkflowStatus.Succeeded => "SUCCEEDED", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -52,10 +52,10 @@ public static string ToValueString(this ConnectorsWorkflowStatus value) { return value switch { - "IN_PROGRESS" => ConnectorsWorkflowStatus.INPROGRESS, - "PARTIALLY_COMPLETED" => ConnectorsWorkflowStatus.PARTIALLYCOMPLETED, - "FAILED" => ConnectorsWorkflowStatus.FAILED, - "SUCCEEDED" => ConnectorsWorkflowStatus.SUCCEEDED, + "IN_PROGRESS" => ConnectorsWorkflowStatus.InProgress, + "PARTIALLY_COMPLETED" => ConnectorsWorkflowStatus.PartiallyCompleted, + "FAILED" => ConnectorsWorkflowStatus.Failed, + "SUCCEEDED" => ConnectorsWorkflowStatus.Succeeded, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigResponseLanguage.g.cs deleted file mode 100644 index dd4b89a..0000000 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigResponseLanguage.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// Default Value: english - /// - public enum ConversationalRagConfigResponseLanguage - { - /// - /// - /// - Arabic, - /// - /// - /// - Dutch, - /// - /// - /// - English, - /// - /// - /// - French, - /// - /// - /// - German, - /// - /// - /// - Hebrew, - /// - /// - /// - Italian, - /// - /// - /// - Portuguese, - /// - /// - /// - Spanish, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ConversationalRagConfigResponseLanguageExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ConversationalRagConfigResponseLanguage value) - { - return value switch - { - ConversationalRagConfigResponseLanguage.Arabic => "arabic", - ConversationalRagConfigResponseLanguage.Dutch => "dutch", - ConversationalRagConfigResponseLanguage.English => "english", - ConversationalRagConfigResponseLanguage.French => "french", - ConversationalRagConfigResponseLanguage.German => "german", - ConversationalRagConfigResponseLanguage.Hebrew => "hebrew", - ConversationalRagConfigResponseLanguage.Italian => "italian", - ConversationalRagConfigResponseLanguage.Portuguese => "portuguese", - ConversationalRagConfigResponseLanguage.Spanish => "spanish", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ConversationalRagConfigResponseLanguage? ToEnum(string value) - { - return value switch - { - "arabic" => ConversationalRagConfigResponseLanguage.Arabic, - "dutch" => ConversationalRagConfigResponseLanguage.Dutch, - "english" => ConversationalRagConfigResponseLanguage.English, - "french" => ConversationalRagConfigResponseLanguage.French, - "german" => ConversationalRagConfigResponseLanguage.German, - "hebrew" => ConversationalRagConfigResponseLanguage.Hebrew, - "italian" => ConversationalRagConfigResponseLanguage.Italian, - "portuguese" => ConversationalRagConfigResponseLanguage.Portuguese, - "spanish" => ConversationalRagConfigResponseLanguage.Spanish, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigRetrievalStrategy.g.cs b/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigRetrievalStrategy.g.cs deleted file mode 100644 index b682b8a..0000000 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfigRetrievalStrategy.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// Default Value: segments - /// - public enum ConversationalRagConfigRetrievalStrategy - { - /// - /// - /// - Default, - /// - /// - /// - Segments, - /// - /// - /// - AddNeighbors, - /// - /// - /// - FullDoc, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ConversationalRagConfigRetrievalStrategyExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ConversationalRagConfigRetrievalStrategy value) - { - return value switch - { - ConversationalRagConfigRetrievalStrategy.Default => "default", - ConversationalRagConfigRetrievalStrategy.Segments => "segments", - ConversationalRagConfigRetrievalStrategy.AddNeighbors => "add_neighbors", - ConversationalRagConfigRetrievalStrategy.FullDoc => "full_doc", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ConversationalRagConfigRetrievalStrategy? ToEnum(string value) - { - return value switch - { - "default" => ConversationalRagConfigRetrievalStrategy.Default, - "segments" => ConversationalRagConfigRetrievalStrategy.Segments, - "add_neighbors" => ConversationalRagConfigRetrievalStrategy.AddNeighbors, - "full_doc" => ConversationalRagConfigRetrievalStrategy.FullDoc, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.g.cs b/src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.g.cs deleted file mode 100644 index 443c681..0000000 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.g.cs +++ /dev/null @@ -1,101 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// - /// - public sealed partial class ConversationalRagResult - { - /// - /// A unique ID for the request (not the message). Repeated identical requests
- /// get different IDs. However, for a streaming response, the ID will be the same
- /// for all responses in the stream. - ///
- [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("choices")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Choices { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_queries")] - public global::System.Collections.Generic.IList? SearchQueries { get; set; } - - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context_retrieved")] - public bool? ContextRetrieved { get; set; } - - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("answer_in_context")] - public bool? AnswerInContext { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Sources { 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. - /// - /// - /// A unique ID for the request (not the message). Repeated identical requests
- /// get different IDs. However, for a streaming response, the ID will be the same
- /// for all responses in the stream. - /// - /// - /// - /// - /// Default Value: false - /// - /// - /// Default Value: false - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ConversationalRagResult( - string id, - global::System.Collections.Generic.IList choices, - global::System.Collections.Generic.IList sources, - global::System.Collections.Generic.IList? searchQueries, - bool? contextRetrieved, - bool? answerInContext) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices)); - this.Sources = sources ?? throw new global::System.ArgumentNullException(nameof(sources)); - this.SearchQueries = searchQueries; - this.ContextRetrieved = contextRetrieved; - this.AnswerInContext = answerInContext; - } - - /// - /// Initializes a new instance of the class. - /// - public ConversationalRagResult() - { - } - } -} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.g.cs b/src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.g.cs deleted file mode 100644 index 87ecc9f..0000000 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.g.cs +++ /dev/null @@ -1,98 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// - /// - public sealed partial class ConversationalRagSource - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] - public string? FileId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_name")] - public string? FileName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("score")] - public double? Score { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("order")] - public int? Order { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("public_url")] - public string? PublicUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.IList? Labels { 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. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ConversationalRagSource( - string text, - string? fileId, - string? fileName, - double? score, - int? order, - string? publicUrl, - global::System.Collections.Generic.IList? labels) - { - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.FileId = fileId; - this.FileName = fileName; - this.Score = score; - this.Order = order; - this.PublicUrl = publicUrl; - this.Labels = labels; - } - - /// - /// Initializes a new instance of the class. - /// - public ConversationalRagSource() - { - } - } -} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.Json.g.cs index 05e3ded..b7d8301 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ToolResourcesWebSearch + public sealed partial class CreateAssistantRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ToolResourcesWebSearch? FromJson( + public static global::AI21.CreateAssistantRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ToolResourcesWebSearch), - jsonSerializerContext) as global::AI21.ToolResourcesWebSearch; + typeof(global::AI21.CreateAssistantRequest), + jsonSerializerContext) as global::AI21.CreateAssistantRequest; } /// @@ -51,11 +51,11 @@ 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::AI21.ToolResourcesWebSearch? FromJson( + public static global::AI21.CreateAssistantRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ToolResourcesWebSearch), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ToolResourcesWebSearch; + typeof(global::AI21.CreateAssistantRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.CreateAssistantRequest; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.g.cs new file mode 100644 index 0000000..9bcf018 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequest.g.cs @@ -0,0 +1,158 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class CreateAssistantRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimization")] + public string? Optimization { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string? Avatar { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::System.Collections.Generic.IList? Models { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] + public global::System.Collections.Generic.IList? Requirements { get; set; } + + /// + /// Default Value: medium + /// + [global::System.Text.Json.Serialization.JsonPropertyName("budget")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.BudgetLevelJsonConverter))] + public global::AI21.BudgetLevel? Budget { get; set; } + + /// + /// Default Value: default + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AssistantTypeJsonConverter))] + public global::AI21.AssistantType? AssistantType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("starter_questions")] + public global::System.Collections.Generic.IList? StarterQuestions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workflow_config")] + public global::AI21.WorkflowConfig? WorkflowConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_overrides")] + public object? ConfigOverrides { 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. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: medium + /// + /// + /// Default Value: default + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateAssistantRequest( + string name, + string? description, + string? optimization, + string? avatar, + global::System.Collections.Generic.IList? models, + global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? requirements, + global::AI21.BudgetLevel? budget, + global::AI21.AssistantType? assistantType, + global::System.Collections.Generic.IList? starterQuestions, + string? systemPrompt, + global::AI21.WorkflowConfig? workflowConfig, + object? configOverrides) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Optimization = optimization; + this.Avatar = avatar; + this.Models = models; + this.Tools = tools; + this.Requirements = requirements; + this.Budget = budget; + this.AssistantType = assistantType; + this.StarterQuestions = starterQuestions; + this.SystemPrompt = systemPrompt; + this.WorkflowConfig = workflowConfig; + this.ConfigOverrides = configOverrides; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAssistantRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.Json.g.cs similarity index 84% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.Json.g.cs index 7b79390..96e1b2f 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class AssistantToolResourcePlanApproval + public sealed partial class CreateAssistantRequestConfigOverrides { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.AssistantToolResourcePlanApproval? FromJson( + public static global::AI21.CreateAssistantRequestConfigOverrides? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.AssistantToolResourcePlanApproval), - jsonSerializerContext) as global::AI21.AssistantToolResourcePlanApproval; + typeof(global::AI21.CreateAssistantRequestConfigOverrides), + jsonSerializerContext) as global::AI21.CreateAssistantRequestConfigOverrides; } /// @@ -51,11 +51,11 @@ 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::AI21.AssistantToolResourcePlanApproval? FromJson( + public static global::AI21.CreateAssistantRequestConfigOverrides? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.AssistantToolResourcePlanApproval), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantToolResourcePlanApproval; + typeof(global::AI21.CreateAssistantRequestConfigOverrides), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.CreateAssistantRequestConfigOverrides; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.g.cs rename to src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.g.cs index 673dda9..f31f597 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateAssistantRequestConfigOverrides.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class AssistantToolResourceFileSearch + public sealed partial class CreateAssistantRequestConfigOverrides { /// diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.Json.g.cs index e85006c..48f333c 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagResult.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ConversationalRagResult + public sealed partial class CreateMCPStorageRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ConversationalRagResult? FromJson( + public static global::AI21.CreateMCPStorageRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ConversationalRagResult), - jsonSerializerContext) as global::AI21.ConversationalRagResult; + typeof(global::AI21.CreateMCPStorageRequest), + jsonSerializerContext) as global::AI21.CreateMCPStorageRequest; } /// @@ -51,11 +51,11 @@ 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::AI21.ConversationalRagResult? FromJson( + public static global::AI21.CreateMCPStorageRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ConversationalRagResult), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ConversationalRagResult; + typeof(global::AI21.CreateMCPStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.CreateMCPStorageRequest; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.g.cs new file mode 100644 index 0000000..869d433 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.CreateMCPStorageRequest.g.cs @@ -0,0 +1,102 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class CreateMCPStorageRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServerUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServerLabel { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public global::System.Guid? WorkspaceId { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("authentication_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AuthenticationTypeJsonConverter))] + public global::AI21.AuthenticationType? AuthenticationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_header_name")] + public string? AuthHeaderName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_value")] + public string? AuthValue { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] + public global::System.Collections.Generic.IList? AllowedTools { 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. + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateMCPStorageRequest( + string serverUrl, + string serverLabel, + global::System.Guid? workspaceId, + global::AI21.AuthenticationType? authenticationType, + string? authHeaderName, + string? authValue, + global::System.Collections.Generic.IList? allowedTools) + { + this.ServerUrl = serverUrl ?? throw new global::System.ArgumentNullException(nameof(serverUrl)); + this.ServerLabel = serverLabel ?? throw new global::System.ArgumentNullException(nameof(serverLabel)); + this.WorkspaceId = workspaceId; + this.AuthenticationType = authenticationType; + this.AuthHeaderName = authHeaderName; + this.AuthValue = authValue; + this.AllowedTools = allowedTools; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateMCPStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayload.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayload.g.cs index ce612fe..78ce0fa 100644 --- a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayload.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayload.g.cs @@ -34,13 +34,7 @@ public sealed partial class CreateMaestroRunsPayload /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList>? Tools { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_resources")] - public global::AI21.ToolResources? ToolResources { get; set; } + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// @@ -52,7 +46,7 @@ public sealed partial class CreateMaestroRunsPayload /// /// [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] - public global::System.Collections.Generic.IList? Requirements { get; set; } + public global::System.Collections.Generic.IList? Requirements { get; set; } /// /// @@ -86,17 +80,17 @@ public sealed partial class CreateMaestroRunsPayload public bool? DynamicPlanningEnabled { get; set; } /// - /// Default Value: false + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools_allowed")] - public bool? ToolsAllowed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")] + public string? AssistantId { get; set; } /// - /// Default Value: maestro_run + /// Default Value: main /// - [global::System.Text.Json.Serialization.JsonPropertyName("payload_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.MaestroPayloadTypeJsonConverter))] - public global::AI21.MaestroPayloadType? PayloadType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("variant")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadVariantJsonConverter))] + public global::AI21.CreateMaestroRunsPayloadVariant? Variant { get; set; } /// /// @@ -105,12 +99,29 @@ public sealed partial class CreateMaestroRunsPayload public global::System.Collections.Generic.IList? CustomRetrievalConfigs { get; set; } /// - /// + /// Default Value: unset /// [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.CreateMaestroRunsPayloadResponseLanguageJsonConverter))] public global::AI21.CreateMaestroRunsPayloadResponseLanguage? ResponseLanguage { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { get; set; } + + /// + /// Whether or not to stream the result one token at a time using
+ /// [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).
+ /// This can be useful when waiting for long results where a long wait time for an
+ /// answer can be problematic, such as a chatbot. If set to `True`, then `n` must
+ /// be 1. A streaming response is different than the non-streaming response.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")] + public bool? Stream { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -124,7 +135,6 @@ public sealed partial class CreateMaestroRunsPayload /// /// /// - /// /// /// /// @@ -138,14 +148,23 @@ public sealed partial class CreateMaestroRunsPayload /// /// Default Value: false /// - /// - /// Default Value: false - /// - /// - /// Default Value: maestro_run + /// + /// + /// Default Value: main /// /// - /// + /// + /// Default Value: unset + /// + /// + /// + /// Whether or not to stream the result one token at a time using
+ /// [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).
+ /// This can be useful when waiting for long results where a long wait time for an
+ /// answer can be problematic, such as a chatbot. If set to `True`, then `n` must
+ /// be 1. A streaming response is different than the non-streaming response.
+ /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -153,25 +172,25 @@ public CreateMaestroRunsPayload( global::AI21.AnyOf, string> input, object? outputType, global::System.Collections.Generic.IList? models, - global::System.Collections.Generic.IList>? tools, - global::AI21.ToolResources? toolResources, + global::System.Collections.Generic.IList? tools, object? context, - global::System.Collections.Generic.IList? requirements, + global::System.Collections.Generic.IList? requirements, global::AI21.CreateMaestroRunsPayloadBudget? budget, bool? verbose, global::System.Collections.Generic.IList? include, bool? structuredRagEnabled, bool? dynamicPlanningEnabled, - bool? toolsAllowed, - global::AI21.MaestroPayloadType? payloadType, + string? assistantId, + global::AI21.CreateMaestroRunsPayloadVariant? variant, global::System.Collections.Generic.IList? customRetrievalConfigs, - global::AI21.CreateMaestroRunsPayloadResponseLanguage? responseLanguage) + global::AI21.CreateMaestroRunsPayloadResponseLanguage? responseLanguage, + string? systemPrompt, + bool? stream) { this.Input = input; this.OutputType = outputType; this.Models = models; this.Tools = tools; - this.ToolResources = toolResources; this.Context = context; this.Requirements = requirements; this.Budget = budget; @@ -179,10 +198,12 @@ public CreateMaestroRunsPayload( this.Include = include; this.StructuredRagEnabled = structuredRagEnabled; this.DynamicPlanningEnabled = dynamicPlanningEnabled; - this.ToolsAllowed = toolsAllowed; - this.PayloadType = payloadType; + this.AssistantId = assistantId; + this.Variant = variant; this.CustomRetrievalConfigs = customRetrievalConfigs; this.ResponseLanguage = responseLanguage; + this.SystemPrompt = systemPrompt; + this.Stream = stream; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadResponseLanguage.g.cs index 8b31156..f7270b8 100644 --- a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadResponseLanguage.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadResponseLanguage.g.cs @@ -4,7 +4,7 @@ namespace AI21 { /// - /// + /// Default Value: unset /// public enum CreateMaestroRunsPayloadResponseLanguage { @@ -44,6 +44,10 @@ public enum CreateMaestroRunsPayloadResponseLanguage /// /// Spanish, + /// + /// + /// + Unset, } /// @@ -67,6 +71,7 @@ public static string ToValueString(this CreateMaestroRunsPayloadResponseLanguage CreateMaestroRunsPayloadResponseLanguage.Italian => "italian", CreateMaestroRunsPayloadResponseLanguage.Portuguese => "portuguese", CreateMaestroRunsPayloadResponseLanguage.Spanish => "spanish", + CreateMaestroRunsPayloadResponseLanguage.Unset => "unset", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -86,6 +91,7 @@ public static string ToValueString(this CreateMaestroRunsPayloadResponseLanguage "italian" => CreateMaestroRunsPayloadResponseLanguage.Italian, "portuguese" => CreateMaestroRunsPayloadResponseLanguage.Portuguese, "spanish" => CreateMaestroRunsPayloadResponseLanguage.Spanish, + "unset" => CreateMaestroRunsPayloadResponseLanguage.Unset, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool2.g.cs b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadVariant.g.cs similarity index 60% rename from src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool2.g.cs rename to src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadVariant.g.cs index c61ffd5..71bacf3 100644 --- a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool2.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadVariant.g.cs @@ -4,46 +4,46 @@ namespace AI21 { /// - /// + /// Default Value: main /// - public enum CreateMaestroRunsPayloadTool2 + public enum CreateMaestroRunsPayloadVariant { /// /// /// - FileSearch, + Main, /// /// /// - WebSearch, + Ingestion, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateMaestroRunsPayloadTool2Extensions + public static class CreateMaestroRunsPayloadVariantExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateMaestroRunsPayloadTool2 value) + public static string ToValueString(this CreateMaestroRunsPayloadVariant value) { return value switch { - CreateMaestroRunsPayloadTool2.FileSearch => "file_search", - CreateMaestroRunsPayloadTool2.WebSearch => "web_search", + CreateMaestroRunsPayloadVariant.Main => "main", + CreateMaestroRunsPayloadVariant.Ingestion => "ingestion", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateMaestroRunsPayloadTool2? ToEnum(string value) + public static CreateMaestroRunsPayloadVariant? ToEnum(string value) { return value switch { - "file_search" => CreateMaestroRunsPayloadTool2.FileSearch, - "web_search" => CreateMaestroRunsPayloadTool2.WebSearch, + "main" => CreateMaestroRunsPayloadVariant.Main, + "ingestion" => CreateMaestroRunsPayloadVariant.Ingestion, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.Json.g.cs new file mode 100644 index 0000000..8546330 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class DeleteMCPStorageResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.DeleteMCPStorageResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.DeleteMCPStorageResponse), + jsonSerializerContext) as global::AI21.DeleteMCPStorageResponse; + } + + /// + /// 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::AI21.DeleteMCPStorageResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.DeleteMCPStorageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.DeleteMCPStorageResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.g.cs new file mode 100644 index 0000000..80bef1c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.DeleteMCPStorageResponse.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class DeleteMCPStorageResponse + { + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { 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. + /// + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteMCPStorageResponse( + global::System.Guid id) + { + this.Id = id; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteMCPStorageResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.g.cs deleted file mode 100644 index 3ad69c7..0000000 --- a/src/libs/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace AI21 -{ - /// - /// - /// - public sealed partial class ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse - { - - /// - /// 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/AI21/Generated/AI21.Models.FileSearchToolResource.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResource.Json.g.cs new file mode 100644 index 0000000..6c6c235 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FileSearchToolResource + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FileSearchToolResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FileSearchToolResource), + jsonSerializerContext) as global::AI21.FileSearchToolResource; + } + + /// + /// 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::AI21.FileSearchToolResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FileSearchToolResource), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FileSearchToolResource; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfig.g.cs b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResource.g.cs similarity index 59% rename from src/libs/AI21/Generated/AI21.Models.ConversationalRagConfig.g.cs rename to src/libs/AI21/Generated/AI21.Models.FileSearchToolResource.g.cs index 0472dda..cfb3c16 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResource.g.cs @@ -4,22 +4,22 @@ namespace AI21 { /// - /// This class is to be used as a common class to all Studio API requests payloads + /// /// - public sealed partial class ConversationalRagConfig + public sealed partial class FileSearchToolResource { /// - /// messages + /// Default Value: file_search /// - [global::System.Text.Json.Serialization.JsonPropertyName("messages")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Messages { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.FileSearchToolResourceTypeJsonConverter))] + public global::AI21.FileSearchToolResourceType? Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_similarity_threshold")] + public double? RetrievalSimilarityThreshold { get; set; } /// /// @@ -27,6 +27,20 @@ public sealed partial class ConversationalRagConfig [global::System.Text.Json.Serialization.JsonPropertyName("labels")] public global::System.Collections.Generic.IList? Labels { get; set; } + /// + /// Default Value: AND + /// + [global::System.Text.Json.Serialization.JsonPropertyName("labels_filter_mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.FileSearchToolResourceLabelsFilterModeJsonConverter))] + public global::AI21.FileSearchToolResourceLabelsFilterMode? LabelsFilterMode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("labels_filter")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.QueryFilterJsonConverter))] + public global::AI21.QueryFilter? LabelsFilter { get; set; } + /// /// /// @@ -37,45 +51,39 @@ public sealed partial class ConversationalRagConfig /// Default Value: segments /// [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ConversationalRagConfigRetrievalStrategyJsonConverter))] - public global::AI21.ConversationalRagConfigRetrievalStrategy? RetrievalStrategy { get; set; } - - /// - /// Default Value: 0 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_similarity_threshold")] - public double? RetrievalSimilarityThreshold { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.RetrievalStrategyJsonConverter))] + public global::AI21.RetrievalStrategy? RetrievalStrategy { get; set; } /// - /// Default Value: 1 + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("max_neighbors")] public int? MaxNeighbors { get; set; } /// - /// Default Value: 1 + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("hybrid_search_alpha")] - public double? HybridSearchAlpha { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + public string? Path { get; set; } /// - /// Default Value: english + /// Default Value: unset /// [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ConversationalRagConfigResponseLanguageJsonConverter))] - public global::AI21.ConversationalRagConfigResponseLanguage? ResponseLanguage { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.FileSearchToolResourceResponseLanguageJsonConverter))] + public global::AI21.FileSearchToolResourceResponseLanguage? ResponseLanguage { get; set; } /// - /// Default Value: false + /// Default Value: 1 /// - [global::System.Text.Json.Serialization.JsonPropertyName("verbose")] - public bool? Verbose { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("hybrid_search_alpha")] + public double? HybridSearchAlpha { get; set; } /// /// Default Value: false /// - [global::System.Text.Json.Serialization.JsonPropertyName("should_set_custom_retrieval_configs")] - public bool? ShouldSetCustomRetrievalConfigs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("use_two_step_embedders")] + public bool? UseTwoStepEmbedders { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -84,68 +92,67 @@ public sealed partial class ConversationalRagConfig 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. /// - /// - /// messages + /// + /// Default Value: file_search /// - /// + /// /// + /// + /// Default Value: AND + /// + /// /// /// /// Default Value: segments /// - /// - /// Default Value: 0 - /// - /// - /// Default Value: 1 + /// + /// + /// + /// Default Value: unset /// /// /// Default Value: 1 /// - /// - /// Default Value: english - /// - /// - /// Default Value: false - /// - /// + /// /// Default Value: false /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ConversationalRagConfig( - global::System.Collections.Generic.IList messages, - string? path, + public FileSearchToolResource( + global::AI21.FileSearchToolResourceType? type, + double? retrievalSimilarityThreshold, global::System.Collections.Generic.IList? labels, + global::AI21.FileSearchToolResourceLabelsFilterMode? labelsFilterMode, + global::AI21.QueryFilter? labelsFilter, global::System.Collections.Generic.IList? fileIds, - global::AI21.ConversationalRagConfigRetrievalStrategy? retrievalStrategy, - double? retrievalSimilarityThreshold, + global::AI21.RetrievalStrategy? retrievalStrategy, int? maxNeighbors, + string? path, + global::AI21.FileSearchToolResourceResponseLanguage? responseLanguage, double? hybridSearchAlpha, - global::AI21.ConversationalRagConfigResponseLanguage? responseLanguage, - bool? verbose, - bool? shouldSetCustomRetrievalConfigs) + bool? useTwoStepEmbedders) { - this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); - this.Path = path; + this.Type = type; + this.RetrievalSimilarityThreshold = retrievalSimilarityThreshold; this.Labels = labels; + this.LabelsFilterMode = labelsFilterMode; + this.LabelsFilter = labelsFilter; this.FileIds = fileIds; this.RetrievalStrategy = retrievalStrategy; - this.RetrievalSimilarityThreshold = retrievalSimilarityThreshold; this.MaxNeighbors = maxNeighbors; - this.HybridSearchAlpha = hybridSearchAlpha; + this.Path = path; this.ResponseLanguage = responseLanguage; - this.Verbose = verbose; - this.ShouldSetCustomRetrievalConfigs = shouldSetCustomRetrievalConfigs; + this.HybridSearchAlpha = hybridSearchAlpha; + this.UseTwoStepEmbedders = useTwoStepEmbedders; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ConversationalRagConfig() + public FileSearchToolResource() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceLabelsFilterMode.g.cs b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceLabelsFilterMode.g.cs new file mode 100644 index 0000000..3a67516 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceLabelsFilterMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: AND + /// + public enum FileSearchToolResourceLabelsFilterMode + { + /// + /// + /// + And, + /// + /// + /// + Or, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FileSearchToolResourceLabelsFilterModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FileSearchToolResourceLabelsFilterMode value) + { + return value switch + { + FileSearchToolResourceLabelsFilterMode.And => "AND", + FileSearchToolResourceLabelsFilterMode.Or => "OR", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FileSearchToolResourceLabelsFilterMode? ToEnum(string value) + { + return value switch + { + "AND" => FileSearchToolResourceLabelsFilterMode.And, + "OR" => FileSearchToolResourceLabelsFilterMode.Or, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceResponseLanguage.g.cs new file mode 100644 index 0000000..c80ba26 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceResponseLanguage.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: unset + /// + public enum FileSearchToolResourceResponseLanguage + { + /// + /// + /// + Arabic, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Hebrew, + /// + /// + /// + Italian, + /// + /// + /// + Portuguese, + /// + /// + /// + Spanish, + /// + /// + /// + Unset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FileSearchToolResourceResponseLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FileSearchToolResourceResponseLanguage value) + { + return value switch + { + FileSearchToolResourceResponseLanguage.Arabic => "arabic", + FileSearchToolResourceResponseLanguage.Dutch => "dutch", + FileSearchToolResourceResponseLanguage.English => "english", + FileSearchToolResourceResponseLanguage.French => "french", + FileSearchToolResourceResponseLanguage.German => "german", + FileSearchToolResourceResponseLanguage.Hebrew => "hebrew", + FileSearchToolResourceResponseLanguage.Italian => "italian", + FileSearchToolResourceResponseLanguage.Portuguese => "portuguese", + FileSearchToolResourceResponseLanguage.Spanish => "spanish", + FileSearchToolResourceResponseLanguage.Unset => "unset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FileSearchToolResourceResponseLanguage? ToEnum(string value) + { + return value switch + { + "arabic" => FileSearchToolResourceResponseLanguage.Arabic, + "dutch" => FileSearchToolResourceResponseLanguage.Dutch, + "english" => FileSearchToolResourceResponseLanguage.English, + "french" => FileSearchToolResourceResponseLanguage.French, + "german" => FileSearchToolResourceResponseLanguage.German, + "hebrew" => FileSearchToolResourceResponseLanguage.Hebrew, + "italian" => FileSearchToolResourceResponseLanguage.Italian, + "portuguese" => FileSearchToolResourceResponseLanguage.Portuguese, + "spanish" => FileSearchToolResourceResponseLanguage.Spanish, + "unset" => FileSearchToolResourceResponseLanguage.Unset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceType.g.cs new file mode 100644 index 0000000..2b7657f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FileSearchToolResourceType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: file_search + /// + public enum FileSearchToolResourceType + { + /// + /// + /// + FileSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FileSearchToolResourceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FileSearchToolResourceType value) + { + return value switch + { + FileSearchToolResourceType.FileSearch => "file_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FileSearchToolResourceType? ToEnum(string value) + { + return value switch + { + "file_search" => FileSearchToolResourceType.FileSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.FileStatus.g.cs b/src/libs/AI21/Generated/AI21.Models.FileStatus.g.cs index 6bd4b6c..d89988b 100644 --- a/src/libs/AI21/Generated/AI21.Models.FileStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.FileStatus.g.cs @@ -11,23 +11,23 @@ public enum FileStatus /// /// /// - DBRECORDCREATED, + DbRecordCreated, /// /// /// - UPLOADED, + Uploaded, /// /// /// - UPLOADFAILED, + UploadFailed, /// /// /// - PROCESSED, + Processed, /// /// /// - PROCESSINGFAILED, + ProcessingFailed, } /// @@ -42,11 +42,11 @@ public static string ToValueString(this FileStatus value) { return value switch { - FileStatus.DBRECORDCREATED => "DB_RECORD_CREATED", - FileStatus.UPLOADED => "UPLOADED", - FileStatus.UPLOADFAILED => "UPLOAD_FAILED", - FileStatus.PROCESSED => "PROCESSED", - FileStatus.PROCESSINGFAILED => "PROCESSING_FAILED", + FileStatus.DbRecordCreated => "DB_RECORD_CREATED", + FileStatus.Uploaded => "UPLOADED", + FileStatus.UploadFailed => "UPLOAD_FAILED", + FileStatus.Processed => "PROCESSED", + FileStatus.ProcessingFailed => "PROCESSING_FAILED", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -57,11 +57,11 @@ public static string ToValueString(this FileStatus value) { return value switch { - "DB_RECORD_CREATED" => FileStatus.DBRECORDCREATED, - "UPLOADED" => FileStatus.UPLOADED, - "UPLOAD_FAILED" => FileStatus.UPLOADFAILED, - "PROCESSED" => FileStatus.PROCESSED, - "PROCESSING_FAILED" => FileStatus.PROCESSINGFAILED, + "DB_RECORD_CREATED" => FileStatus.DbRecordCreated, + "UPLOADED" => FileStatus.Uploaded, + "UPLOAD_FAILED" => FileStatus.UploadFailed, + "PROCESSED" => FileStatus.Processed, + "PROCESSING_FAILED" => FileStatus.ProcessingFailed, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs new file mode 100644 index 0000000..5011e45 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse), + jsonSerializerContext) as global::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse; + } + + /// + /// 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::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.g.cs new file mode 100644 index 0000000..b5d81d6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs new file mode 100644 index 0000000..8b2a350 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse), + jsonSerializerContext) as global::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse; + } + + /// + /// 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::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.g.cs new file mode 100644 index 0000000..8e3ca11 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs new file mode 100644 index 0000000..e8bc55d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse), + jsonSerializerContext) as global::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse; + } + + /// + /// 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::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs new file mode 100644 index 0000000..aa29d96 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs new file mode 100644 index 0000000..5915912 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse), + jsonSerializerContext) as global::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse; + } + + /// + /// 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::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs new file mode 100644 index 0000000..50a158d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.Json.g.cs new file mode 100644 index 0000000..080d86c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.g.cs new file mode 100644 index 0000000..f97f85e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs new file mode 100644 index 0000000..cf5ba65 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs new file mode 100644 index 0000000..fe5ba42 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs new file mode 100644 index 0000000..3bce044 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs new file mode 100644 index 0000000..0b57894 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.Json.g.cs new file mode 100644 index 0000000..8b867e6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.g.cs new file mode 100644 index 0000000..98353f3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs new file mode 100644 index 0000000..a63dd69 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs new file mode 100644 index 0000000..dc2e89c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs new file mode 100644 index 0000000..6cd8093 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse; + } + + /// + /// 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::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs new file mode 100644 index 0000000..983d06e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..c5ced78 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.g.cs new file mode 100644 index 0000000..2b4c4dc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs new file mode 100644 index 0000000..04c96a7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs new file mode 100644 index 0000000..6501dcf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs new file mode 100644 index 0000000..7b727bf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs new file mode 100644 index 0000000..bfc4103 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..66730cc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.g.cs new file mode 100644 index 0000000..1caee80 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs new file mode 100644 index 0000000..cd05d29 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs new file mode 100644 index 0000000..a40e9e0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs new file mode 100644 index 0000000..2d90b72 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse), + jsonSerializerContext) as global::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse; + } + + /// + /// 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::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs new file mode 100644 index 0000000..aed48d2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.Json.g.cs new file mode 100644 index 0000000..30ed239 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse; + } + + /// + /// 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::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.g.cs new file mode 100644 index 0000000..3145a86 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.Json.g.cs similarity index 80% rename from src/libs/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.Json.g.cs index 437ef8f..3b1cce4 100644 --- a/src/libs/AI21/Generated/AI21.Models.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse + public sealed partial class FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse? FromJson( + public static global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse), - jsonSerializerContext) as global::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse; + typeof(global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse; } /// @@ -51,11 +51,11 @@ 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::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse? FromJson( + public static global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ExecuteConvRagStudioV1DemosScraperConversationalRagPostResponse; + typeof(global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.g.cs new file mode 100644 index 0000000..1d30256 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1ClassificationsSolutionsFnacV1ClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.Json.g.cs new file mode 100644 index 0000000..a7797a7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse; + } + + /// + /// 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::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.g.cs new file mode 100644 index 0000000..fc62dc0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.Json.g.cs new file mode 100644 index 0000000..da916e6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse; + } + + /// + /// 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::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.g.cs new file mode 100644 index 0000000..3ca2582 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..44517be --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.g.cs new file mode 100644 index 0000000..215f260 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..451d1b2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.g.cs new file mode 100644 index 0000000..20c7166 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..c482970 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.g.cs new file mode 100644 index 0000000..44697dd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.Json.g.cs new file mode 100644 index 0000000..3c297ed --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse), + jsonSerializerContext) as global::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse; + } + + /// + /// 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::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.g.cs new file mode 100644 index 0000000..62c6c67 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class FnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.GenerateAssistantRequest.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantRequest.Json.g.cs new file mode 100644 index 0000000..9d06c36 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GenerateAssistantRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GenerateAssistantRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GenerateAssistantRequest), + jsonSerializerContext) as global::AI21.GenerateAssistantRequest; + } + + /// + /// 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::AI21.GenerateAssistantRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GenerateAssistantRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GenerateAssistantRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantRequest.g.cs new file mode 100644 index 0000000..8ff04dd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantRequest.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GenerateAssistantRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string? Avatar { 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. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerateAssistantRequest( + string prompt, + string? avatar) + { + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.Avatar = avatar; + } + + /// + /// Initializes a new instance of the class. + /// + public GenerateAssistantRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.Json.g.cs new file mode 100644 index 0000000..b6bec84 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GenerateAssistantResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GenerateAssistantResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GenerateAssistantResponse), + jsonSerializerContext) as global::AI21.GenerateAssistantResponse; + } + + /// + /// 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::AI21.GenerateAssistantResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GenerateAssistantResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GenerateAssistantResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.g.cs new file mode 100644 index 0000000..6f07e56 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponse.g.cs @@ -0,0 +1,298 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GenerateAssistantResponse + { + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [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("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Object { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimization")] + public string? Optimization { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("organization_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OrganizationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public string? WorkspaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UserId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string? Avatar { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] + public bool? IsArchived { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>))] + public global::AI21.AnyOf, global::System.Collections.Generic.IList>? Models { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] + public global::System.Collections.Generic.IList? Requirements { get; set; } + + /// + /// Default Value: medium + /// + [global::System.Text.Json.Serialization.JsonPropertyName("budget")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.BudgetLevelJsonConverter))] + public global::AI21.BudgetLevel? Budget { get; set; } + + /// + /// Default Value: public + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.VisibilityJsonConverter))] + public global::AI21.Visibility? Visibility { get; set; } + + /// + /// Default Value: default + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assistant_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AssistantTypeJsonConverter))] + public global::AI21.AssistantType? AssistantType { get; set; } + + /// + /// Default Value: unset + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.GenerateAssistantResponseResponseLanguageJsonConverter))] + public global::AI21.GenerateAssistantResponseResponseLanguage? ResponseLanguage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("vibe_prompt")] + public string? VibePrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("starter_questions")] + public global::System.Collections.Generic.IList? StarterQuestions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workflow_config")] + public global::AI21.WorkflowConfig? WorkflowConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_overrides")] + public object? ConfigOverrides { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_tool_needed")] + public global::System.Collections.Generic.Dictionary? CustomToolNeeded { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recommended_files")] + public global::System.Collections.Generic.IList? RecommendedFiles { 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. + /// + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// + /// + /// Default Value: medium + /// + /// + /// Default Value: public + /// + /// + /// Default Value: default + /// + /// + /// Default Value: unset + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GenerateAssistantResponse( + string id, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string @object, + string name, + string organizationId, + string userId, + string? description, + string? optimization, + string? workspaceId, + string? avatar, + bool? isArchived, + global::AI21.AnyOf, global::System.Collections.Generic.IList>? models, + global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? requirements, + global::AI21.BudgetLevel? budget, + global::AI21.Visibility? visibility, + global::AI21.AssistantType? assistantType, + global::AI21.GenerateAssistantResponseResponseLanguage? responseLanguage, + string? vibePrompt, + global::System.Collections.Generic.IList? starterQuestions, + string? systemPrompt, + global::AI21.WorkflowConfig? workflowConfig, + object? configOverrides, + global::System.Collections.Generic.Dictionary? customToolNeeded, + global::System.Collections.Generic.IList? recommendedFiles) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Object = @object ?? throw new global::System.ArgumentNullException(nameof(@object)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.OrganizationId = organizationId ?? throw new global::System.ArgumentNullException(nameof(organizationId)); + this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); + this.Description = description; + this.Optimization = optimization; + this.WorkspaceId = workspaceId; + this.Avatar = avatar; + this.IsArchived = isArchived; + this.Models = models; + this.Tools = tools; + this.Requirements = requirements; + this.Budget = budget; + this.Visibility = visibility; + this.AssistantType = assistantType; + this.ResponseLanguage = responseLanguage; + this.VibePrompt = vibePrompt; + this.StarterQuestions = starterQuestions; + this.SystemPrompt = systemPrompt; + this.WorkflowConfig = workflowConfig; + this.ConfigOverrides = configOverrides; + this.CustomToolNeeded = customToolNeeded; + this.RecommendedFiles = recommendedFiles; + } + + /// + /// Initializes a new instance of the class. + /// + public GenerateAssistantResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.Json.g.cs new file mode 100644 index 0000000..4fd6c08 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GenerateAssistantResponseConfigOverrides + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GenerateAssistantResponseConfigOverrides? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GenerateAssistantResponseConfigOverrides), + jsonSerializerContext) as global::AI21.GenerateAssistantResponseConfigOverrides; + } + + /// + /// 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::AI21.GenerateAssistantResponseConfigOverrides? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GenerateAssistantResponseConfigOverrides), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GenerateAssistantResponseConfigOverrides; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.g.cs new file mode 100644 index 0000000..44780c0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseConfigOverrides.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GenerateAssistantResponseConfigOverrides + { + + /// + /// 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/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.Json.g.cs new file mode 100644 index 0000000..de8b601 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GenerateAssistantResponseCustomToolNeeded + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GenerateAssistantResponseCustomToolNeeded? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GenerateAssistantResponseCustomToolNeeded), + jsonSerializerContext) as global::AI21.GenerateAssistantResponseCustomToolNeeded; + } + + /// + /// 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::AI21.GenerateAssistantResponseCustomToolNeeded? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GenerateAssistantResponseCustomToolNeeded), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GenerateAssistantResponseCustomToolNeeded; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.g.cs new file mode 100644 index 0000000..ee271d1 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseCustomToolNeeded.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GenerateAssistantResponseCustomToolNeeded + { + + /// + /// 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/AI21/Generated/AI21.Models.GenerateAssistantResponseResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseResponseLanguage.g.cs new file mode 100644 index 0000000..c15e4ad --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GenerateAssistantResponseResponseLanguage.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: unset + /// + public enum GenerateAssistantResponseResponseLanguage + { + /// + /// + /// + Arabic, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Hebrew, + /// + /// + /// + Italian, + /// + /// + /// + Portuguese, + /// + /// + /// + Spanish, + /// + /// + /// + Unset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GenerateAssistantResponseResponseLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GenerateAssistantResponseResponseLanguage value) + { + return value switch + { + GenerateAssistantResponseResponseLanguage.Arabic => "arabic", + GenerateAssistantResponseResponseLanguage.Dutch => "dutch", + GenerateAssistantResponseResponseLanguage.English => "english", + GenerateAssistantResponseResponseLanguage.French => "french", + GenerateAssistantResponseResponseLanguage.German => "german", + GenerateAssistantResponseResponseLanguage.Hebrew => "hebrew", + GenerateAssistantResponseResponseLanguage.Italian => "italian", + GenerateAssistantResponseResponseLanguage.Portuguese => "portuguese", + GenerateAssistantResponseResponseLanguage.Spanish => "spanish", + GenerateAssistantResponseResponseLanguage.Unset => "unset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GenerateAssistantResponseResponseLanguage? ToEnum(string value) + { + return value switch + { + "arabic" => GenerateAssistantResponseResponseLanguage.Arabic, + "dutch" => GenerateAssistantResponseResponseLanguage.Dutch, + "english" => GenerateAssistantResponseResponseLanguage.English, + "french" => GenerateAssistantResponseResponseLanguage.French, + "german" => GenerateAssistantResponseResponseLanguage.German, + "hebrew" => GenerateAssistantResponseResponseLanguage.Hebrew, + "italian" => GenerateAssistantResponseResponseLanguage.Italian, + "portuguese" => GenerateAssistantResponseResponseLanguage.Portuguese, + "spanish" => GenerateAssistantResponseResponseLanguage.Spanish, + "unset" => GenerateAssistantResponseResponseLanguage.Unset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.Json.g.cs new file mode 100644 index 0000000..09747f3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse), + jsonSerializerContext) as global::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse; + } + + /// + /// 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::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.g.cs new file mode 100644 index 0000000..d64118b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.Json.g.cs new file mode 100644 index 0000000..b9343d7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse), + jsonSerializerContext) as global::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse; + } + + /// + /// 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::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.g.cs new file mode 100644 index 0000000..f976ac8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.Json.g.cs new file mode 100644 index 0000000..9a731d8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse), + jsonSerializerContext) as global::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse; + } + + /// + /// 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::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.g.cs new file mode 100644 index 0000000..d748e0d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.HTTPToolEndpoint.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpoint.Json.g.cs new file mode 100644 index 0000000..da58c9c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpoint.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class HTTPToolEndpoint + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.HTTPToolEndpoint? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.HTTPToolEndpoint), + jsonSerializerContext) as global::AI21.HTTPToolEndpoint; + } + + /// + /// 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::AI21.HTTPToolEndpoint? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.HTTPToolEndpoint), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolEndpoint; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResources.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpoint.g.cs similarity index 56% rename from src/libs/AI21/Generated/AI21.Models.ToolResources.g.cs rename to src/libs/AI21/Generated/AI21.Models.HTTPToolEndpoint.g.cs index 13af582..658f52c 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResources.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpoint.g.cs @@ -6,19 +6,20 @@ namespace AI21 /// /// /// - public sealed partial class ToolResources + public sealed partial class HTTPToolEndpoint { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_search")] - public object? FileSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("web_search")] - public object? WebSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public object? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +28,25 @@ public sealed partial class ToolResources 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 ToolResources( - object? fileSearch, - object? webSearch) + public HTTPToolEndpoint( + string url, + object? headers) { - this.FileSearch = fileSearch; - this.WebSearch = webSearch; + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + this.Headers = headers; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ToolResources() + public HTTPToolEndpoint() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.Json.g.cs index a1ab366..f9f0231 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagSource.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ConversationalRagSource + public sealed partial class HTTPToolEndpointHeaders { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ConversationalRagSource? FromJson( + public static global::AI21.HTTPToolEndpointHeaders? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ConversationalRagSource), - jsonSerializerContext) as global::AI21.ConversationalRagSource; + typeof(global::AI21.HTTPToolEndpointHeaders), + jsonSerializerContext) as global::AI21.HTTPToolEndpointHeaders; } /// @@ -51,11 +51,11 @@ 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::AI21.ConversationalRagSource? FromJson( + public static global::AI21.HTTPToolEndpointHeaders? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ConversationalRagSource), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ConversationalRagSource; + typeof(global::AI21.HTTPToolEndpointHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolEndpointHeaders; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.g.cs similarity index 89% rename from src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.g.cs rename to src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.g.cs index eeebd45..cd18d60 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolEndpointHeaders.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class ToolResourcesFileSearch + public sealed partial class HTTPToolEndpointHeaders { /// diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.Json.g.cs new file mode 100644 index 0000000..116bfab --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class HTTPToolFunction + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.HTTPToolFunction? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.HTTPToolFunction), + jsonSerializerContext) as global::AI21.HTTPToolFunction; + } + + /// + /// 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::AI21.HTTPToolFunction? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.HTTPToolFunction), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolFunction; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.g.cs new file mode 100644 index 0000000..d3ec688 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunction.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class HTTPToolFunction + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AI21.HTTPToolFunctionParameters Parameters { 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. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public HTTPToolFunction( + string name, + string description, + global::AI21.HTTPToolFunctionParameters parameters) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Parameters = parameters ?? throw new global::System.ArgumentNullException(nameof(parameters)); + } + + /// + /// Initializes a new instance of the class. + /// + public HTTPToolFunction() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.Json.g.cs similarity index 85% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.Json.g.cs index 2a58f7c..5c1c4de 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceFileSearch.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class AssistantToolResourceFileSearch + public sealed partial class HTTPToolFunctionParamProperties { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.AssistantToolResourceFileSearch? FromJson( + public static global::AI21.HTTPToolFunctionParamProperties? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.AssistantToolResourceFileSearch), - jsonSerializerContext) as global::AI21.AssistantToolResourceFileSearch; + typeof(global::AI21.HTTPToolFunctionParamProperties), + jsonSerializerContext) as global::AI21.HTTPToolFunctionParamProperties; } /// @@ -51,11 +51,11 @@ 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::AI21.AssistantToolResourceFileSearch? FromJson( + public static global::AI21.HTTPToolFunctionParamProperties? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.AssistantToolResourceFileSearch), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.AssistantToolResourceFileSearch; + typeof(global::AI21.HTTPToolFunctionParamProperties), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolFunctionParamProperties; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.g.cs new file mode 100644 index 0000000..f09ed05 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParamProperties.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class HTTPToolFunctionParamProperties + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { 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. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public HTTPToolFunctionParamProperties( + string type, + string description) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + } + + /// + /// Initializes a new instance of the class. + /// + public HTTPToolFunctionParamProperties() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.Json.g.cs new file mode 100644 index 0000000..d33dbce --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class HTTPToolFunctionParameters + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.HTTPToolFunctionParameters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.HTTPToolFunctionParameters), + jsonSerializerContext) as global::AI21.HTTPToolFunctionParameters; + } + + /// + /// 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::AI21.HTTPToolFunctionParameters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.HTTPToolFunctionParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolFunctionParameters; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.g.cs new file mode 100644 index 0000000..137a2da --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParameters.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class HTTPToolFunctionParameters + { + /// + /// Default Value: object + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.HTTPToolFunctionParametersTypeJsonConverter))] + public global::AI21.HTTPToolFunctionParametersType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary Properties { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Required { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("additionalProperties")] + public bool? AdditionalProperties { 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. + /// + /// + /// Default Value: object + /// + /// + /// + /// + /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public HTTPToolFunctionParameters( + global::System.Collections.Generic.Dictionary properties, + global::System.Collections.Generic.IList required, + global::AI21.HTTPToolFunctionParametersType? type, + bool? additionalProperties) + { + this.Properties = properties ?? throw new global::System.ArgumentNullException(nameof(properties)); + this.Required = required ?? throw new global::System.ArgumentNullException(nameof(required)); + this.Type = type; + this.AdditionalProperties = additionalProperties; + } + + /// + /// Initializes a new instance of the class. + /// + public HTTPToolFunctionParameters() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.Json.g.cs new file mode 100644 index 0000000..b6ce9fd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class HTTPToolFunctionParametersProperties + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.HTTPToolFunctionParametersProperties? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.HTTPToolFunctionParametersProperties), + jsonSerializerContext) as global::AI21.HTTPToolFunctionParametersProperties; + } + + /// + /// 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::AI21.HTTPToolFunctionParametersProperties? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.HTTPToolFunctionParametersProperties), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolFunctionParametersProperties; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.g.cs rename to src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.g.cs index 218a195..dfcb680 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourcePlanApproval.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersProperties.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class AssistantToolResourcePlanApproval + public sealed partial class HTTPToolFunctionParametersProperties { /// diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersType.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersType.g.cs new file mode 100644 index 0000000..cf61c7a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolFunctionParametersType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: object + /// + public enum HTTPToolFunctionParametersType + { + /// + /// + /// + Object, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class HTTPToolFunctionParametersTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this HTTPToolFunctionParametersType value) + { + return value switch + { + HTTPToolFunctionParametersType.Object => "object", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static HTTPToolFunctionParametersType? ToEnum(string value) + { + return value switch + { + "object" => HTTPToolFunctionParametersType.Object, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.Json.g.cs new file mode 100644 index 0000000..638ea2c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class HTTPToolResource + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.HTTPToolResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.HTTPToolResource), + jsonSerializerContext) as global::AI21.HTTPToolResource; + } + + /// + /// 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::AI21.HTTPToolResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.HTTPToolResource), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.HTTPToolResource; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.g.cs new file mode 100644 index 0000000..ac04d5b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolResource.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class HTTPToolResource + { + /// + /// Default Value: http + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.HTTPToolResourceTypeJsonConverter))] + public global::AI21.HTTPToolResourceType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("function")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AI21.HTTPToolFunction Function { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AI21.HTTPToolEndpoint Endpoint { 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. + /// + /// + /// Default Value: http + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public HTTPToolResource( + global::AI21.HTTPToolFunction function, + global::AI21.HTTPToolEndpoint endpoint, + global::AI21.HTTPToolResourceType? type) + { + this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function)); + this.Endpoint = endpoint ?? throw new global::System.ArgumentNullException(nameof(endpoint)); + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public HTTPToolResource() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.HTTPToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.Models.HTTPToolResourceType.g.cs new file mode 100644 index 0000000..62ed235 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.HTTPToolResourceType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: http + /// + public enum HTTPToolResourceType + { + /// + /// + /// + Http, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class HTTPToolResourceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this HTTPToolResourceType value) + { + return value switch + { + HTTPToolResourceType.Http => "http", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static HTTPToolResourceType? ToEnum(string value) + { + return value switch + { + "http" => HTTPToolResourceType.Http, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.Json.g.cs new file mode 100644 index 0000000..50a0961 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse), + jsonSerializerContext) as global::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse; + } + + /// + /// 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::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.g.cs new file mode 100644 index 0000000..418c4b6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.Json.g.cs new file mode 100644 index 0000000..d805bfe --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse), + jsonSerializerContext) as global::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse; + } + + /// + /// 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::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.g.cs new file mode 100644 index 0000000..cccd852 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.Json.g.cs new file mode 100644 index 0000000..09ec9ba --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse), + jsonSerializerContext) as global::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse; + } + + /// + /// 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::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.g.cs new file mode 100644 index 0000000..444cfe2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.Json.g.cs new file mode 100644 index 0000000..57676eb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse), + jsonSerializerContext) as global::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse; + } + + /// + /// 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::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.g.cs new file mode 100644 index 0000000..bee3130 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshEmailAssistantSolutionsKirshEmailAssistantPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.Json.g.cs new file mode 100644 index 0000000..ea5c20b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse), + jsonSerializerContext) as global::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse; + } + + /// + /// 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::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.g.cs new file mode 100644 index 0000000..ec4c20d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.Json.g.cs new file mode 100644 index 0000000..30382f9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse), + jsonSerializerContext) as global::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse; + } + + /// + /// 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::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.g.cs new file mode 100644 index 0000000..eec4a5b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshGrantComplianceSolutionsKirshGrantCompliancePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.Json.g.cs new file mode 100644 index 0000000..40713fb --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse), + jsonSerializerContext) as global::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse; + } + + /// + /// 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::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.g.cs new file mode 100644 index 0000000..57242cd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.Json.g.cs new file mode 100644 index 0000000..ec607a4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse), + jsonSerializerContext) as global::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse; + } + + /// + /// 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::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.g.cs new file mode 100644 index 0000000..49d38b3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class KirshGrantMetadataSolutionsKirshGrantMetadataPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.Json.g.cs new file mode 100644 index 0000000..f3fee02 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class LanguageStudioApiServerDataTypesAssistantRequirement + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.LanguageStudioApiServerDataTypesAssistantRequirement? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.LanguageStudioApiServerDataTypesAssistantRequirement), + jsonSerializerContext) as global::AI21.LanguageStudioApiServerDataTypesAssistantRequirement; + } + + /// + /// 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::AI21.LanguageStudioApiServerDataTypesAssistantRequirement? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.LanguageStudioApiServerDataTypesAssistantRequirement), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.LanguageStudioApiServerDataTypesAssistantRequirement; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.g.cs new file mode 100644 index 0000000..bfa204a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesAssistantRequirement.g.cs @@ -0,0 +1,76 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class LanguageStudioApiServerDataTypesAssistantRequirement + { + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { 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. + /// + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LanguageStudioApiServerDataTypesAssistantRequirement( + string? id, + string? title, + string? description, + string? type) + { + this.Id = id; + this.Title = title; + this.Description = description; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public LanguageStudioApiServerDataTypesAssistantRequirement() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.Json.g.cs new file mode 100644 index 0000000..238da8a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class LanguageStudioApiServerDataTypesChatToolDefinition + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.LanguageStudioApiServerDataTypesChatToolDefinition? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.LanguageStudioApiServerDataTypesChatToolDefinition), + jsonSerializerContext) as global::AI21.LanguageStudioApiServerDataTypesChatToolDefinition; + } + + /// + /// 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::AI21.LanguageStudioApiServerDataTypesChatToolDefinition? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.LanguageStudioApiServerDataTypesChatToolDefinition), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.LanguageStudioApiServerDataTypesChatToolDefinition; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ToolDefinition.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.g.cs similarity index 66% rename from src/libs/AI21/Generated/AI21.Models.ToolDefinition.g.cs rename to src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.g.cs index 61d555c..b2a12fa 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolDefinition.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinition.g.cs @@ -6,14 +6,14 @@ namespace AI21 /// /// /// - public sealed partial class ToolDefinition + public sealed partial class LanguageStudioApiServerDataTypesChatToolDefinition { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ToolDefinitionTypeJsonConverter))] - public global::AI21.ToolDefinitionType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesChatToolDefinitionTypeJsonConverter))] + public global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType Type { get; set; } /// /// @@ -29,25 +29,25 @@ public sealed partial class ToolDefinition 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 ToolDefinition( + public LanguageStudioApiServerDataTypesChatToolDefinition( global::AI21.FunctionToolDefinition function, - global::AI21.ToolDefinitionType type) + global::AI21.LanguageStudioApiServerDataTypesChatToolDefinitionType type) { this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ToolDefinition() + public LanguageStudioApiServerDataTypesChatToolDefinition() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs new file mode 100644 index 0000000..f78bf41 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesChatToolDefinitionType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public enum LanguageStudioApiServerDataTypesChatToolDefinitionType + { + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class LanguageStudioApiServerDataTypesChatToolDefinitionTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this LanguageStudioApiServerDataTypesChatToolDefinitionType value) + { + return value switch + { + LanguageStudioApiServerDataTypesChatToolDefinitionType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static LanguageStudioApiServerDataTypesChatToolDefinitionType? ToEnum(string value) + { + return value switch + { + "function" => LanguageStudioApiServerDataTypesChatToolDefinitionType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.Json.g.cs new file mode 100644 index 0000000..d8056d7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class LanguageStudioApiServerDataTypesExecutionEngineRequirement + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement), + jsonSerializerContext) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement; + } + + /// + /// 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineRequirement; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.Requirement.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.g.cs similarity index 79% rename from src/libs/AI21/Generated/AI21.Models.Requirement.g.cs rename to src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.g.cs index dbe5c25..3ee0277 100644 --- a/src/libs/AI21/Generated/AI21.Models.Requirement.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineRequirement.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class Requirement + public sealed partial class LanguageStudioApiServerDataTypesExecutionEngineRequirement { /// /// @@ -35,7 +35,7 @@ public sealed partial class Requirement 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. /// /// /// @@ -43,7 +43,7 @@ public sealed partial class Requirement #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Requirement( + public LanguageStudioApiServerDataTypesExecutionEngineRequirement( string name, string description, bool? isMandatory) @@ -54,9 +54,9 @@ public Requirement( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Requirement() + public LanguageStudioApiServerDataTypesExecutionEngineRequirement() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.Json.g.cs new file mode 100644 index 0000000..a7cbcca --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public readonly partial struct LanguageStudioApiServerDataTypesExecutionEngineToolDefinition + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition), + jsonSerializerContext) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition?; + } + + /// + /// 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition?; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs new file mode 100644 index 0000000..7dfce32 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinition.g.cs @@ -0,0 +1,333 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public readonly partial struct LanguageStudioApiServerDataTypesExecutionEngineToolDefinition : global::System.IEquatable + { + /// + /// + /// + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AI21.HTTPToolResource? Http { get; init; } +#else + public global::AI21.HTTPToolResource? Http { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Http))] +#endif + public bool IsHttp => Http != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AI21.MCPToolResource? Mcp { get; init; } +#else + public global::AI21.MCPToolResource? Mcp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] +#endif + public bool IsMcp => Mcp != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AI21.FileSearchToolResource? FileSearch { get; init; } +#else + public global::AI21.FileSearchToolResource? FileSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FileSearch))] +#endif + public bool IsFileSearch => FileSearch != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::AI21.WebSearchToolResource? WebSearch { get; init; } +#else + public global::AI21.WebSearchToolResource? WebSearch { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebSearch))] +#endif + public bool IsWebSearch => WebSearch != null; + /// + /// + /// + public static implicit operator LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.HTTPToolResource value) => new LanguageStudioApiServerDataTypesExecutionEngineToolDefinition((global::AI21.HTTPToolResource?)value); + + /// + /// + /// + public static implicit operator global::AI21.HTTPToolResource?(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition @this) => @this.Http; + + /// + /// + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.HTTPToolResource? value) + { + Http = value; + } + + /// + /// + /// + public static implicit operator LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.MCPToolResource value) => new LanguageStudioApiServerDataTypesExecutionEngineToolDefinition((global::AI21.MCPToolResource?)value); + + /// + /// + /// + public static implicit operator global::AI21.MCPToolResource?(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition @this) => @this.Mcp; + + /// + /// + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.MCPToolResource? value) + { + Mcp = value; + } + + /// + /// + /// + public static implicit operator LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.FileSearchToolResource value) => new LanguageStudioApiServerDataTypesExecutionEngineToolDefinition((global::AI21.FileSearchToolResource?)value); + + /// + /// + /// + public static implicit operator global::AI21.FileSearchToolResource?(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition @this) => @this.FileSearch; + + /// + /// + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.FileSearchToolResource? value) + { + FileSearch = value; + } + + /// + /// + /// + public static implicit operator LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.WebSearchToolResource value) => new LanguageStudioApiServerDataTypesExecutionEngineToolDefinition((global::AI21.WebSearchToolResource?)value); + + /// + /// + /// + public static implicit operator global::AI21.WebSearchToolResource?(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition @this) => @this.WebSearch; + + /// + /// + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinition(global::AI21.WebSearchToolResource? value) + { + WebSearch = value; + } + + /// + /// + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinition( + global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? type, + global::AI21.HTTPToolResource? http, + global::AI21.MCPToolResource? mcp, + global::AI21.FileSearchToolResource? fileSearch, + global::AI21.WebSearchToolResource? webSearch + ) + { + Type = type; + + Http = http; + Mcp = mcp; + FileSearch = fileSearch; + WebSearch = webSearch; + } + + /// + /// + /// + public object? Object => + WebSearch as object ?? + FileSearch as object ?? + Mcp as object ?? + Http as object + ; + + /// + /// + /// + public override string? ToString() => + Http?.ToString() ?? + Mcp?.ToString() ?? + FileSearch?.ToString() ?? + WebSearch?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsHttp && !IsMcp && !IsFileSearch && !IsWebSearch || !IsHttp && IsMcp && !IsFileSearch && !IsWebSearch || !IsHttp && !IsMcp && IsFileSearch && !IsWebSearch || !IsHttp && !IsMcp && !IsFileSearch && IsWebSearch; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? http = null, + global::System.Func? mcp = null, + global::System.Func? fileSearch = null, + global::System.Func? webSearch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsHttp && http != null) + { + return http(Http!); + } + else if (IsMcp && mcp != null) + { + return mcp(Mcp!); + } + else if (IsFileSearch && fileSearch != null) + { + return fileSearch(FileSearch!); + } + else if (IsWebSearch && webSearch != null) + { + return webSearch(WebSearch!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? http = null, + global::System.Action? mcp = null, + global::System.Action? fileSearch = null, + global::System.Action? webSearch = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsHttp) + { + http?.Invoke(Http!); + } + else if (IsMcp) + { + mcp?.Invoke(Mcp!); + } + else if (IsFileSearch) + { + fileSearch?.Invoke(FileSearch!); + } + else if (IsWebSearch) + { + webSearch?.Invoke(WebSearch!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Http, + typeof(global::AI21.HTTPToolResource), + Mcp, + typeof(global::AI21.MCPToolResource), + FileSearch, + typeof(global::AI21.FileSearchToolResource), + WebSearch, + typeof(global::AI21.WebSearchToolResource), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Http, other.Http) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FileSearch, other.FileSearch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearch, other.WebSearch) + ; + } + + /// + /// + /// + public static bool operator ==(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition obj1, LanguageStudioApiServerDataTypesExecutionEngineToolDefinition obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(LanguageStudioApiServerDataTypesExecutionEngineToolDefinition obj1, LanguageStudioApiServerDataTypesExecutionEngineToolDefinition obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is LanguageStudioApiServerDataTypesExecutionEngineToolDefinition o && Equals(o); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.Json.g.cs new file mode 100644 index 0000000..c86cc10 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator), + jsonSerializerContext) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator; + } + + /// + /// 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.g.cs new file mode 100644 index 0000000..f8fdb45 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeJsonConverter))] + public global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? Type { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator( + global::AI21.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs new file mode 100644 index 0000000..7ac5250 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public enum LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType + { + /// + /// + /// + Http, + /// + /// + /// + Mcp, + /// + /// + /// + FileSearch, + /// + /// + /// + WebSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType value) + { + return value switch + { + LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Http => "http", + LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Mcp => "mcp", + LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.FileSearch => "file_search", + LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.WebSearch => "web_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType? ToEnum(string value) + { + return value switch + { + "http" => LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Http, + "mcp" => LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.Mcp, + "file_search" => LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.FileSearch, + "web_search" => LanguageStudioApiServerDataTypesExecutionEngineToolDefinitionDiscriminatorType.WebSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.LibrarySearchRequestLabelsFilterMode.g.cs b/src/libs/AI21/Generated/AI21.Models.LibrarySearchRequestLabelsFilterMode.g.cs index 0982317..5edd607 100644 --- a/src/libs/AI21/Generated/AI21.Models.LibrarySearchRequestLabelsFilterMode.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.LibrarySearchRequestLabelsFilterMode.g.cs @@ -11,11 +11,11 @@ public enum LibrarySearchRequestLabelsFilterMode /// /// /// - AND, + And, /// /// /// - OR, + Or, } /// @@ -30,8 +30,8 @@ public static string ToValueString(this LibrarySearchRequestLabelsFilterMode val { return value switch { - LibrarySearchRequestLabelsFilterMode.AND => "AND", - LibrarySearchRequestLabelsFilterMode.OR => "OR", + LibrarySearchRequestLabelsFilterMode.And => "AND", + LibrarySearchRequestLabelsFilterMode.Or => "OR", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -42,8 +42,8 @@ public static string ToValueString(this LibrarySearchRequestLabelsFilterMode val { return value switch { - "AND" => LibrarySearchRequestLabelsFilterMode.AND, - "OR" => LibrarySearchRequestLabelsFilterMode.OR, + "AND" => LibrarySearchRequestLabelsFilterMode.And, + "OR" => LibrarySearchRequestLabelsFilterMode.Or, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.Json.g.cs index d4966fd..1f4cbf5 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResourcesFileSearch.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ToolResourcesFileSearch + public sealed partial class ListMCPsStorageResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ToolResourcesFileSearch? FromJson( + public static global::AI21.ListMCPsStorageResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ToolResourcesFileSearch), - jsonSerializerContext) as global::AI21.ToolResourcesFileSearch; + typeof(global::AI21.ListMCPsStorageResponse), + jsonSerializerContext) as global::AI21.ListMCPsStorageResponse; } /// @@ -51,11 +51,11 @@ 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::AI21.ToolResourcesFileSearch? FromJson( + public static global::AI21.ListMCPsStorageResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ToolResourcesFileSearch), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ToolResourcesFileSearch; + typeof(global::AI21.ListMCPsStorageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ListMCPsStorageResponse; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.g.cs new file mode 100644 index 0000000..a46446c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ListMCPsStorageResponse.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class ListMCPsStorageResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Results { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListMCPsStorageResponse( + global::System.Collections.Generic.IList results) + { + this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListMCPsStorageResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResources.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDefinition.Json.g.cs similarity index 89% rename from src/libs/AI21/Generated/AI21.Models.ToolResources.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPDefinition.Json.g.cs index afc797e..3500963 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResources.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPDefinition.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ToolResources + public sealed partial class MCPDefinition { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ToolResources? FromJson( + public static global::AI21.MCPDefinition? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ToolResources), - jsonSerializerContext) as global::AI21.ToolResources; + typeof(global::AI21.MCPDefinition), + jsonSerializerContext) as global::AI21.MCPDefinition; } /// @@ -51,11 +51,11 @@ 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::AI21.ToolResources? FromJson( + public static global::AI21.MCPDefinition? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ToolResources), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ToolResources; + typeof(global::AI21.MCPDefinition), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPDefinition; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDefinition.g.cs similarity index 56% rename from src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPDefinition.g.cs index 30418eb..b59b38f 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPDefinition.g.cs @@ -6,26 +6,26 @@ namespace AI21 /// /// /// - public sealed partial class ConvRagExecuteRequest + public sealed partial class MCPDefinition { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonPropertyName("server_url")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } + public required string ServerUrl { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - public string? Label { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("server_label")] + public string? ServerLabel { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] - public string? ApiKey { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public object? Headers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -34,28 +34,28 @@ public sealed partial class ConvRagExecuteRequest 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 ConvRagExecuteRequest( - string message, - string? label, - string? apiKey) + public MCPDefinition( + string serverUrl, + string? serverLabel, + object? headers) { - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Label = label; - this.ApiKey = apiKey; + this.ServerUrl = serverUrl ?? throw new global::System.ArgumentNullException(nameof(serverUrl)); + this.ServerLabel = serverLabel; + this.Headers = headers; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ConvRagExecuteRequest() + public MCPDefinition() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.Json.g.cs new file mode 100644 index 0000000..a5f16de --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPDefinitionHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPDefinitionHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPDefinitionHeaders), + jsonSerializerContext) as global::AI21.MCPDefinitionHeaders; + } + + /// + /// 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::AI21.MCPDefinitionHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPDefinitionHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPDefinitionHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.g.cs similarity index 89% rename from src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.g.cs index f26209f..88817a4 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolResourcesWebSearch.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPDefinitionHeaders.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class ToolResourcesWebSearch + public sealed partial class MCPDefinitionHeaders { /// diff --git a/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.Json.g.cs new file mode 100644 index 0000000..b812890 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPDiscoveryResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPDiscoveryResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPDiscoveryResponse), + jsonSerializerContext) as global::AI21.MCPDiscoveryResponse; + } + + /// + /// 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::AI21.MCPDiscoveryResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPDiscoveryResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPDiscoveryResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.g.cs new file mode 100644 index 0000000..a8a6ba2 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPDiscoveryResponse.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MCPDiscoveryResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mcp_definition")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::AI21.MCPDefinition McpDefinition { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Tools { 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. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MCPDiscoveryResponse( + global::AI21.MCPDefinition mcpDefinition, + global::System.Collections.Generic.IList tools) + { + this.McpDefinition = mcpDefinition ?? throw new global::System.ArgumentNullException(nameof(mcpDefinition)); + this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); + } + + /// + /// Initializes a new instance of the class. + /// + public MCPDiscoveryResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.Json.g.cs new file mode 100644 index 0000000..1a5d39b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPStorageResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPStorageResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPStorageResponse), + jsonSerializerContext) as global::AI21.MCPStorageResponse; + } + + /// + /// 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::AI21.MCPStorageResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPStorageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPStorageResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.g.cs new file mode 100644 index 0000000..e7a0ce3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPStorageResponse.g.cs @@ -0,0 +1,138 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MCPStorageResponse + { + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServerUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServerLabel { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("organization_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid OrganizationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public global::System.Guid? WorkspaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid UserId { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("authentication_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AuthenticationTypeJsonConverter))] + public global::AI21.AuthenticationType? AuthenticationType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_header_name")] + public string? AuthHeaderName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_secret_key")] + public string? AuthSecretKey { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] + public global::System.Collections.Generic.IList? AllowedTools { 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. + /// + /// + /// A unique ID for the request (not the message). Repeated identical requests
+ /// get different IDs. However, for a streaming response, the ID will be the same
+ /// for all responses in the stream. + /// + /// + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MCPStorageResponse( + global::System.Guid id, + string serverUrl, + string serverLabel, + global::System.Guid organizationId, + global::System.Guid userId, + global::System.Guid? workspaceId, + global::AI21.AuthenticationType? authenticationType, + string? authHeaderName, + string? authSecretKey, + global::System.Collections.Generic.IList? allowedTools) + { + this.Id = id; + this.ServerUrl = serverUrl ?? throw new global::System.ArgumentNullException(nameof(serverUrl)); + this.ServerLabel = serverLabel ?? throw new global::System.ArgumentNullException(nameof(serverLabel)); + this.OrganizationId = organizationId; + this.UserId = userId; + this.WorkspaceId = workspaceId; + this.AuthenticationType = authenticationType; + this.AuthHeaderName = authHeaderName; + this.AuthSecretKey = authSecretKey; + this.AllowedTools = allowedTools; + } + + /// + /// Initializes a new instance of the class. + /// + public MCPStorageResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.Requirement.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPTool.Json.g.cs similarity index 89% rename from src/libs/AI21/Generated/AI21.Models.Requirement.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPTool.Json.g.cs index ba0dfa9..d7cf1ef 100644 --- a/src/libs/AI21/Generated/AI21.Models.Requirement.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPTool.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class Requirement + public sealed partial class MCPTool { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.Requirement? FromJson( + public static global::AI21.MCPTool? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.Requirement), - jsonSerializerContext) as global::AI21.Requirement; + typeof(global::AI21.MCPTool), + jsonSerializerContext) as global::AI21.MCPTool; } /// @@ -51,11 +51,11 @@ 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::AI21.Requirement? FromJson( + public static global::AI21.MCPTool? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.Requirement), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.Requirement; + typeof(global::AI21.MCPTool), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPTool; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.MCPTool.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPTool.g.cs new file mode 100644 index 0000000..5a84859 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPTool.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MCPTool + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputSchema")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object InputSchema { 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. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MCPTool( + string name, + object inputSchema, + string? description) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.InputSchema = inputSchema ?? throw new global::System.ArgumentNullException(nameof(inputSchema)); + this.Description = description; + } + + /// + /// Initializes a new instance of the class. + /// + public MCPTool() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.Json.g.cs new file mode 100644 index 0000000..f7d6bbd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPToolInputSchema + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPToolInputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPToolInputSchema), + jsonSerializerContext) as global::AI21.MCPToolInputSchema; + } + + /// + /// 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::AI21.MCPToolInputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPToolInputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPToolInputSchema; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantTool.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.g.cs similarity index 90% rename from src/libs/AI21/Generated/AI21.Models.AssistantTool.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.g.cs index fa67477..7b3813e 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantTool.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolInputSchema.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class AssistantTool + public sealed partial class MCPToolInputSchema { /// diff --git a/src/libs/AI21/Generated/AI21.Models.MCPToolResource.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolResource.Json.g.cs new file mode 100644 index 0000000..1471fb1 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolResource.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPToolResource + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPToolResource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPToolResource), + jsonSerializerContext) as global::AI21.MCPToolResource; + } + + /// + /// 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::AI21.MCPToolResource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPToolResource), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPToolResource; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.MCPToolResource.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolResource.g.cs new file mode 100644 index 0000000..cf7ca15 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolResource.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MCPToolResource + { + /// + /// Default Value: mcp + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.MCPToolResourceTypeJsonConverter))] + public global::AI21.MCPToolResourceType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_label")] + public string? ServerLabel { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_url")] + public string? ServerUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public object? Headers { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] + public global::System.Collections.Generic.IList? AllowedTools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mcp_id")] + public string? McpId { 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. + /// + /// + /// Default Value: mcp + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MCPToolResource( + global::AI21.MCPToolResourceType? type, + string? serverLabel, + string? serverUrl, + object? headers, + global::System.Collections.Generic.IList? allowedTools, + string? mcpId) + { + this.Type = type; + this.ServerLabel = serverLabel; + this.ServerUrl = serverUrl; + this.Headers = headers; + this.AllowedTools = allowedTools; + this.McpId = mcpId; + } + + /// + /// Initializes a new instance of the class. + /// + public MCPToolResource() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.Json.g.cs new file mode 100644 index 0000000..f074e49 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MCPToolResourceHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MCPToolResourceHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MCPToolResourceHeaders), + jsonSerializerContext) as global::AI21.MCPToolResourceHeaders; + } + + /// + /// 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::AI21.MCPToolResourceHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MCPToolResourceHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MCPToolResourceHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.g.cs new file mode 100644 index 0000000..e405423 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceHeaders.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MCPToolResourceHeaders + { + + /// + /// 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/AI21/Generated/AI21.Models.ToolDefinitionType.g.cs b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceType.g.cs similarity index 66% rename from src/libs/AI21/Generated/AI21.Models.ToolDefinitionType.g.cs rename to src/libs/AI21/Generated/AI21.Models.MCPToolResourceType.g.cs index 05d7bb6..55eff64 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolDefinitionType.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MCPToolResourceType.g.cs @@ -4,40 +4,40 @@ namespace AI21 { /// - /// + /// Default Value: mcp /// - public enum ToolDefinitionType + public enum MCPToolResourceType { /// /// /// - Function, + Mcp, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ToolDefinitionTypeExtensions + public static class MCPToolResourceTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ToolDefinitionType value) + public static string ToValueString(this MCPToolResourceType value) { return value switch { - ToolDefinitionType.Function => "function", + MCPToolResourceType.Mcp => "mcp", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ToolDefinitionType? ToEnum(string value) + public static MCPToolResourceType? ToEnum(string value) { return value switch { - "function" => ToolDefinitionType.Function, + "mcp" => MCPToolResourceType.Mcp, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.MaestroRunError.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.MaestroRunError.Json.g.cs new file mode 100644 index 0000000..ee8cc5b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MaestroRunError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class MaestroRunError + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.MaestroRunError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.MaestroRunError), + jsonSerializerContext) as global::AI21.MaestroRunError; + } + + /// + /// 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::AI21.MaestroRunError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.MaestroRunError), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.MaestroRunError; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.MaestroRunError.g.cs b/src/libs/AI21/Generated/AI21.Models.MaestroRunError.g.cs new file mode 100644 index 0000000..38c69be --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.MaestroRunError.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class MaestroRunError + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public MaestroRunError( + string message) + { + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public MaestroRunError() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.MaestroRunResult.g.cs b/src/libs/AI21/Generated/AI21.Models.MaestroRunResult.g.cs index acd9eb5..e84d8f9 100644 --- a/src/libs/AI21/Generated/AI21.Models.MaestroRunResult.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MaestroRunResult.g.cs @@ -43,6 +43,12 @@ public sealed partial class MaestroRunResult [global::System.Text.Json.Serialization.JsonPropertyName("requirements_result")] public object? RequirementsResult { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::AI21.MaestroRunError? Error { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,6 +67,7 @@ public sealed partial class MaestroRunResult /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -69,13 +76,15 @@ public MaestroRunResult( global::AI21.MaestroRunResultStatus status, object? result, object? dataSources, - object? requirementsResult) + object? requirementsResult, + global::AI21.MaestroRunError? error) { this.Id = id; this.Status = status; this.Result = result; this.DataSources = dataSources; this.RequirementsResult = requirementsResult; + this.Error = error; } /// diff --git a/src/libs/AI21/Generated/AI21.Models.MessagesItem.g.cs b/src/libs/AI21/Generated/AI21.Models.MessagesItem.g.cs index 16f3c36..aeadc8f 100644 --- a/src/libs/AI21/Generated/AI21.Models.MessagesItem.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.MessagesItem.g.cs @@ -34,72 +34,88 @@ namespace AI21 /// /// /// - public static implicit operator MessagesItem(global::AI21.UserMessage value) => new MessagesItem((global::AI21.UserMessage?)value); +#if NET6_0_OR_GREATER + public global::AI21.AssistantMessage? Assistant { get; init; } +#else + public global::AI21.AssistantMessage? Assistant { get; } +#endif /// /// /// - public static implicit operator global::AI21.UserMessage?(MessagesItem @this) => @this.User; +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Assistant))] +#endif + public bool IsAssistant => Assistant != null; /// /// /// - public MessagesItem(global::AI21.UserMessage? value) - { - User = value; - } +#if NET6_0_OR_GREATER + public global::AI21.ToolMessage? Tool { get; init; } +#else + public global::AI21.ToolMessage? Tool { get; } +#endif /// /// /// #if NET6_0_OR_GREATER - public global::AI21.AssistantMessage? Assistant { get; init; } -#else - public global::AI21.AssistantMessage? Assistant { get; } + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Tool))] #endif + public bool IsTool => Tool != null; /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Assistant))] + public global::AI21.SystemMessage? System { get; init; } +#else + public global::AI21.SystemMessage? System { get; } #endif - public bool IsAssistant => Assistant != null; /// /// /// - public static implicit operator MessagesItem(global::AI21.AssistantMessage value) => new MessagesItem((global::AI21.AssistantMessage?)value); +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(System))] +#endif + public bool IsSystem => System != null; + /// + /// + /// + public static implicit operator MessagesItem(global::AI21.UserMessage value) => new MessagesItem((global::AI21.UserMessage?)value); /// /// /// - public static implicit operator global::AI21.AssistantMessage?(MessagesItem @this) => @this.Assistant; + public static implicit operator global::AI21.UserMessage?(MessagesItem @this) => @this.User; /// /// /// - public MessagesItem(global::AI21.AssistantMessage? value) + public MessagesItem(global::AI21.UserMessage? value) { - Assistant = value; + User = value; } /// /// /// -#if NET6_0_OR_GREATER - public global::AI21.ToolMessage? Tool { get; init; } -#else - public global::AI21.ToolMessage? Tool { get; } -#endif + public static implicit operator MessagesItem(global::AI21.AssistantMessage value) => new MessagesItem((global::AI21.AssistantMessage?)value); /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Tool))] -#endif - public bool IsTool => Tool != null; + public static implicit operator global::AI21.AssistantMessage?(MessagesItem @this) => @this.Assistant; + + /// + /// + /// + public MessagesItem(global::AI21.AssistantMessage? value) + { + Assistant = value; + } /// /// @@ -119,23 +135,6 @@ public MessagesItem(global::AI21.ToolMessage? value) Tool = value; } - /// - /// - /// -#if NET6_0_OR_GREATER - public global::AI21.SystemMessage? System { get; init; } -#else - public global::AI21.SystemMessage? System { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(System))] -#endif - public bool IsSystem => System != null; - /// /// /// diff --git a/src/libs/AI21/Generated/AI21.Models.ModelName.g.cs b/src/libs/AI21/Generated/AI21.Models.ModelName.g.cs index a203297..e8d4569 100644 --- a/src/libs/AI21/Generated/AI21.Models.ModelName.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ModelName.g.cs @@ -19,19 +19,19 @@ public enum ModelName /// /// /// - JambaMini17, + JambaLarge17, /// /// /// - JambaLarge17, + JambaLarge17202507, /// /// /// - JambaMini17202507, + JambaMini2, /// /// /// - JambaLarge17202507, + JambaMini2202601, } /// @@ -48,10 +48,10 @@ public static string ToValueString(this ModelName value) { ModelName.JambaMini => "jamba-mini", ModelName.JambaLarge => "jamba-large", - ModelName.JambaMini17 => "jamba-mini-1.7", ModelName.JambaLarge17 => "jamba-large-1.7", - ModelName.JambaMini17202507 => "jamba-mini-1.7-2025-07", ModelName.JambaLarge17202507 => "jamba-large-1.7-2025-07", + ModelName.JambaMini2 => "jamba-mini-2", + ModelName.JambaMini2202601 => "jamba-mini-2-2026-01", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -64,10 +64,10 @@ public static string ToValueString(this ModelName value) { "jamba-mini" => ModelName.JambaMini, "jamba-large" => ModelName.JambaLarge, - "jamba-mini-1.7" => ModelName.JambaMini17, "jamba-large-1.7" => ModelName.JambaLarge17, - "jamba-mini-1.7-2025-07" => ModelName.JambaMini17202507, "jamba-large-1.7-2025-07" => ModelName.JambaLarge17202507, + "jamba-mini-2" => ModelName.JambaMini2, + "jamba-mini-2-2026-01" => ModelName.JambaMini2202601, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.ModelQuantization.g.cs b/src/libs/AI21/Generated/AI21.Models.ModelQuantization.g.cs index 0335560..aca3ae1 100644 --- a/src/libs/AI21/Generated/AI21.Models.ModelQuantization.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ModelQuantization.g.cs @@ -11,7 +11,7 @@ public enum ModelQuantization /// /// /// - FP8, + Fp8, /// /// /// @@ -30,7 +30,7 @@ public static string ToValueString(this ModelQuantization value) { return value switch { - ModelQuantization.FP8 => "FP8", + ModelQuantization.Fp8 => "FP8", ModelQuantization.ExpertsInt8 => "experts_int8", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -42,7 +42,7 @@ public static string ToValueString(this ModelQuantization value) { return value switch { - "FP8" => ModelQuantization.FP8, + "FP8" => ModelQuantization.Fp8, "experts_int8" => ModelQuantization.ExpertsInt8, _ => null, }; diff --git a/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.Json.g.cs new file mode 100644 index 0000000..dfb529c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class ModifyAssistantRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.ModifyAssistantRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.ModifyAssistantRequest), + jsonSerializerContext) as global::AI21.ModifyAssistantRequest; + } + + /// + /// 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::AI21.ModifyAssistantRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.ModifyAssistantRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ModifyAssistantRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.g.cs new file mode 100644 index 0000000..8c66d17 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequest.g.cs @@ -0,0 +1,172 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class ModifyAssistantRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimization")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.RunOptimizationJsonConverter))] + public global::AI21.RunOptimization? Optimization { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string? Avatar { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] + public bool? IsArchived { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::System.Collections.Generic.IList? Models { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requirements")] + public global::System.Collections.Generic.IList? Requirements { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("budget")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.BudgetLevelJsonConverter))] + public global::AI21.BudgetLevel? Budget { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.VisibilityJsonConverter))] + public global::AI21.Visibility? Visibility { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ModifyAssistantRequestResponseLanguageJsonConverter))] + public global::AI21.ModifyAssistantRequestResponseLanguage? ResponseLanguage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workflow_config")] + public global::AI21.WorkflowConfig? WorkflowConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_overrides")] + public object? ConfigOverrides { 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. + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// + /// + /// An enumeration. + /// + /// + /// An enumeration. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ModifyAssistantRequest( + string? name, + string? description, + global::AI21.RunOptimization? optimization, + string? avatar, + bool? isArchived, + global::System.Collections.Generic.IList? models, + global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? requirements, + global::AI21.BudgetLevel? budget, + global::AI21.Visibility? visibility, + global::AI21.ModifyAssistantRequestResponseLanguage? responseLanguage, + string? systemPrompt, + global::AI21.WorkflowConfig? workflowConfig, + object? configOverrides) + { + this.Name = name; + this.Description = description; + this.Optimization = optimization; + this.Avatar = avatar; + this.IsArchived = isArchived; + this.Models = models; + this.Tools = tools; + this.Requirements = requirements; + this.Budget = budget; + this.Visibility = visibility; + this.ResponseLanguage = responseLanguage; + this.SystemPrompt = systemPrompt; + this.WorkflowConfig = workflowConfig; + this.ConfigOverrides = configOverrides; + } + + /// + /// Initializes a new instance of the class. + /// + public ModifyAssistantRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.Json.g.cs new file mode 100644 index 0000000..faf69d1 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class ModifyAssistantRequestConfigOverrides + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.ModifyAssistantRequestConfigOverrides? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.ModifyAssistantRequestConfigOverrides), + jsonSerializerContext) as global::AI21.ModifyAssistantRequestConfigOverrides; + } + + /// + /// 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::AI21.ModifyAssistantRequestConfigOverrides? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.ModifyAssistantRequestConfigOverrides), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ModifyAssistantRequestConfigOverrides; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.g.cs b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.g.cs new file mode 100644 index 0000000..5bcf0ae --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestConfigOverrides.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class ModifyAssistantRequestConfigOverrides + { + + /// + /// 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/AI21/Generated/AI21.Models.ModifyAssistantRequestResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestResponseLanguage.g.cs new file mode 100644 index 0000000..f8b058c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.ModifyAssistantRequestResponseLanguage.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public enum ModifyAssistantRequestResponseLanguage + { + /// + /// + /// + Arabic, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Hebrew, + /// + /// + /// + Italian, + /// + /// + /// + Portuguese, + /// + /// + /// + Spanish, + /// + /// + /// + Unset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ModifyAssistantRequestResponseLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ModifyAssistantRequestResponseLanguage value) + { + return value switch + { + ModifyAssistantRequestResponseLanguage.Arabic => "arabic", + ModifyAssistantRequestResponseLanguage.Dutch => "dutch", + ModifyAssistantRequestResponseLanguage.English => "english", + ModifyAssistantRequestResponseLanguage.French => "french", + ModifyAssistantRequestResponseLanguage.German => "german", + ModifyAssistantRequestResponseLanguage.Hebrew => "hebrew", + ModifyAssistantRequestResponseLanguage.Italian => "italian", + ModifyAssistantRequestResponseLanguage.Portuguese => "portuguese", + ModifyAssistantRequestResponseLanguage.Spanish => "spanish", + ModifyAssistantRequestResponseLanguage.Unset => "unset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ModifyAssistantRequestResponseLanguage? ToEnum(string value) + { + return value switch + { + "arabic" => ModifyAssistantRequestResponseLanguage.Arabic, + "dutch" => ModifyAssistantRequestResponseLanguage.Dutch, + "english" => ModifyAssistantRequestResponseLanguage.English, + "french" => ModifyAssistantRequestResponseLanguage.French, + "german" => ModifyAssistantRequestResponseLanguage.German, + "hebrew" => ModifyAssistantRequestResponseLanguage.Hebrew, + "italian" => ModifyAssistantRequestResponseLanguage.Italian, + "portuguese" => ModifyAssistantRequestResponseLanguage.Portuguese, + "spanish" => ModifyAssistantRequestResponseLanguage.Spanish, + "unset" => ModifyAssistantRequestResponseLanguage.Unset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ParagonSyncStatus.g.cs b/src/libs/AI21/Generated/AI21.Models.ParagonSyncStatus.g.cs index bd396b6..c0624e3 100644 --- a/src/libs/AI21/Generated/AI21.Models.ParagonSyncStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.ParagonSyncStatus.g.cs @@ -11,19 +11,19 @@ public enum ParagonSyncStatus /// /// /// - ACTIVE, + Active, /// /// /// - IDLE, + Idle, /// /// /// - ERRORED, + Errored, /// /// /// - PAUSED, + Paused, } /// @@ -38,10 +38,10 @@ public static string ToValueString(this ParagonSyncStatus value) { return value switch { - ParagonSyncStatus.ACTIVE => "ACTIVE", - ParagonSyncStatus.IDLE => "IDLE", - ParagonSyncStatus.ERRORED => "ERRORED", - ParagonSyncStatus.PAUSED => "PAUSED", + ParagonSyncStatus.Active => "ACTIVE", + ParagonSyncStatus.Idle => "IDLE", + ParagonSyncStatus.Errored => "ERRORED", + ParagonSyncStatus.Paused => "PAUSED", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -52,10 +52,10 @@ public static string ToValueString(this ParagonSyncStatus value) { return value switch { - "ACTIVE" => ParagonSyncStatus.ACTIVE, - "IDLE" => ParagonSyncStatus.IDLE, - "ERRORED" => ParagonSyncStatus.ERRORED, - "PAUSED" => ParagonSyncStatus.PAUSED, + "ACTIVE" => ParagonSyncStatus.Active, + "IDLE" => ParagonSyncStatus.Idle, + "ERRORED" => ParagonSyncStatus.Errored, + "PAUSED" => ParagonSyncStatus.Paused, _ => null, }; } diff --git a/src/libs/AI21/Generated/AI21.Models.QueryFilter.g.cs b/src/libs/AI21/Generated/AI21.Models.QueryFilter.g.cs index b6c2154..aa6729c 100644 --- a/src/libs/AI21/Generated/AI21.Models.QueryFilter.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.QueryFilter.g.cs @@ -13,78 +13,69 @@ namespace AI21 /// /// #if NET6_0_OR_GREATER - public object? Value1 { get; init; } + public object? ComparisonOperator { get; init; } #else - public object? Value1 { get; } + public object? ComparisonOperator { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComparisonOperator))] #endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public QueryFilter(object? value) - { - Value1 = value; - } + public bool IsComparisonOperator => ComparisonOperator != null; /// /// /// #if NET6_0_OR_GREATER - public global::System.Collections.Generic.Dictionary>? Value2 { get; init; } + public global::System.Collections.Generic.Dictionary>? LogicalOperator { get; init; } #else - public global::System.Collections.Generic.Dictionary>? Value2 { get; } + public global::System.Collections.Generic.Dictionary>? LogicalOperator { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LogicalOperator))] #endif - public bool IsValue2 => Value2 != null; + public bool IsLogicalOperator => LogicalOperator != null; /// /// /// - public static implicit operator QueryFilter(global::System.Collections.Generic.Dictionary> value) => new QueryFilter((global::System.Collections.Generic.Dictionary>?)value); +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.Dictionary? Value3 { get; init; } +#else + public global::System.Collections.Generic.Dictionary? Value3 { get; } +#endif /// /// /// - public static implicit operator global::System.Collections.Generic.Dictionary>?(QueryFilter @this) => @this.Value2; - +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; /// /// /// - public QueryFilter(global::System.Collections.Generic.Dictionary>? value) - { - Value2 = value; - } + public static implicit operator QueryFilter(global::System.Collections.Generic.Dictionary> value) => new QueryFilter((global::System.Collections.Generic.Dictionary>?)value); /// /// /// -#if NET6_0_OR_GREATER - public global::System.Collections.Generic.Dictionary? Value3 { get; init; } -#else - public global::System.Collections.Generic.Dictionary? Value3 { get; } -#endif + public static implicit operator global::System.Collections.Generic.Dictionary>?(QueryFilter @this) => @this.LogicalOperator; /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; + public QueryFilter(global::System.Collections.Generic.Dictionary>? value) + { + LogicalOperator = value; + } /// /// @@ -108,13 +99,13 @@ public QueryFilter(global::System.Collections.Generic.Dictionary /// /// public QueryFilter( - object? value1, - global::System.Collections.Generic.Dictionary>? value2, + object? comparisonOperator, + global::System.Collections.Generic.Dictionary>? logicalOperator, global::System.Collections.Generic.Dictionary? value3 ) { - Value1 = value1; - Value2 = value2; + ComparisonOperator = comparisonOperator; + LogicalOperator = logicalOperator; Value3 = value3; } @@ -123,16 +114,16 @@ public QueryFilter( /// public object? Object => Value3 as object ?? - Value2 as object ?? - Value1 as object + LogicalOperator as object ?? + ComparisonOperator as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? + ComparisonOperator?.ToString() ?? + LogicalOperator?.ToString() ?? Value3?.ToString() ; @@ -141,15 +132,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2 || IsValue3; + return IsComparisonOperator || IsLogicalOperator || IsValue3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func>?, TResult>? value2 = null, + global::System.Func? comparisonOperator = null, + global::System.Func>?, TResult>? logicalOperator = null, global::System.Func?, TResult>? value3 = null, bool validate = true) { @@ -158,13 +149,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsComparisonOperator && comparisonOperator != null) { - return value1(Value1!); + return comparisonOperator(ComparisonOperator!); } - else if (IsValue2 && value2 != null) + else if (IsLogicalOperator && logicalOperator != null) { - return value2(Value2!); + return logicalOperator(LogicalOperator!); } else if (IsValue3 && value3 != null) { @@ -178,8 +169,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action>?>? value2 = null, + global::System.Action? comparisonOperator = null, + global::System.Action>?>? logicalOperator = null, global::System.Action?>? value3 = null, bool validate = true) { @@ -188,13 +179,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsComparisonOperator) { - value1?.Invoke(Value1!); + comparisonOperator?.Invoke(ComparisonOperator!); } - else if (IsValue2) + else if (IsLogicalOperator) { - value2?.Invoke(Value2!); + logicalOperator?.Invoke(LogicalOperator!); } else if (IsValue3) { @@ -209,9 +200,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ComparisonOperator, typeof(object), - Value2, + LogicalOperator, typeof(global::System.Collections.Generic.Dictionary>), Value3, typeof(global::System.Collections.Generic.Dictionary), @@ -231,8 +222,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(QueryFilter other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer>?>.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComparisonOperator, other.ComparisonOperator) && + global::System.Collections.Generic.EqualityComparer>?>.Default.Equals(LogicalOperator, other.LogicalOperator) && global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Value3, other.Value3) ; } diff --git a/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.Json.g.cs new file mode 100644 index 0000000..2088535 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class RunAssistantRequest + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.RunAssistantRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.RunAssistantRequest), + jsonSerializerContext) as global::AI21.RunAssistantRequest; + } + + /// + /// 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::AI21.RunAssistantRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.RunAssistantRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.RunAssistantRequest; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.g.cs new file mode 100644 index 0000000..af5ee6a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequest.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class RunAssistantRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Input { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("verbose")] + public bool? Verbose { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_type")] + public object? OutputType { get; set; } + + /// + /// Default Value: [data_sources, requirements_result, requirements_result.metadata] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include")] + public global::System.Collections.Generic.IList? Include { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("structured_rag_enabled")] + public bool? StructuredRagEnabled { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dynamic_planning_enabled")] + public bool? DynamicPlanningEnabled { get; set; } + + /// + /// Default Value: unset + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.RunAssistantRequestResponseLanguageJsonConverter))] + public global::AI21.RunAssistantRequestResponseLanguage? ResponseLanguage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("system_prompt")] + public string? SystemPrompt { 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. + /// + /// + /// + /// Default Value: false + /// + /// + /// + /// Default Value: [data_sources, requirements_result, requirements_result.metadata] + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: unset + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RunAssistantRequest( + global::System.Collections.Generic.IList input, + bool? verbose, + object? outputType, + global::System.Collections.Generic.IList? include, + bool? structuredRagEnabled, + bool? dynamicPlanningEnabled, + global::AI21.RunAssistantRequestResponseLanguage? responseLanguage, + string? systemPrompt) + { + this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); + this.Verbose = verbose; + this.OutputType = outputType; + this.Include = include; + this.StructuredRagEnabled = structuredRagEnabled; + this.DynamicPlanningEnabled = dynamicPlanningEnabled; + this.ResponseLanguage = responseLanguage; + this.SystemPrompt = systemPrompt; + } + + /// + /// Initializes a new instance of the class. + /// + public RunAssistantRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.Json.g.cs new file mode 100644 index 0000000..b53ab19 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class RunAssistantRequestOutputType + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.RunAssistantRequestOutputType? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.RunAssistantRequestOutputType), + jsonSerializerContext) as global::AI21.RunAssistantRequestOutputType; + } + + /// + /// 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::AI21.RunAssistantRequestOutputType? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.RunAssistantRequestOutputType), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.RunAssistantRequestOutputType; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.g.cs b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.g.cs new file mode 100644 index 0000000..daf4d4c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestOutputType.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class RunAssistantRequestOutputType + { + + /// + /// 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/AI21/Generated/AI21.Models.RunAssistantRequestResponseLanguage.g.cs b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestResponseLanguage.g.cs new file mode 100644 index 0000000..b2bfe68 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunAssistantRequestResponseLanguage.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: unset + /// + public enum RunAssistantRequestResponseLanguage + { + /// + /// + /// + Arabic, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Hebrew, + /// + /// + /// + Italian, + /// + /// + /// + Portuguese, + /// + /// + /// + Spanish, + /// + /// + /// + Unset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunAssistantRequestResponseLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunAssistantRequestResponseLanguage value) + { + return value switch + { + RunAssistantRequestResponseLanguage.Arabic => "arabic", + RunAssistantRequestResponseLanguage.Dutch => "dutch", + RunAssistantRequestResponseLanguage.English => "english", + RunAssistantRequestResponseLanguage.French => "french", + RunAssistantRequestResponseLanguage.German => "german", + RunAssistantRequestResponseLanguage.Hebrew => "hebrew", + RunAssistantRequestResponseLanguage.Italian => "italian", + RunAssistantRequestResponseLanguage.Portuguese => "portuguese", + RunAssistantRequestResponseLanguage.Spanish => "spanish", + RunAssistantRequestResponseLanguage.Unset => "unset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunAssistantRequestResponseLanguage? ToEnum(string value) + { + return value switch + { + "arabic" => RunAssistantRequestResponseLanguage.Arabic, + "dutch" => RunAssistantRequestResponseLanguage.Dutch, + "english" => RunAssistantRequestResponseLanguage.English, + "french" => RunAssistantRequestResponseLanguage.French, + "german" => RunAssistantRequestResponseLanguage.German, + "hebrew" => RunAssistantRequestResponseLanguage.Hebrew, + "italian" => RunAssistantRequestResponseLanguage.Italian, + "portuguese" => RunAssistantRequestResponseLanguage.Portuguese, + "spanish" => RunAssistantRequestResponseLanguage.Spanish, + "unset" => RunAssistantRequestResponseLanguage.Unset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.RunOptimization.g.cs b/src/libs/AI21/Generated/AI21.Models.RunOptimization.g.cs new file mode 100644 index 0000000..dda5994 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.RunOptimization.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// An enumeration. + /// + public enum RunOptimization + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunOptimizationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunOptimization value) + { + return value switch + { + RunOptimization.Cost => "cost", + RunOptimization.Latency => "latency", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunOptimization? ToEnum(string value) + { + return value switch + { + "cost" => RunOptimization.Cost, + "latency" => RunOptimization.Latency, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.StarterQuestion.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.StarterQuestion.Json.g.cs new file mode 100644 index 0000000..8002030 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.StarterQuestion.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class StarterQuestion + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.StarterQuestion? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.StarterQuestion), + jsonSerializerContext) as global::AI21.StarterQuestion; + } + + /// + /// 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::AI21.StarterQuestion? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.StarterQuestion), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.StarterQuestion; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.StarterQuestion.g.cs b/src/libs/AI21/Generated/AI21.Models.StarterQuestion.g.cs new file mode 100644 index 0000000..30e9838 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.StarterQuestion.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class StarterQuestion + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prompt { 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. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StarterQuestion( + string title, + string prompt) + { + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + } + + /// + /// Initializes a new instance of the class. + /// + public StarterQuestion() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.Json.g.cs new file mode 100644 index 0000000..55e40dc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse), + jsonSerializerContext) as global::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse; + } + + /// + /// 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::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.g.cs new file mode 100644 index 0000000..030fe94 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.Json.g.cs new file mode 100644 index 0000000..caa4ba8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class TlvConvragSolutionsTlvMunicipalityConvragPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse), + jsonSerializerContext) as global::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse; + } + + /// + /// 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::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.TlvConvragSolutionsTlvMunicipalityConvragPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.g.cs new file mode 100644 index 0000000..cbc6d9b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.TlvConvragSolutionsTlvMunicipalityConvragPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class TlvConvragSolutionsTlvMunicipalityConvragPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.ConversationalRagConfig.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ConversationalRagConfig.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.Json.g.cs index eed64f0..69e0cd2 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConversationalRagConfig.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ConversationalRagConfig + public sealed partial class UpdateMCPStorageRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ConversationalRagConfig? FromJson( + public static global::AI21.UpdateMCPStorageRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ConversationalRagConfig), - jsonSerializerContext) as global::AI21.ConversationalRagConfig; + typeof(global::AI21.UpdateMCPStorageRequest), + jsonSerializerContext) as global::AI21.UpdateMCPStorageRequest; } /// @@ -51,11 +51,11 @@ 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::AI21.ConversationalRagConfig? FromJson( + public static global::AI21.UpdateMCPStorageRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ConversationalRagConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ConversationalRagConfig; + typeof(global::AI21.UpdateMCPStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.UpdateMCPStorageRequest; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.g.cs b/src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.g.cs new file mode 100644 index 0000000..fd3ce16 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.UpdateMCPStorageRequest.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class UpdateMCPStorageRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServerLabel { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateMCPStorageRequest( + string serverLabel) + { + this.ServerLabel = serverLabel ?? throw new global::System.ArgumentNullException(nameof(serverLabel)); + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateMCPStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.Json.g.cs similarity index 86% rename from src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.Json.g.cs index 9aacfcd..8c627f1 100644 --- a/src/libs/AI21/Generated/AI21.Models.CreateMaestroRunsPayloadTool.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class CreateMaestroRunsPayloadTool + public sealed partial class V1LibraryManagementResponse2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.CreateMaestroRunsPayloadTool? FromJson( + public static global::AI21.V1LibraryManagementResponse2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.CreateMaestroRunsPayloadTool), - jsonSerializerContext) as global::AI21.CreateMaestroRunsPayloadTool; + typeof(global::AI21.V1LibraryManagementResponse2), + jsonSerializerContext) as global::AI21.V1LibraryManagementResponse2; } /// @@ -51,11 +51,11 @@ 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::AI21.CreateMaestroRunsPayloadTool? FromJson( + public static global::AI21.V1LibraryManagementResponse2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.CreateMaestroRunsPayloadTool), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.CreateMaestroRunsPayloadTool; + typeof(global::AI21.V1LibraryManagementResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.V1LibraryManagementResponse2; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.g.cs b/src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.g.cs new file mode 100644 index 0000000..9b410ac --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.V1LibraryManagementResponse2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class V1LibraryManagementResponse2 + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.Json.g.cs new file mode 100644 index 0000000..02e8111 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse), + jsonSerializerContext) as global::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse; + } + + /// + /// 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::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.g.cs new file mode 100644 index 0000000..4d4dd41 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.Json.g.cs new file mode 100644 index 0000000..a109939 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaActionItemsSolutionsVidaaActionItemsPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse), + jsonSerializerContext) as global::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse; + } + + /// + /// 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::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaActionItemsSolutionsVidaaActionItemsPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.g.cs new file mode 100644 index 0000000..70f1398 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaActionItemsSolutionsVidaaActionItemsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaActionItemsSolutionsVidaaActionItemsPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.Json.g.cs new file mode 100644 index 0000000..57dba20 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse), + jsonSerializerContext) as global::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse; + } + + /// + /// 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::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.g.cs new file mode 100644 index 0000000..b95737c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.Json.g.cs new file mode 100644 index 0000000..53977f3 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse), + jsonSerializerContext) as global::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse; + } + + /// + /// 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::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.g.cs new file mode 100644 index 0000000..1642222 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaFeedItemsSolutionsVidaaFeedItemsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.Json.g.cs new file mode 100644 index 0000000..a54e8b0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse), + jsonSerializerContext) as global::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse; + } + + /// + /// 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::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.g.cs new file mode 100644 index 0000000..635f9ae --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.Json.g.cs new file mode 100644 index 0000000..6e68a58 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaMessagesSolutionsVidaaApiMessagesPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse), + jsonSerializerContext) as global::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse; + } + + /// + /// 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::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaMessagesSolutionsVidaaApiMessagesPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.g.cs new file mode 100644 index 0000000..d5e69cc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaMessagesSolutionsVidaaApiMessagesPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaMessagesSolutionsVidaaApiMessagesPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.Json.g.cs new file mode 100644 index 0000000..9e1eddf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse), + jsonSerializerContext) as global::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse; + } + + /// + /// 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::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.g.cs new file mode 100644 index 0000000..269e23a --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.Json.g.cs new file mode 100644 index 0000000..f1e7db4 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse), + jsonSerializerContext) as global::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse; + } + + /// + /// 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::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.g.cs new file mode 100644 index 0000000..093d4f8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.Json.g.cs new file mode 100644 index 0000000..ea3a682 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse), + jsonSerializerContext) as global::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse; + } + + /// + /// 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::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.g.cs new file mode 100644 index 0000000..e19550d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.Json.g.cs new file mode 100644 index 0000000..c2ada3e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSourcesSolutionsVidaaSourcesGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse), + jsonSerializerContext) as global::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse; + } + + /// + /// 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::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSourcesSolutionsVidaaSourcesGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.g.cs new file mode 100644 index 0000000..e0251fe --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSourcesSolutionsVidaaSourcesGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSourcesSolutionsVidaaSourcesGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.Json.g.cs new file mode 100644 index 0000000..849dbb9 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse), + jsonSerializerContext) as global::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse; + } + + /// + /// 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::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.g.cs new file mode 100644 index 0000000..85645ec --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.Json.g.cs new file mode 100644 index 0000000..4032fca --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSubscribeSolutionsVidaaSubscribePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse), + jsonSerializerContext) as global::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse; + } + + /// + /// 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::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSubscribeSolutionsVidaaSubscribePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.g.cs new file mode 100644 index 0000000..1972ba8 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscribeSolutionsVidaaSubscribePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSubscribeSolutionsVidaaSubscribePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.Json.g.cs new file mode 100644 index 0000000..3defca0 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse), + jsonSerializerContext) as global::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse; + } + + /// + /// 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::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.g.cs new file mode 100644 index 0000000..0fb2faa --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.Json.g.cs new file mode 100644 index 0000000..8bd27f7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse), + jsonSerializerContext) as global::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse; + } + + /// + /// 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::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.g.cs new file mode 100644 index 0000000..86ddccc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.Json.g.cs new file mode 100644 index 0000000..0ff2fcf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse), + jsonSerializerContext) as global::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse; + } + + /// + /// 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::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.g.cs new file mode 100644 index 0000000..21fbf23 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.Json.g.cs new file mode 100644 index 0000000..a060232 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaSummarizeSolutionsVidaaSummarizePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse), + jsonSerializerContext) as global::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse; + } + + /// + /// 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::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaSummarizeSolutionsVidaaSummarizePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.g.cs new file mode 100644 index 0000000..842d640 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaSummarizeSolutionsVidaaSummarizePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaSummarizeSolutionsVidaaSummarizePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.Json.g.cs new file mode 100644 index 0000000..6380dfe --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse), + jsonSerializerContext) as global::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse; + } + + /// + /// 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::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.g.cs new file mode 100644 index 0000000..4f530dd --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.Json.g.cs new file mode 100644 index 0000000..e21c005 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse), + jsonSerializerContext) as global::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse; + } + + /// + /// 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::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.g.cs new file mode 100644 index 0000000..328936b --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaTriggerPollSolutionsVidaaTriggerPollPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.Json.g.cs new file mode 100644 index 0000000..f8521a7 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse), + jsonSerializerContext) as global::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse; + } + + /// + /// 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::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.g.cs new file mode 100644 index 0000000..ac57026 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.Json.g.cs new file mode 100644 index 0000000..742a47d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse), + jsonSerializerContext) as global::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse; + } + + /// + /// 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::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.g.cs new file mode 100644 index 0000000..0d8f195 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class VidaaUnsubscribeSolutionsVidaaUnsubscribePostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.Visibility.g.cs b/src/libs/AI21/Generated/AI21.Models.Visibility.g.cs new file mode 100644 index 0000000..89eeb66 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.Visibility.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// An enumeration. + /// + public enum Visibility + { + /// + /// + /// + Public, + /// + /// + /// + Private, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class VisibilityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this Visibility value) + { + return value switch + { + Visibility.Public => "public", + Visibility.Private => "private", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static Visibility? ToEnum(string value) + { + return value switch + { + "public" => Visibility.Public, + "private" => Visibility.Private, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.Json.g.cs similarity index 87% rename from src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.Json.g.cs index c1a3534..b93e4b0 100644 --- a/src/libs/AI21/Generated/AI21.Models.ConvRagExecuteRequest.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ConvRagExecuteRequest + public sealed partial class WebSearchToolResource { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ConvRagExecuteRequest? FromJson( + public static global::AI21.WebSearchToolResource? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ConvRagExecuteRequest), - jsonSerializerContext) as global::AI21.ConvRagExecuteRequest; + typeof(global::AI21.WebSearchToolResource), + jsonSerializerContext) as global::AI21.WebSearchToolResource; } /// @@ -51,11 +51,11 @@ 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::AI21.ConvRagExecuteRequest? FromJson( + public static global::AI21.WebSearchToolResource? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ConvRagExecuteRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ConvRagExecuteRequest; + typeof(global::AI21.WebSearchToolResource), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WebSearchToolResource; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.g.cs b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.g.cs new file mode 100644 index 0000000..3ccfbbc --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResource.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WebSearchToolResource + { + /// + /// Default Value: web_search + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.WebSearchToolResourceTypeJsonConverter))] + public global::AI21.WebSearchToolResourceType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("urls")] + public global::System.Collections.Generic.IList? Urls { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback_to_web")] + public bool? FallbackToWeb { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query_suffix")] + public string? QuerySuffix { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rephrase_query")] + public bool? RephraseQuery { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_cached_pages")] + public bool? UseCachedPages { 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. + /// + /// + /// Default Value: web_search + /// + /// + /// + /// + /// + /// + /// Default Value: false + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WebSearchToolResource( + global::AI21.WebSearchToolResourceType? type, + global::System.Collections.Generic.IList? urls, + bool? fallbackToWeb, + string? querySuffix, + bool? rephraseQuery, + bool? useCachedPages) + { + this.Type = type; + this.Urls = urls; + this.FallbackToWeb = fallbackToWeb; + this.QuerySuffix = querySuffix; + this.RephraseQuery = rephraseQuery; + this.UseCachedPages = useCachedPages; + } + + /// + /// Initializes a new instance of the class. + /// + public WebSearchToolResource() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.WebSearchToolResourceType.g.cs b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResourceType.g.cs new file mode 100644 index 0000000..fcb97c6 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WebSearchToolResourceType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// Default Value: web_search + /// + public enum WebSearchToolResourceType + { + /// + /// + /// + WebSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WebSearchToolResourceTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WebSearchToolResourceType value) + { + return value switch + { + WebSearchToolResourceType.WebSearch => "web_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WebSearchToolResourceType? ToEnum(string value) + { + return value switch + { + "web_search" => WebSearchToolResourceType.WebSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.Models.ToolDefinition.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfig.Json.g.cs similarity index 88% rename from src/libs/AI21/Generated/AI21.Models.ToolDefinition.Json.g.cs rename to src/libs/AI21/Generated/AI21.Models.WorkflowConfig.Json.g.cs index 0492984..9a0ad3a 100644 --- a/src/libs/AI21/Generated/AI21.Models.ToolDefinition.Json.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace AI21 { - public sealed partial class ToolDefinition + public sealed partial class WorkflowConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::AI21.ToolDefinition? FromJson( + public static global::AI21.WorkflowConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::AI21.ToolDefinition), - jsonSerializerContext) as global::AI21.ToolDefinition; + typeof(global::AI21.WorkflowConfig), + jsonSerializerContext) as global::AI21.WorkflowConfig; } /// @@ -51,11 +51,11 @@ 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::AI21.ToolDefinition? FromJson( + public static global::AI21.WorkflowConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ 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::AI21.ToolDefinition), - jsonSerializerContext).ConfigureAwait(false)) as global::AI21.ToolDefinition; + typeof(global::AI21.WorkflowConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WorkflowConfig; } /// @@ -80,11 +80,11 @@ 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) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResource.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfig.g.cs similarity index 51% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResource.g.cs rename to src/libs/AI21/Generated/AI21.Models.WorkflowConfig.g.cs index 06bf9fe..faf3567 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResource.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfig.g.cs @@ -6,25 +6,26 @@ namespace AI21 /// /// /// - public sealed partial class AssistantToolResource + public sealed partial class WorkflowConfig { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_search")] - public object? FileSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endpoint_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EndpointUrl { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("web_search")] - public object? WebSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public object? Headers { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("plan_approval")] - public object? PlanApproval { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("additional_params")] + public object? AdditionalParams { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,28 +34,28 @@ public sealed partial class AssistantToolResource 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 AssistantToolResource( - object? fileSearch, - object? webSearch, - object? planApproval) + public WorkflowConfig( + string endpointUrl, + object? headers, + object? additionalParams) { - this.FileSearch = fileSearch; - this.WebSearch = webSearch; - this.PlanApproval = planApproval; + this.EndpointUrl = endpointUrl ?? throw new global::System.ArgumentNullException(nameof(endpointUrl)); + this.Headers = headers; + this.AdditionalParams = additionalParams; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AssistantToolResource() + public WorkflowConfig() { } } diff --git a/src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.Json.g.cs new file mode 100644 index 0000000..f1dff99 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WorkflowConfigAdditionalParams + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WorkflowConfigAdditionalParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WorkflowConfigAdditionalParams), + jsonSerializerContext) as global::AI21.WorkflowConfigAdditionalParams; + } + + /// + /// 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::AI21.WorkflowConfigAdditionalParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WorkflowConfigAdditionalParams), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WorkflowConfigAdditionalParams; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.g.cs similarity index 88% rename from src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.g.cs rename to src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.g.cs index 0bc4080..e6f253a 100644 --- a/src/libs/AI21/Generated/AI21.Models.AssistantToolResourceWebSearch.g.cs +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigAdditionalParams.g.cs @@ -6,7 +6,7 @@ namespace AI21 /// /// /// - public sealed partial class AssistantToolResourceWebSearch + public sealed partial class WorkflowConfigAdditionalParams { /// diff --git a/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.Json.g.cs new file mode 100644 index 0000000..bae0a7f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WorkflowConfigHeaders + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WorkflowConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WorkflowConfigHeaders), + jsonSerializerContext) as global::AI21.WorkflowConfigHeaders; + } + + /// + /// 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::AI21.WorkflowConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WorkflowConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WorkflowConfigHeaders; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.g.cs b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.g.cs new file mode 100644 index 0000000..cc24209 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WorkflowConfigHeaders.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WorkflowConfigHeaders + { + + /// + /// 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/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.Json.g.cs new file mode 100644 index 0000000..5bd639c --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse), + jsonSerializerContext) as global::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse; + } + + /// + /// 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::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.g.cs new file mode 100644 index 0000000..3f8cb5f --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.Json.g.cs new file mode 100644 index 0000000..c6afe9d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WppFeedbackSolutionsWppFeedbackPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WppFeedbackSolutionsWppFeedbackPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WppFeedbackSolutionsWppFeedbackPostResponse), + jsonSerializerContext) as global::AI21.WppFeedbackSolutionsWppFeedbackPostResponse; + } + + /// + /// 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::AI21.WppFeedbackSolutionsWppFeedbackPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WppFeedbackSolutionsWppFeedbackPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WppFeedbackSolutionsWppFeedbackPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.g.cs new file mode 100644 index 0000000..a78920d --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppFeedbackSolutionsWppFeedbackPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WppFeedbackSolutionsWppFeedbackPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.Json.g.cs new file mode 100644 index 0000000..c1f3f1e --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse), + jsonSerializerContext) as global::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse; + } + + /// + /// 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::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.g.cs new file mode 100644 index 0000000..f5bb126 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponse + { + + /// + /// 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/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.Json.g.cs b/src/libs/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.Json.g.cs new file mode 100644 index 0000000..c2aa867 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AI21 +{ + public sealed partial class WppQuerySolutionsWppQueryPostResponse + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AI21.WppQuerySolutionsWppQueryPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AI21.WppQuerySolutionsWppQueryPostResponse), + jsonSerializerContext) as global::AI21.WppQuerySolutionsWppQueryPostResponse; + } + + /// + /// 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::AI21.WppQuerySolutionsWppQueryPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::AI21.WppQuerySolutionsWppQueryPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::AI21.WppQuerySolutionsWppQueryPostResponse; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.g.cs b/src/libs/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.g.cs new file mode 100644 index 0000000..242d367 --- /dev/null +++ b/src/libs/AI21/Generated/AI21.Models.WppQuerySolutionsWppQueryPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace AI21 +{ + /// + /// + /// + public sealed partial class WppQuerySolutionsWppQueryPostResponse + { + + /// + /// 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/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs similarity index 99% rename from src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement.g.cs rename to src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs index 2dd9795..c315def 100644 --- a/src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs @@ -3,7 +3,7 @@ namespace AI21 { - public partial class RAGEngineClient + public partial class RagEngineClient { partial void PrepareV1LibraryManagementArguments( global::System.Net.Http.HttpClient httpClient, diff --git a/src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs similarity index 99% rename from src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement2.g.cs rename to src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs index eff9742..40a010c 100644 --- a/src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibraryManagement2.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs @@ -3,7 +3,7 @@ namespace AI21 { - public partial class RAGEngineClient + public partial class RagEngineClient { partial void PrepareV1LibraryManagement2Arguments( global::System.Net.Http.HttpClient httpClient, diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs new file mode 100644 index 0000000..790d7bf --- /dev/null +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs @@ -0,0 +1,194 @@ + +#nullable enable + +namespace AI21 +{ + public partial class RagEngineClient + { + partial void PrepareV1LibraryManagement3Arguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid fileId); + partial void PrepareV1LibraryManagement3Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid fileId); + partial void ProcessV1LibraryManagement3Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessV1LibraryManagement3ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Download Parsed Document
+ /// Download parsed document with Content-Disposition header for immediate download. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task V1LibraryManagement3Async( + global::System.Guid fileId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareV1LibraryManagement3Arguments( + httpClient: HttpClient, + fileId: ref fileId); + + var __pathBuilder = new global::AI21.PathBuilder( + path: $"/studio/v1/library/files/{fileId}/parsed", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareV1LibraryManagement3Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + fileId: fileId); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessV1LibraryManagement3Response( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::AI21.HTTPValidationError? __value_422 = null; + try + { + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + throw new global::AI21.ApiException( + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessV1LibraryManagement3ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::AI21.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibrarySearch.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs similarity index 99% rename from src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibrarySearch.g.cs rename to src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs index b8948d9..5761e71 100644 --- a/src/libs/AI21/Generated/AI21.RAGEngineClient.V1LibrarySearch.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs @@ -3,7 +3,7 @@ namespace AI21 { - public partial class RAGEngineClient + public partial class RagEngineClient { partial void PrepareV1LibrarySearchArguments( global::System.Net.Http.HttpClient httpClient, @@ -28,6 +28,7 @@ partial void ProcessV1LibrarySearchResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1LibrarySearchAsync( + global::AI21.LibrarySearchRequest request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.g.cs similarity index 94% rename from src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs rename to src/libs/AI21/Generated/AI21.RagEngineClient.g.cs index 5ad01fc..902b80d 100644 --- a/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.g.cs @@ -7,7 +7,7 @@ namespace AI21 /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
- public sealed partial class RAGEngineClient : global::AI21.IRAGEngineClient, global::System.IDisposable + public sealed partial class RagEngineClient : global::AI21.IRagEngineClient, global::System.IDisposable { /// /// @@ -37,7 +37,7 @@ public sealed partial class RAGEngineClient : global::AI21.IRAGEngineClient, glo /// - /// Creates a new instance of the RAGEngineClient. + /// Creates a new instance of the RagEngineClient. /// If no httpClient is provided, a new one will be created. /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// @@ -45,7 +45,7 @@ public sealed partial class RAGEngineClient : global::AI21.IRAGEngineClient, glo /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. /// The authorizations to use for the requests. /// Dispose the HttpClient when the instance is disposed. True by default. - public RAGEngineClient( + public RagEngineClient( global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null, global::System.Collections.Generic.List? authorizations = null, diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs index 6c19694..873f261 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1SecretStorage2ResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1SecretStorage2Async( + global::AI21.CreateSecretPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs index f2278d3..ce86800 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs @@ -40,7 +40,7 @@ partial void ProcessV1SecretStorage3ResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/secrets", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("secret_id", secretId) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs index e9cbabe..213a778 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs @@ -32,6 +32,7 @@ partial void ProcessV1SecretStorage4ResponseContent( /// public async global::System.Threading.Tasks.Task V1SecretStorage4Async( string secretId, + global::AI21.UpdateSecretPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs index 4ca071c..cb34071 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1WebsiteConnectorCreateConfigResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1WebsiteConnectorCreateConfigAsync( + global::AI21.WebsiteConnectorCreateConfigPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs index 0a55285..287639f 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs @@ -40,7 +40,7 @@ partial void ProcessV1WebsiteConnectorGetConfigResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/website-connector/client-config", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("config_name", configName) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs index 57ddb89..ce4ecc8 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs @@ -40,7 +40,7 @@ partial void ProcessV1WebsiteConnectorGetUrlStatusResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/website-connector/url-status", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("url_id", urlId) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs index 496a014..c03453a 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs @@ -40,7 +40,7 @@ partial void ProcessV1WebsiteConnectorGetWebsiteStatusResponseContent( var __pathBuilder = new global::AI21.PathBuilder( path: "/studio/v1/website-connector/website-status", baseUri: HttpClient.BaseAddress); - __pathBuilder + __pathBuilder .AddRequiredParameter("website_id", websiteId.ToString()) ; var __path = __pathBuilder.ToString(); diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs index 5f84ccd..6eb82ac 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1WebsiteConnectorIngestUrlResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1WebsiteConnectorIngestUrlAsync( + global::AI21.WebsiteConnectorIngestUrlPayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs index 700e778..4d5aa5f 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1WebsiteConnectorIngestWebsiteResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1WebsiteConnectorIngestWebsiteAsync( + global::AI21.WebsiteConnectorIngestWebsitePayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs index 462ccf9..196bf9c 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs @@ -28,6 +28,7 @@ partial void ProcessV1WebsiteConnectorRetryIngestWebsiteResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task V1WebsiteConnectorRetryIngestWebsiteAsync( + global::AI21.WebsiteConnectorRetryIngestWebsitePayload request, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/AI21/Generated/AnyOf.2.g.cs b/src/libs/AI21/Generated/AnyOf.2.g.cs index 2b3a976..7fa57a7 100644 --- a/src/libs/AI21/Generated/AnyOf.2.g.cs +++ b/src/libs/AI21/Generated/AnyOf.2.g.cs @@ -28,37 +28,36 @@ namespace AI21 /// /// /// - public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif /// /// /// - public static implicit operator T1?(AnyOf @this) => @this.Value1; - +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; /// /// /// - public AnyOf(T1? value) - { - Value1 = value; - } + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; + public AnyOf(T1? value) + { + Value1 = value; + } /// /// diff --git a/src/libs/AI21/Generated/AnyOf.4.g.cs b/src/libs/AI21/Generated/AnyOf.4.g.cs index 7a262f1..7b32c0f 100644 --- a/src/libs/AI21/Generated/AnyOf.4.g.cs +++ b/src/libs/AI21/Generated/AnyOf.4.g.cs @@ -28,72 +28,88 @@ namespace AI21 /// /// /// - public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif /// /// /// - public static implicit operator T1?(AnyOf @this) => @this.Value1; +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; /// /// /// - public AnyOf(T1? value) - { - Value1 = value; - } +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif /// /// /// #if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] #endif + public bool IsValue3 => Value3 != null; /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + public T4? Value4 { get; init; } +#else + public T4? Value4 { get; } #endif - public bool IsValue2 => Value2 != null; /// /// /// - public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] +#endif + public bool IsValue4 => Value4 != null; + /// + /// + /// + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T2?(AnyOf @this) => @this.Value2; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// /// - public AnyOf(T2? value) + public AnyOf(T1? value) { - Value2 = value; + Value1 = value; } /// /// /// -#if NET6_0_OR_GREATER - public T3? Value3 { get; init; } -#else - public T3? Value3 { get; } -#endif + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); /// /// /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; + public static implicit operator T2?(AnyOf @this) => @this.Value2; + + /// + /// + /// + public AnyOf(T2? value) + { + Value2 = value; + } /// /// @@ -113,23 +129,6 @@ public AnyOf(T3? value) Value3 = value; } - /// - /// - /// -#if NET6_0_OR_GREATER - public T4? Value4 { get; init; } -#else - public T4? Value4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] -#endif - public bool IsValue4 => Value4 != null; - /// /// /// diff --git a/src/libs/AI21/openapi.yaml b/src/libs/AI21/openapi.yaml index 2dd0c74..4815a82 100644 --- a/src/libs/AI21/openapi.yaml +++ b/src/libs/AI21/openapi.yaml @@ -59,29 +59,6 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - /studio/v1/conversational-rag: - post: - summary: Conversational Rag - operationId: v1_conversational_rag - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConversationalRagConfig' - required: true - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/ConversationalRagResult' - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' /studio/v1/library/files: get: tags: @@ -417,6 +394,33 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/library/files/{file_id}/parsed': + get: + tags: + - RAG Engine + summary: Download Parsed Document + description: Download parsed document with Content-Disposition header for immediate download. + operationId: v1_library_management + parameters: + - name: file_id + in: path + required: true + schema: + title: File Id + type: string + format: uuid + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' '/studio/v1/connectors/connected-users/{entity_id}/tokens': post: summary: Generate Org Token @@ -1015,6 +1019,32 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/demos/regulations/vector-store/{vector_store_id}': + get: + summary: Get Vector Store + description: Get a vector store by ID. + operationId: get_vector_store_studio_v1_demos_regulations_vector_store__vector_store_id__get + parameters: + - name: vector_store_id + in: path + required: true + schema: + title: Vector Store Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + title: Response Get Vector Store Studio V1 Demos Regulations Vector Store Vector Store Id Get + type: object + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' /studio/v1/demos/rfi/generate-response-pdf: post: summary: Combine section answers ➜ styled PDF for download @@ -1064,30 +1094,6 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - /studio/v1/demos/scraper/conversational-rag: - post: - summary: Execute Conv Rag - operationId: execute_conv_rag_studio_v1_demos_scraper_conversational_rag_post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConvRagExecuteRequest' - required: true - responses: - '200': - description: Successful Response - content: - application/json: - schema: - title: Response Execute Conv Rag Studio V1 Demos Scraper Conversational Rag Post - type: object - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' '/studio/v1/demos/scraper/file-url/{file_id}': get: summary: Get File Url @@ -1484,6 +1490,14 @@ paths: get: summary: Get Assistants operationId: v1_list_assistants + parameters: + - name: workspace_ids + in: query + schema: + title: Workspace Ids + type: array + items: + type: string responses: '200': description: Successful Response @@ -1491,6 +1505,57 @@ paths: application/json: schema: $ref: '#/components/schemas/ListAssistantsResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + summary: Create Assistant + operationId: v1_create_assistant + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAssistantRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Assistant' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /studio/v1/assistants/generate: + post: + summary: Generate Assistant + operationId: v1_generate_assistant + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateAssistantRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateAssistantResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' '/studio/v1/assistants/{assistant_id}': get: summary: Get Assistant @@ -1538,6 +1603,65 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' + patch: + summary: Modify Assistant + operationId: v1_modify_assistant + parameters: + - name: assistant_id + in: path + required: true + schema: + title: Assistant Id + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ModifyAssistantRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Assistant' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/assistants/{assistant_id}/run': + post: + summary: Run Assistant + operationId: v1_run_assistant + parameters: + - name: assistant_id + in: path + required: true + schema: + title: Assistant Id + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RunAssistantRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/MaestroRunResult' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' '/studio/v1/assistants/{assistant_id}/plans': get: summary: List Plans @@ -1596,17 +1720,17 @@ paths: summary: Get Plan operationId: v1_get_plan parameters: - - name: assistant_id + - name: plan_id in: path required: true schema: - title: Assistant Id + title: Plan Id type: string - - name: plan_id + - name: assistant_id in: path required: true schema: - title: Plan Id + title: Assistant Id type: string responses: '200': @@ -1625,17 +1749,17 @@ paths: summary: Modify Plan operationId: v1_modify_plan parameters: - - name: assistant_id + - name: plan_id in: path required: true schema: - title: Assistant Id + title: Plan Id type: string - - name: plan_id + - name: assistant_id in: path required: true schema: - title: Plan Id + title: Assistant Id type: string requestBody: content: @@ -1719,17 +1843,17 @@ paths: summary: Get Route operationId: v1_get_route parameters: - - name: assistant_id + - name: route_id in: path required: true schema: - title: Assistant Id + title: Route Id type: string - - name: route_id + - name: assistant_id in: path required: true schema: - title: Route Id + title: Assistant Id type: string responses: '200': @@ -1748,17 +1872,17 @@ paths: summary: Delete Route operationId: v1_delete_route parameters: - - name: assistant_id + - name: route_id in: path required: true schema: - title: Assistant Id + title: Route Id type: string - - name: route_id + - name: assistant_id in: path required: true schema: - title: Route Id + title: Assistant Id type: string responses: '200': @@ -1776,17 +1900,17 @@ paths: summary: Modify Route operationId: v1_modify_route parameters: - - name: assistant_id + - name: route_id in: path required: true schema: - title: Assistant Id + title: Route Id type: string - - name: route_id + - name: assistant_id in: path required: true schema: - title: Route Id + title: Assistant Id type: string requestBody: content: @@ -1837,53 +1961,282 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - /studio/v1/settings/models: - get: - summary: Get Workspace Models By Organization Endpoint - operationId: get_workspace_models_by_organization_endpoint_studio_v1_settings_models_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/WorkspaceModelsResponse' - /studio/v1/settings/models/available: - get: - summary: Get Available Models Endpoint - operationId: get_available_models_endpoint_studio_v1_settings_models_available_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } - '/studio/v1/settings/models/{name}/secrets': + '/studio/v1/executions/{execution_id}/explanations/steps': get: - summary: Get Workspace Model Secret Endpoint - operationId: get_workspace_model_secret_endpoint_studio_v1_settings_models__name__secrets_get + summary: Get Step Explanations + description: "Get step explanations for an execution (cached or generated).\nSet force_regenerate=True to regenerate even if cached." + operationId: get_step_explanations_studio_v1_executions__execution_id__explanations_steps_get parameters: - - name: name + - name: execution_id in: path required: true schema: - title: Name + title: Execution Id type: string + - name: force_regenerate + in: query + schema: + title: Force Regenerate + type: boolean + default: false responses: '200': description: Successful Response content: application/json: - schema: - $ref: '#/components/schemas/SecretResponse' + schema: { } '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' - '/studio/v1/settings/models/{name}': - delete: + '/studio/v1/executions/{execution_id}/explanations/output': + get: + summary: Get Output Explanation + description: "Get output explanation for an execution (cached or generated).\nSet force_regenerate=True to regenerate even if cached." + operationId: get_output_explanation_studio_v1_executions__execution_id__explanations_output_get + parameters: + - name: execution_id + in: path + required: true + schema: + title: Execution Id + type: string + - name: force_regenerate + in: query + schema: + title: Force Regenerate + type: boolean + default: false + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /studio/v1/mcp/discover: + post: + summary: Mcp Tool Discovery + operationId: mcp_tool_discovery_studio_v1_mcp_discover_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MCPDefinition' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/MCPDiscoveryResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /studio/v1/mcp/storage: + get: + summary: List Mcp Storage + operationId: list_mcp_storage_studio_v1_mcp_storage_get + parameters: + - name: workspace_id + in: query + schema: + title: Workspace Id + type: string + format: uuid + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/ListMCPsStorageResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + post: + summary: Create Mcp Storage + operationId: create_mcp_storage_studio_v1_mcp_storage_post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMCPStorageRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/MCPStorageResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/mcp/storage/{mcp_id}': + get: + summary: Get Mcp Storage + operationId: get_mcp_storage_studio_v1_mcp_storage__mcp_id__get + parameters: + - name: mcp_id + in: path + required: true + schema: + title: Mcp Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/MCPStorageResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + summary: Delete Mcp Storage + operationId: delete_mcp_storage_studio_v1_mcp_storage__mcp_id__delete + parameters: + - name: mcp_id + in: path + required: true + schema: + title: Mcp Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteMCPStorageResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + patch: + summary: Update Mcp Storage + operationId: update_mcp_storage_studio_v1_mcp_storage__mcp_id__patch + parameters: + - name: mcp_id + in: path + required: true + schema: + title: Mcp Id + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateMCPStorageRequest' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/MCPStorageResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/mcp/storage/{mcp_id}/assistants': + get: + summary: Get Assistants By Mcp + operationId: get_assistants_by_mcp_studio_v1_mcp_storage__mcp_id__assistants_get + parameters: + - name: mcp_id + in: path + required: true + schema: + title: Mcp Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/AssistantsByMcpResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /studio/v1/settings/models: + get: + summary: Get Workspace Models By Organization Endpoint + operationId: get_workspace_models_by_organization_endpoint_studio_v1_settings_models_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/WorkspaceModelsResponse' + /studio/v1/settings/models/available: + get: + summary: Get Available Models Endpoint + operationId: get_available_models_endpoint_studio_v1_settings_models_available_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/studio/v1/settings/models/{name}/secrets': + get: + summary: Get Workspace Model Secret Endpoint + operationId: get_workspace_model_secret_endpoint_studio_v1_settings_models__name__secrets_get + parameters: + - name: name + in: path + required: true + schema: + title: Name + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SecretResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/studio/v1/settings/models/{name}': + delete: summary: Delete Workspace Model Endpoint operationId: delete_workspace_model_endpoint_studio_v1_settings_models__name__delete parameters: @@ -1926,14 +2279,724 @@ paths: description: Successful Response content: application/json: - schema: - $ref: '#/components/schemas/WorkspaceModelResponse' - '422': - description: Validation Error + schema: + $ref: '#/components/schemas/WorkspaceModelResponse' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions/tlv_municipality/convrag: + post: + summary: Tlv Convrag + operationId: tlv_convrag_solutions_tlv_municipality_convrag_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/tlv_municipality/convrag: + post: + summary: Tlv Convrag Prefix Preview + operationId: tlv_convrag_prefix_preview_solutions_preview_tlv_municipality_convrag_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/fnac/v1/classifications: + post: + summary: Fnac V1 Classifications + operationId: fnac_v1_classifications_solutions_fnac_v1_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/fnac/v1/descriptions: + post: + summary: Fnac V1 Descriptions + operationId: fnac_v1_descriptions_solutions_fnac_v1_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/fnac/v1-deprecated/classifications: + post: + summary: Fnac V1 Deprecated Classifications + operationId: fnac_v1_deprecated_classifications_solutions_fnac_v1_deprecated_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/fnac/v1-deprecated/descriptions: + post: + summary: Fnac V1 Deprecated Descriptions + operationId: fnac_v1_deprecated_descriptions_solutions_fnac_v1_deprecated_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/fd/batches/v1/classifications: + post: + summary: Fnac Batch Classifications + operationId: fnac_batch_classifications_solutions_fd_batches_v1_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions/fd/batches/v1/classifications/{batch_id}/status': + post: + summary: Fnac Batch Classifications Status + operationId: fnac_batch_classifications_status_solutions_fd_batches_v1_classifications__batch_id__status_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/solutions/fd/batches/v1/classifications/{batch_id}/results': + post: + summary: Fnac Batch Classifications Results + operationId: fnac_batch_classifications_results_solutions_fd_batches_v1_classifications__batch_id__results_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions/fd/batches/v1/descriptions: + post: + summary: Fnac Batch Descriptions + operationId: fnac_batch_descriptions_solutions_fd_batches_v1_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions/fd/batches/v1/descriptions/{batch_id}/status': + post: + summary: Fnac Batch Descriptions Status + operationId: fnac_batch_descriptions_status_solutions_fd_batches_v1_descriptions__batch_id__status_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/solutions/fd/batches/v1/descriptions/{batch_id}/results': + post: + summary: Fnac Batch Descriptions Results + operationId: fnac_batch_descriptions_results_solutions_fd_batches_v1_descriptions__batch_id__results_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions-preview/fnac/v1/classifications: + post: + summary: Fnac V1 Classifications Prefix Preview + operationId: fnac_v1_classifications_prefix_preview_solutions_preview_fnac_v1_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/fnac/v1/descriptions: + post: + summary: Fnac V1 Descriptions Prefix Preview + operationId: fnac_v1_descriptions_prefix_preview_solutions_preview_fnac_v1_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/fnac/v1-deprecated/classifications: + post: + summary: Fnac V1 Deprecated Classifications Prefix Preview + operationId: fnac_v1_deprecated_classifications_prefix_preview_solutions_preview_fnac_v1_deprecated_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/fnac/v1-deprecated/descriptions: + post: + summary: Fnac V1 Deprecated Descriptions Prefix Preview + operationId: fnac_v1_deprecated_descriptions_prefix_preview_solutions_preview_fnac_v1_deprecated_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/fd/batches/v1/classifications: + post: + summary: Fnac Batch Classifications Prefix Preview + operationId: fnac_batch_classifications_prefix_preview_solutions_preview_fd_batches_v1_classifications_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions-preview/fd/batches/v1/classifications/{batch_id}/status': + post: + summary: Fnac Batch Classifications Status Prefix Preview + operationId: fnac_batch_classifications_status_prefix_preview_solutions_preview_fd_batches_v1_classifications__batch_id__status_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/solutions-preview/fd/batches/v1/classifications/{batch_id}/results': + post: + summary: Fnac Batch Classifications Results Prefix Preview + operationId: fnac_batch_classifications_results_prefix_preview_solutions_preview_fd_batches_v1_classifications__batch_id__results_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions-preview/fd/batches/v1/descriptions: + post: + summary: Fnac Batch Descriptions Prefix Preview + operationId: fnac_batch_descriptions_prefix_preview_solutions_preview_fd_batches_v1_descriptions_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions-preview/fd/batches/v1/descriptions/{batch_id}/status': + post: + summary: Fnac Batch Descriptions Status Prefix Preview + operationId: fnac_batch_descriptions_status_prefix_preview_solutions_preview_fd_batches_v1_descriptions__batch_id__status_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/solutions-preview/fd/batches/v1/descriptions/{batch_id}/results': + post: + summary: Fnac Batch Descriptions Results Prefix Preview + operationId: fnac_batch_descriptions_results_prefix_preview_solutions_preview_fd_batches_v1_descriptions__batch_id__results_post + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions/fd_aftersales/parts-classification/batch: + post: + summary: Fnac Aftersales Batch Predict + operationId: fnac_aftersales_batch_predict_solutions_fd_aftersales_parts_classification_batch_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions/fd_aftersales/parts-classification/batch/{batch_id}/status': + get: + summary: Fnac Aftersales Batch Predict Status + operationId: fnac_aftersales_batch_predict_status_solutions_fd_aftersales_parts_classification_batch__batch_id__status_get + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions-preview/fd_aftersales/parts-classification/batch: + post: + summary: Fnac Aftersales Batch Predict Prefix Preview + operationId: fnac_aftersales_batch_predict_prefix_preview_solutions_preview_fd_aftersales_parts_classification_batch_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '/solutions-preview/fd_aftersales/parts-classification/batch/{batch_id}/status': + get: + summary: Fnac Aftersales Batch Predict Status Prefix Preview + operationId: fnac_aftersales_batch_predict_status_prefix_preview_solutions_preview_fd_aftersales_parts_classification_batch__batch_id__status_get + parameters: + - name: batch_id + in: path + required: true + schema: + title: Batch Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /solutions/vidaa/summarize: + post: + summary: Vidaa Summarize + operationId: vidaa_summarize_solutions_vidaa_summarize_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/action-items: + post: + summary: Vidaa Action Items + operationId: vidaa_action_items_solutions_vidaa_action_items_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/sources: + get: + summary: Vidaa Sources + operationId: vidaa_sources_solutions_vidaa_sources_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/feed-items: + get: + summary: Vidaa Feed Items + operationId: vidaa_feed_items_solutions_vidaa_feed_items_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/subscribe: + post: + summary: Vidaa Subscribe + operationId: vidaa_subscribe_solutions_vidaa_subscribe_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/unsubscribe: + post: + summary: Vidaa Unsubscribe + operationId: vidaa_unsubscribe_solutions_vidaa_unsubscribe_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/subscriptions: + get: + summary: Vidaa Subscriptions + operationId: vidaa_subscriptions_solutions_vidaa_subscriptions_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/scheduler-stats: + get: + summary: Vidaa Scheduler Stats + operationId: vidaa_scheduler_stats_solutions_vidaa_scheduler_stats_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/trigger-poll: + post: + summary: Vidaa Trigger Poll + operationId: vidaa_trigger_poll_solutions_vidaa_trigger_poll_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/vidaa/api/messages: + post: + summary: Vidaa Messages + operationId: vidaa_messages_solutions_vidaa_api_messages_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/api/messages: + post: + summary: Vidaa Messages Preview + operationId: vidaa_messages_preview_solutions_preview_vidaa_api_messages_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/summarize: + post: + summary: Vidaa Summarize Preview + operationId: vidaa_summarize_preview_solutions_preview_vidaa_summarize_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/action-items: + post: + summary: Vidaa Action Items Preview + operationId: vidaa_action_items_preview_solutions_preview_vidaa_action_items_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/sources: + get: + summary: Vidaa Sources Preview + operationId: vidaa_sources_preview_solutions_preview_vidaa_sources_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/feed-items: + get: + summary: Vidaa Feed Items Preview + operationId: vidaa_feed_items_preview_solutions_preview_vidaa_feed_items_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/subscribe: + post: + summary: Vidaa Subscribe Preview + operationId: vidaa_subscribe_preview_solutions_preview_vidaa_subscribe_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/unsubscribe: + post: + summary: Vidaa Unsubscribe Preview + operationId: vidaa_unsubscribe_preview_solutions_preview_vidaa_unsubscribe_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/subscriptions: + get: + summary: Vidaa Subscriptions Preview + operationId: vidaa_subscriptions_preview_solutions_preview_vidaa_subscriptions_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/scheduler-stats: + get: + summary: Vidaa Scheduler Stats Preview + operationId: vidaa_scheduler_stats_preview_solutions_preview_vidaa_scheduler_stats_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/vidaa/trigger-poll: + post: + summary: Vidaa Trigger Poll Preview + operationId: vidaa_trigger_poll_preview_solutions_preview_vidaa_trigger_poll_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/wpp/query: + post: + summary: Wpp Query + operationId: wpp_query_solutions_wpp_query_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/wpp/feedback: + post: + summary: Wpp Feedback + operationId: wpp_feedback_solutions_wpp_feedback_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/wpp/query: + post: + summary: Wpp Query Prefix Preview + operationId: wpp_query_prefix_preview_solutions_preview_wpp_query_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/wpp/feedback: + post: + summary: Wpp Feedback Prefix Preview + operationId: wpp_feedback_prefix_preview_solutions_preview_wpp_feedback_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/kirsh/grant-compliance: + post: + summary: Kirsh Grant Compliance + operationId: kirsh_grant_compliance_solutions_kirsh_grant_compliance_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/kirsh/grant-metadata: + post: + summary: Kirsh Grant Metadata + operationId: kirsh_grant_metadata_solutions_kirsh_grant_metadata_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/kirsh-document-upload/process: + post: + summary: Kirsh Document Upload Process + operationId: kirsh_document_upload_process_solutions_kirsh_document_upload_process_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions/kirsh/email-assistant: + post: + summary: Kirsh Email Assistant + operationId: kirsh_email_assistant_solutions_kirsh_email_assistant_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/kirsh/grant-compliance: + post: + summary: Kirsh Grant Compliance Prefix Preview + operationId: kirsh_grant_compliance_prefix_preview_solutions_preview_kirsh_grant_compliance_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/kirsh/grant-metadata: + post: + summary: Kirsh Grant Metadata Prefix Preview + operationId: kirsh_grant_metadata_prefix_preview_solutions_preview_kirsh_grant_metadata_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/kirsh-document-upload/process: + post: + summary: Kirsh Document Upload Process Prefix Preview + operationId: kirsh_document_upload_process_prefix_preview_solutions_preview_kirsh_document_upload_process_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + /solutions-preview/kirsh/email-assistant: + post: + summary: Kirsh Email Assistant Prefix Preview + operationId: kirsh_email_assistant_prefix_preview_solutions_preview_kirsh_email_assistant_post + responses: + '200': + description: Successful Response content: application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' + schema: { } components: schemas: Assistant: @@ -1975,6 +3038,9 @@ components: organization_id: title: Organization Id type: string + workspace_id: + title: Workspace Id + type: string user_id: title: User Id type: string @@ -1999,11 +3065,70 @@ components: title: Tools type: array items: - type: object - additionalProperties: - $ref: '#/components/schemas/AssistantTool' - tool_resources: - $ref: '#/components/schemas/AssistantToolResource' + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__ToolDefinition' + requirements: + title: Requirements + type: array + items: + $ref: '#/components/schemas/language_studio_api_server__data_types__assistant__Requirement' + budget: + allOf: + - $ref: '#/components/schemas/BudgetLevel' + default: medium + visibility: + allOf: + - $ref: '#/components/schemas/Visibility' + default: public + assistant_type: + allOf: + - $ref: '#/components/schemas/AssistantType' + default: default + response_language: + title: Response Language + enum: + - arabic + - dutch + - english + - french + - german + - hebrew + - italian + - portuguese + - spanish + - unset + type: string + default: unset + vibe_prompt: + title: Vibe Prompt + type: string + starter_questions: + title: Starter Questions + type: array + items: + $ref: '#/components/schemas/StarterQuestion' + system_prompt: + title: System Prompt + type: string + workflow_config: + $ref: '#/components/schemas/WorkflowConfig' + config_overrides: + title: Config Overrides + type: object + AssistantBasicInfo: + title: AssistantBasicInfo + required: + - id + - name + type: object + properties: + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + format: uuid + name: + title: Name + type: string AssistantMessage: title: AssistantMessage type: object @@ -2023,6 +3148,9 @@ components: type: array items: $ref: '#/components/schemas/ToolCall' + reasoning_content: + title: Reasoning Content + type: string AssistantRoute: title: AssistantRoute required: @@ -2065,27 +3193,32 @@ components: assistant_id: title: Assistant Id type: string - AssistantTool: - title: AssistantTool + AssistantType: + title: AssistantType enum: - - file_search - - web_search - - plan_approval - type: string + - default + - chat + - maestro description: An enumeration. - AssistantToolResource: - title: AssistantToolResource + AssistantsByMcpResponse: + title: AssistantsByMcpResponse + required: + - results type: object properties: - file_search: - title: File Search - type: object - web_search: - title: Web Search - type: object - plan_approval: - title: Plan Approval - type: object + results: + title: Results + type: array + items: + $ref: '#/components/schemas/AssistantBasicInfo' + AuthenticationType: + title: AuthenticationType + enum: + - none + - token-api + - custom-header + type: string + description: An enumeration. Body_convert_document_file_studio_v1_chat_files_convert_post: title: Body_convert_document_file_studio_v1_chat_files_convert_post required: @@ -2142,6 +3275,10 @@ components: title: Budget type: string default: MEDIUM + vector_store_id: + title: Vector Store Id + type: string + description: Vector store ID to use for RFI processing Body_v1_library_upload: title: Body_v1_library_upload required: @@ -2177,6 +3314,16 @@ components: data_source: title: Data Source type: string + metadata: + title: Metadata + type: string + BudgetLevel: + title: BudgetLevel + enum: + - low + - medium + - high + description: An enumeration. ChatCompletion: title: ChatCompletion required: @@ -2299,7 +3446,7 @@ components: title: Tools type: array items: - $ref: '#/components/schemas/ToolDefinition' + $ref: '#/components/schemas/language_studio_api_server__data_types__chat__ToolDefinition' n: title: N type: integer @@ -2509,151 +3656,87 @@ components: - FAILED - SUCCEEDED description: An enumeration. - ConvRagExecuteRequest: - title: ConvRagExecuteRequest + CreateAssistantRequest: + title: CreateAssistantRequest required: - - message + - name type: object properties: - message: - title: Message + name: + title: Name type: string - label: - title: Label + description: + title: Description type: string - api_key: - title: Api Key + optimization: + title: Optimization type: string - ConversationalRagConfig: - title: ConversationalRagConfig - required: - - messages - type: object - properties: - messages: - title: Messages - type: array - items: - $ref: '#/components/schemas/Message' - description: messages - path: - title: Path + avatar: + title: Avatar type: string - labels: - title: Labels - type: array - items: - type: string - file_ids: - title: File Ids + models: + title: Models type: array items: type: string - retrieval_strategy: - title: Retrieval Strategy - enum: - - default - - segments - - add_neighbors - - full_doc - type: string - default: segments - retrieval_similarity_threshold: - title: Retrieval Similarity Threshold - type: number - default: 0 - max_neighbors: - title: Max Neighbors - type: integer - default: 1 - hybrid_search_alpha: - title: Hybrid Search Alpha - type: number - default: 1 - response_language: - title: Response Language - enum: - - arabic - - dutch - - english - - french - - german - - hebrew - - italian - - portuguese - - spanish - type: string - default: english - verbose: - title: Verbose - type: boolean - default: false - should_set_custom_retrieval_configs: - title: Should Set Custom Retrieval Configs - type: boolean - default: false - description: This class is to be used as a common class to all Studio API requests payloads - ConversationalRagResult: - title: ConversationalRagResult - required: - - id - - choices - - sources - type: object - properties: - id: - title: Id - type: string - description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" - choices: - title: Choices + tools: + title: Tools type: array items: - $ref: '#/components/schemas/Message' - search_queries: - title: Search Queries + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__ToolDefinition' + requirements: + title: Requirements type: array items: - type: string - context_retrieved: - title: Context Retrieved - type: boolean - default: false - answer_in_context: - title: Answer In Context - type: boolean - default: false - sources: - title: Sources + $ref: '#/components/schemas/language_studio_api_server__data_types__assistant__Requirement' + budget: + allOf: + - $ref: '#/components/schemas/BudgetLevel' + default: medium + assistant_type: + allOf: + - $ref: '#/components/schemas/AssistantType' + default: default + starter_questions: + title: Starter Questions type: array items: - $ref: '#/components/schemas/ConversationalRagSource' - ConversationalRagSource: - title: ConversationalRagSource + $ref: '#/components/schemas/StarterQuestion' + system_prompt: + title: System Prompt + type: string + workflow_config: + $ref: '#/components/schemas/WorkflowConfig' + config_overrides: + title: Config Overrides + type: object + CreateMCPStorageRequest: + title: CreateMCPStorageRequest required: - - text + - server_url + - server_label type: object properties: - text: - title: Text + server_url: + title: Server Url type: string - file_id: - title: File Id + server_label: + title: Server Label type: string - file_name: - title: File Name + workspace_id: + title: Workspace Id type: string - score: - title: Score - type: number - order: - title: Order - type: integer - public_url: - title: Public Url + format: uuid + authentication_type: + $ref: '#/components/schemas/AuthenticationType' + auth_header_name: + title: Auth Header Name type: string - labels: - title: Labels + auth_value: + title: Auth Value + type: string + allowed_tools: + title: Allowed Tools type: array items: type: string @@ -2682,14 +3765,7 @@ components: title: Tools type: array items: - type: object - additionalProperties: - enum: - - file_search - - web_search - type: string - tool_resources: - $ref: '#/components/schemas/ToolResources' + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__ToolDefinition' context: title: Context type: object @@ -2697,7 +3773,7 @@ components: title: Requirements type: array items: - $ref: '#/components/schemas/Requirement' + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__Requirement' budget: title: Budget enum: @@ -2722,14 +3798,16 @@ components: title: Dynamic Planning Enabled type: boolean default: false - tools_allowed: - title: Tools Allowed - type: boolean - default: false - payload_type: - allOf: - - $ref: '#/components/schemas/MaestroPayloadType' - default: maestro_run + assistant_id: + title: Assistant Id + type: string + variant: + title: Variant + enum: + - main + - ingestion + type: string + default: main custom_retrieval_configs: title: Custom Retrieval Configs type: array @@ -2747,7 +3825,17 @@ components: - italian - portuguese - spanish + - unset type: string + default: unset + system_prompt: + title: System Prompt + type: string + stream: + title: Stream + type: boolean + description: "Whether or not to stream the result one token at a time using\n[server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).\nThis can be useful when waiting for long results where a long wait time for an\nanswer can be problematic, such as a chatbot. If set to `True`, then `n` must\nbe 1. A streaming response is different than the non-streaming response.\n" + default: false CreateOrganizationSchemaRequest: title: CreateOrganizationSchemaRequest required: @@ -2858,6 +3946,17 @@ components: title: Id type: string description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + DeleteMCPStorageResponse: + title: DeleteMCPStorageResponse + required: + - id + type: object + properties: + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + format: uuid Demo: title: Demo required: @@ -3097,6 +4196,71 @@ components: dataSource: title: Datasource type: string + FileSearchToolResource: + title: FileSearchToolResource + type: object + properties: + type: + title: Type + enum: + - file_search + type: string + default: file_search + retrieval_similarity_threshold: + title: Retrieval Similarity Threshold + type: number + labels: + title: Labels + type: array + items: + type: string + labels_filter_mode: + title: Labels Filter Mode + enum: + - AND + - OR + type: string + default: AND + labels_filter: + $ref: '#/components/schemas/QueryFilter' + file_ids: + title: File Ids + type: array + items: + type: string + retrieval_strategy: + allOf: + - $ref: '#/components/schemas/RetrievalStrategy' + default: segments + max_neighbors: + title: Max Neighbors + type: integer + path: + title: Path + type: string + response_language: + title: Response Language + enum: + - arabic + - dutch + - english + - french + - german + - hebrew + - italian + - portuguese + - spanish + - unset + type: string + default: unset + hybrid_search_alpha: + title: Hybrid Search Alpha + type: number + default: 1 + use_two_step_embedders: + title: Use Two Step Embedders + type: boolean + default: false FileStatus: title: FileStatus enum: @@ -3135,6 +4299,228 @@ components: type: string parameters: $ref: '#/components/schemas/ToolParameters' + GenerateAssistantRequest: + title: GenerateAssistantRequest + required: + - prompt + type: object + properties: + prompt: + title: Prompt + type: string + avatar: + title: Avatar + type: string + GenerateAssistantResponse: + title: GenerateAssistantResponse + required: + - id + - created_at + - updated_at + - object + - name + - organization_id + - user_id + type: object + properties: + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + created_at: + title: Created At + type: string + format: date-time + updated_at: + title: Updated At + type: string + format: date-time + object: + title: Object + type: string + name: + title: Name + type: string + description: + title: Description + type: string + optimization: + title: Optimization + type: string + organization_id: + title: Organization Id + type: string + workspace_id: + title: Workspace Id + type: string + user_id: + title: User Id + type: string + avatar: + title: Avatar + type: string + is_archived: + title: Is Archived + type: boolean + default: false + models: + title: Models + anyOf: + - type: array + items: + type: string + format: uuid + - type: array + items: + type: string + tools: + title: Tools + type: array + items: + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__ToolDefinition' + requirements: + title: Requirements + type: array + items: + $ref: '#/components/schemas/language_studio_api_server__data_types__assistant__Requirement' + budget: + allOf: + - $ref: '#/components/schemas/BudgetLevel' + default: medium + visibility: + allOf: + - $ref: '#/components/schemas/Visibility' + default: public + assistant_type: + allOf: + - $ref: '#/components/schemas/AssistantType' + default: default + response_language: + title: Response Language + enum: + - arabic + - dutch + - english + - french + - german + - hebrew + - italian + - portuguese + - spanish + - unset + type: string + default: unset + vibe_prompt: + title: Vibe Prompt + type: string + starter_questions: + title: Starter Questions + type: array + items: + $ref: '#/components/schemas/StarterQuestion' + system_prompt: + title: System Prompt + type: string + workflow_config: + $ref: '#/components/schemas/WorkflowConfig' + config_overrides: + title: Config Overrides + type: object + custom_tool_needed: + title: Custom Tool Needed + type: object + additionalProperties: + type: string + recommended_files: + title: Recommended Files + type: array + items: + type: string + HTTPToolEndpoint: + title: HTTPToolEndpoint + required: + - url + type: object + properties: + url: + title: Url + type: string + headers: + title: Headers + type: object + HTTPToolFunction: + title: HTTPToolFunction + required: + - name + - description + - parameters + type: object + properties: + name: + title: Name + type: string + description: + title: Description + type: string + parameters: + $ref: '#/components/schemas/HTTPToolFunctionParameters' + HTTPToolFunctionParamProperties: + title: HTTPToolFunctionParamProperties + required: + - type + - description + type: object + properties: + type: + title: Type + type: string + description: + title: Description + type: string + HTTPToolFunctionParameters: + title: HTTPToolFunctionParameters + required: + - properties + - required + type: object + properties: + type: + title: Type + enum: + - object + type: string + default: object + properties: + title: Properties + type: object + additionalProperties: + $ref: '#/components/schemas/HTTPToolFunctionParamProperties' + required: + title: Required + type: array + items: + type: string + additionalProperties: + title: Additionalproperties + type: boolean + default: false + HTTPToolResource: + title: HTTPToolResource + required: + - function + - endpoint + type: object + properties: + type: + title: Type + enum: + - http + type: string + default: http + function: + $ref: '#/components/schemas/HTTPToolFunction' + endpoint: + $ref: '#/components/schemas/HTTPToolEndpoint' HTTPValidationError: title: HTTPValidationError type: object @@ -3264,6 +4650,17 @@ components: type: array items: $ref: '#/components/schemas/Assistant' + ListMCPsStorageResponse: + title: ListMCPsStorageResponse + required: + - results + type: object + properties: + results: + title: Results + type: array + items: + $ref: '#/components/schemas/MCPStorageResponse' ListPlansResponse: title: ListPlansResponse required: @@ -3285,50 +4682,170 @@ components: title: Results type: array items: - $ref: '#/components/schemas/AssistantRoute' - LogicalOperator: - title: LogicalOperator + $ref: '#/components/schemas/AssistantRoute' + LogicalOperator: + title: LogicalOperator + type: object + additionalProperties: + type: array + items: + type: object + Logprobs: + title: Logprobs + required: + - content + type: object + properties: + content: + title: Content + type: array + items: + $ref: '#/components/schemas/LogprobsData' + LogprobsData: + title: LogprobsData + required: + - token + - logprob + type: object + properties: + token: + title: Token + type: string + logprob: + title: Logprob + type: number + top_logprobs: + title: Top Logprobs + type: array + items: + $ref: '#/components/schemas/TopLogprobsData' + MCPDefinition: + title: MCPDefinition + required: + - server_url + type: object + properties: + server_url: + title: Server Url + type: string + server_label: + title: Server Label + type: string + headers: + title: Headers + type: object + MCPDiscoveryResponse: + title: MCPDiscoveryResponse + required: + - mcp_definition + - tools + type: object + properties: + mcp_definition: + $ref: '#/components/schemas/MCPDefinition' + tools: + title: Tools + type: array + items: + $ref: '#/components/schemas/MCPTool' + MCPStorageResponse: + title: MCPStorageResponse + required: + - id + - server_url + - server_label + - organization_id + - user_id + type: object + properties: + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + format: uuid + server_url: + title: Server Url + type: string + server_label: + title: Server Label + type: string + organization_id: + title: Organization Id + type: string + format: uuid + workspace_id: + title: Workspace Id + type: string + format: uuid + user_id: + title: User Id + type: string + format: uuid + authentication_type: + $ref: '#/components/schemas/AuthenticationType' + auth_header_name: + title: Auth Header Name + type: string + auth_secret_key: + title: Auth Secret Key + type: string + allowed_tools: + title: Allowed Tools + type: array + items: + type: string + MCPTool: + title: MCPTool + required: + - name + - inputSchema type: object - additionalProperties: - type: array - items: + properties: + name: + title: Name + type: string + description: + title: Description + type: string + inputSchema: + title: Inputschema type: object - Logprobs: - title: Logprobs - required: - - content + MCPToolResource: + title: MCPToolResource type: object properties: - content: - title: Content + type: + title: Type + enum: + - mcp + type: string + default: mcp + server_label: + title: Server Label + type: string + server_url: + title: Server Url + type: string + headers: + title: Headers + type: object + allowed_tools: + title: Allowed Tools type: array items: - $ref: '#/components/schemas/LogprobsData' - LogprobsData: - title: LogprobsData + type: string + mcp_id: + title: Mcp Id + type: string + MaestroRunError: + title: MaestroRunError required: - - token - - logprob + - message type: object properties: - token: - title: Token + message: + title: Message type: string - logprob: - title: Logprob - type: number - top_logprobs: - title: Top Logprobs - type: array - items: - $ref: '#/components/schemas/TopLogprobsData' - MaestroPayloadType: - title: MaestroPayloadType - enum: - - conversational_rag - - maestro_run - - conv_rag_maestro_run - description: An enumeration. MaestroRunResult: title: MaestroRunResult required: @@ -3357,6 +4874,8 @@ components: requirements_result: title: Requirements Result type: object + error: + $ref: '#/components/schemas/MaestroRunError' MarkdownRequest: title: MarkdownRequest required: @@ -3435,10 +4954,10 @@ components: enum: - jamba-mini - jamba-large - - jamba-mini-1.7 - jamba-large-1.7 - - jamba-mini-1.7-2025-07 - jamba-large-1.7-2025-07 + - jamba-mini-2 + - jamba-mini-2-2026-01 type: string description: An enumeration. ModelPricing: @@ -3472,6 +4991,66 @@ components: type: array items: $ref: '#/components/schemas/ModelInfo' + ModifyAssistantRequest: + title: ModifyAssistantRequest + type: object + properties: + name: + title: Name + type: string + description: + title: Description + type: string + optimization: + $ref: '#/components/schemas/RunOptimization' + avatar: + title: Avatar + type: string + is_archived: + title: Is Archived + type: boolean + default: false + models: + title: Models + type: array + items: + type: string + tools: + title: Tools + type: array + items: + $ref: '#/components/schemas/language_studio_api_server__data_types__execution_engine__ToolDefinition' + requirements: + title: Requirements + type: array + items: + $ref: '#/components/schemas/language_studio_api_server__data_types__assistant__Requirement' + budget: + $ref: '#/components/schemas/BudgetLevel' + visibility: + $ref: '#/components/schemas/Visibility' + response_language: + title: Response Language + enum: + - arabic + - dutch + - english + - french + - german + - hebrew + - italian + - portuguese + - spanish + - unset + type: string + system_prompt: + title: System Prompt + type: string + workflow_config: + $ref: '#/components/schemas/WorkflowConfig' + config_overrides: + title: Config Overrides + type: object OrgSchema: title: OrgSchema required: @@ -3575,22 +5154,6 @@ components: type: string description: Generated content for this section based on company files description: Model for a single RFI response section. - Requirement: - title: Requirement - required: - - name - - description - type: object - properties: - name: - title: Name - type: string - description: - title: Description - type: string - is_mandatory: - title: Is Mandatory - type: boolean RequirementItem: title: RequirementItem required: @@ -3645,6 +5208,65 @@ components: - full_doc type: string description: An enumeration. + RunAssistantRequest: + title: RunAssistantRequest + required: + - input + type: object + properties: + input: + title: Input + type: array + items: + $ref: '#/components/schemas/Message' + verbose: + title: Verbose + type: boolean + default: false + output_type: + title: Output Type + type: object + include: + title: Include + type: array + items: + type: string + default: + - data_sources + - requirements_result + - requirements_result.metadata + structured_rag_enabled: + title: Structured Rag Enabled + type: boolean + default: false + dynamic_planning_enabled: + title: Dynamic Planning Enabled + type: boolean + default: false + response_language: + title: Response Language + enum: + - arabic + - dutch + - english + - french + - german + - hebrew + - italian + - portuguese + - spanish + - unset + type: string + default: unset + system_prompt: + title: System Prompt + type: string + RunOptimization: + title: RunOptimization + enum: + - cost + - latency + description: An enumeration. SecretResponse: title: SecretResponse required: @@ -3658,6 +5280,19 @@ components: secret_key: title: Secret Key type: string + StarterQuestion: + title: StarterQuestion + required: + - title + - prompt + type: object + properties: + title: + title: Title + type: string + prompt: + title: Prompt + type: string SystemMessage: title: SystemMessage required: @@ -3746,20 +5381,6 @@ components: type: string function: $ref: '#/components/schemas/ToolFunctionDeltaStart' - ToolDefinition: - title: ToolDefinition - required: - - type - - function - type: object - properties: - type: - title: Type - enum: - - function - type: string - function: - $ref: '#/components/schemas/FunctionToolDefinition' ToolFunction: title: ToolFunction required: @@ -3833,16 +5454,6 @@ components: items: type: string description: List of required properties - ToolResources: - title: ToolResources - type: object - properties: - file_search: - title: File Search - type: object - web_search: - title: Web Search - type: object TopLogprobsData: title: TopLogprobsData required: @@ -3856,6 +5467,15 @@ components: logprob: title: Logprob type: number + UpdateMCPStorageRequest: + title: UpdateMCPStorageRequest + required: + - server_label + type: object + properties: + server_label: + title: Server Label + type: string UpdateRoutePayload: title: UpdateRoutePayload required: @@ -3959,6 +5579,40 @@ components: details: title: Details type: string + Visibility: + title: Visibility + enum: + - public + - private + description: An enumeration. + WebSearchToolResource: + title: WebSearchToolResource + type: object + properties: + type: + title: Type + enum: + - web_search + type: string + default: web_search + urls: + title: Urls + type: array + items: + type: string + fallback_to_web: + title: Fallback To Web + type: boolean + query_suffix: + title: Query Suffix + type: string + rephrase_query: + title: Rephrase Query + type: boolean + use_cached_pages: + title: Use Cached Pages + type: boolean + default: false WebsiteConnectorCreateConfigPayload: title: WebsiteConnectorCreateConfigPayload required: @@ -4047,6 +5701,21 @@ components: title: Website Id type: string format: uuid + WorkflowConfig: + title: WorkflowConfig + required: + - endpoint_url + type: object + properties: + endpoint_url: + title: Endpoint Url + type: string + headers: + title: Headers + type: object + additional_params: + title: Additional Params + type: object WorkspaceModelResponse: title: WorkspaceModelResponse required: @@ -4101,6 +5770,67 @@ components: type: array items: $ref: '#/components/schemas/WorkspaceModelResponse' + language_studio_api_server__data_types__assistant__Requirement: + title: Requirement + type: object + properties: + id: + title: Id + type: string + description: "A unique ID for the request (not the message). Repeated identical requests\nget different IDs. However, for a streaming response, the ID will be the same\nfor all responses in the stream.\n" + title: + title: Title + type: string + description: + title: Description + type: string + type: + title: Type + type: string + language_studio_api_server__data_types__chat__ToolDefinition: + title: ToolDefinition + required: + - type + - function + type: object + properties: + type: + title: Type + enum: + - function + type: string + function: + $ref: '#/components/schemas/FunctionToolDefinition' + language_studio_api_server__data_types__execution_engine__Requirement: + title: Requirement + required: + - name + - description + type: object + properties: + name: + title: Name + type: string + description: + title: Description + type: string + is_mandatory: + title: Is Mandatory + type: boolean + language_studio_api_server__data_types__execution_engine__ToolDefinition: + title: ToolDefinition + oneOf: + - $ref: '#/components/schemas/HTTPToolResource' + - $ref: '#/components/schemas/MCPToolResource' + - $ref: '#/components/schemas/FileSearchToolResource' + - $ref: '#/components/schemas/WebSearchToolResource' + discriminator: + propertyName: type + mapping: + http: '#/components/schemas/HTTPToolResource' + mcp: '#/components/schemas/MCPToolResource' + file_search: '#/components/schemas/FileSearchToolResource' + web_search: '#/components/schemas/WebSearchToolResource' securitySchemes: Bearer: type: http