From 1ab1fed2dc7a76e87a4ba6c5ac4c5e44b3296b4f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Mar 2026 02:52:43 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...frameStudioV1DemosScraperCanIframeGet.g.cs | 21 ++++++++++++++++--- ...okupSolutionsClarotyProductLookupPost.g.cs | 16 +++++++++++++- ...olutionsClarotySuggestVendorModelPost.g.cs | 16 +++++++++++++- ...1DemosDocumentModifierCompareTextPost.g.cs | 21 ++++++++++++++++--- ...umentFileStudioV1ChatFilesConvertPost.g.cs | 21 ++++++++++++++++--- ...i21Client.CreateDemoStudioV1DemosPost.g.cs | 21 ++++++++++++++++--- ...reateMcpStorageStudioV1McpStoragePost.g.cs | 21 ++++++++++++++++--- ...rganizationsOrganizationIdSchemasPost.g.cs | 21 ++++++++++++++++--- ...t.DeleteDemoStudioV1DemosDemoIdDelete.g.cs | 21 ++++++++++++++++--- ...pStorageStudioV1McpStorageMcpIdDelete.g.cs | 21 ++++++++++++++++--- ...OrganizationIdSchemasSchemaNameDelete.g.cs | 21 ++++++++++++++++--- ...oV1ConnectorsWebsiteConnectorIdDelete.g.cs | 21 ++++++++++++++++--- ...pointStudioV1SettingsModelsNameDelete.g.cs | 21 ++++++++++++++++--- ...ionsOrganizationIdSchemaDetectionPost.g.cs | 21 ++++++++++++++++--- ...ioV1DemosDocumentModifierDownloadPost.g.cs | 21 ++++++++++++++++--- ...ftersalesPartsClassificationBatchPost.g.cs | 16 +++++++++++++- ...ftersalesPartsClassificationBatchPost.g.cs | 16 +++++++++++++- ...tsClassificationBatchBatchIdStatusGet.g.cs | 21 ++++++++++++++++--- ...tsClassificationBatchBatchIdStatusGet.g.cs | 21 ++++++++++++++++--- ...PreviewFdBatchesV1ClassificationsPost.g.cs | 16 +++++++++++++- ...esV1ClassificationsBatchIdResultsPost.g.cs | 21 ++++++++++++++++--- ...esV1ClassificationsBatchIdResultsPost.g.cs | 21 ++++++++++++++++--- ...lutionsFdBatchesV1ClassificationsPost.g.cs | 16 +++++++++++++- ...hesV1ClassificationsBatchIdStatusPost.g.cs | 21 ++++++++++++++++--- ...hesV1ClassificationsBatchIdStatusPost.g.cs | 21 ++++++++++++++++--- ...onsPreviewFdBatchesV1DescriptionsPost.g.cs | 16 +++++++++++++- ...tchesV1DescriptionsBatchIdResultsPost.g.cs | 21 ++++++++++++++++--- ...tchesV1DescriptionsBatchIdResultsPost.g.cs | 21 ++++++++++++++++--- ...sSolutionsFdBatchesV1DescriptionsPost.g.cs | 16 +++++++++++++- ...atchesV1DescriptionsBatchIdStatusPost.g.cs | 21 ++++++++++++++++--- ...atchesV1DescriptionsBatchIdStatusPost.g.cs | 21 ++++++++++++++++--- ...tionsPreviewFnacV1ClassificationsPost.g.cs | 16 +++++++++++++- ...onsSolutionsFnacV1ClassificationsPost.g.cs | 16 +++++++++++++- ...ewFnacV1DeprecatedClassificationsPost.g.cs | 16 +++++++++++++- ...nsFnacV1DeprecatedClassificationsPost.g.cs | 16 +++++++++++++- ...eviewFnacV1DeprecatedDescriptionsPost.g.cs | 16 +++++++++++++- ...tionsFnacV1DeprecatedDescriptionsPost.g.cs | 16 +++++++++++++- ...olutionsPreviewFnacV1DescriptionsPost.g.cs | 16 +++++++++++++- ...ptionsSolutionsFnacV1DescriptionsPost.g.cs | 16 +++++++++++++- ...kStudioV1ConnectorsParagonWebhookPost.g.cs | 16 +++++++++++++- ...ctorsConnectedUsersEntityIdTokensPost.g.cs | 21 ++++++++++++++++--- ...udioV1DemosRfiGenerateResponsePdfPost.g.cs | 21 ++++++++++++++++--- ...pStudioV1McpStorageMcpIdAssistantsGet.g.cs | 21 ++++++++++++++++--- ...intStudioV1SettingsModelsAvailableGet.g.cs | 16 +++++++++++++- ...aSourcesDataSourceConnectionStatusGet.g.cs | 21 ++++++++++++++++--- ...ntityIdDataSourcesDataSourceStatusGet.g.cs | 21 ++++++++++++++++--- ...1Client.GetDemoStudioV1DemosDemoIdGet.g.cs | 21 ++++++++++++++++--- ...lStudioV1DemosScraperFileUrlFileIdGet.g.cs | 21 ++++++++++++++++--- ...tMcpStorageStudioV1McpStorageMcpIdGet.g.cs | 21 ++++++++++++++++--- ...sConnectedUsersEntityIdDataSourcesGet.g.cs | 21 ++++++++++++++++--- ...OrganizationsOrganizationIdSchemasGet.g.cs | 21 ++++++++++++++++--- ...tionsExecutionIdExplanationsOutputGet.g.cs | 21 ++++++++++++++++--- ...DemosDocumentModifierGetParsedFileGet.g.cs | 21 ++++++++++++++++--- ...utionsExecutionIdExplanationsStepsGet.g.cs | 21 ++++++++++++++++--- ...egulationsVectorStoreVectorStoreIdGet.g.cs | 21 ++++++++++++++++--- ...udioV1ConnectorsWebsiteConnectorIdGet.g.cs | 21 ++++++++++++++++--- ...ConnectorStudioV1ConnectorsWebsiteGet.g.cs | 16 +++++++++++++- ...tStudioV1SettingsModelsNameSecretsGet.g.cs | 21 ++++++++++++++++--- ...tionEndpointStudioV1SettingsModelsGet.g.cs | 16 +++++++++++++- ...DemosDocumentModifierJambaExecutePost.g.cs | 21 ++++++++++++++++--- ...PreviewKirshDocumentUploadProcessPost.g.cs | 16 +++++++++++++- ...lutionsKirshDocumentUploadProcessPost.g.cs | 16 +++++++++++++- ...lutionsPreviewKirshEmailAssistantPost.g.cs | 16 +++++++++++++- ...stantSolutionsKirshEmailAssistantPost.g.cs | 16 +++++++++++++- ...utionsPreviewKirshGrantCompliancePost.g.cs | 16 +++++++++++++- ...anceSolutionsKirshGrantCompliancePost.g.cs | 16 +++++++++++++- ...olutionsPreviewKirshGrantMetadataPost.g.cs | 16 +++++++++++++- ...tadataSolutionsKirshGrantMetadataPost.g.cs | 16 +++++++++++++- ....Ai21Client.ListDemosStudioV1DemosGet.g.cs | 16 +++++++++++++- ...t.ListMcpStorageStudioV1McpStorageGet.g.cs | 21 ++++++++++++++++--- ...pToolDiscoveryStudioV1McpDiscoverPost.g.cs | 21 ++++++++++++++++--- ...ioV1DemosDocumentModifierParsePdfPost.g.cs | 21 ++++++++++++++++--- ...onnectorStudioV1ConnectorsWebsitePost.g.cs | 21 ++++++++++++++++--- ...ocumentStudioV1DemosRfiProcessRfiPost.g.cs | 21 ++++++++++++++++--- ...orsConnectedUsersDataSourcesSyncsPost.g.cs | 21 ++++++++++++++++--- ...ataSourceWorkflowsWorkflowNameRunPost.g.cs | 21 ++++++++++++++++--- ...1ConnectorsWebsiteConnectorIdSyncPost.g.cs | 21 ++++++++++++++++--- ...ionsPreviewTlvMunicipalityConvragPost.g.cs | 16 +++++++++++++- ...agSolutionsTlvMunicipalityConvragPost.g.cs | 16 +++++++++++++- ...ient.UpdateDemoStudioV1DemosDemoIdPut.g.cs | 21 ++++++++++++++++--- ...cpStorageStudioV1McpStorageMcpIdPatch.g.cs | 21 ++++++++++++++++--- ...dpointStudioV1SettingsModelsNamePatch.g.cs | 21 ++++++++++++++++--- ...sRegulationsUploadCheckCompliancePost.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1CreateAssistant.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1CreatePlan.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1CreateRoute.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1DeleteAssistant.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1DeleteRoute.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1GenerateAssistant.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1GetAssistant.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1GetMaestroRun.g.cs | 21 ++++++++++++++++--- .../Generated/AI21.Ai21Client.V1GetPlan.g.cs | 21 ++++++++++++++++--- .../Generated/AI21.Ai21Client.V1GetRoute.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ListAssistants.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ListModelsInfo.g.cs | 16 +++++++++++++- .../AI21.Ai21Client.V1ListPlans.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ListRoutes.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1MaestroRun.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ModifyAssistant.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ModifyPlan.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ModifyRoute.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1RunAssistant.g.cs | 21 ++++++++++++++++--- ...ent.V1StudioApiGenerationRequirements.g.cs | 21 ++++++++++++++++--- ...lient.V1StudioApiGenerationThreadName.g.cs | 21 ++++++++++++++++--- .../AI21.Ai21Client.V1ValidatePlan.g.cs | 21 ++++++++++++++++--- ...wSolutionsPreviewVidaaActionItemsPost.g.cs | 16 +++++++++++++- ...ionItemsSolutionsVidaaActionItemsPost.g.cs | 16 +++++++++++++- ...viewSolutionsPreviewVidaaFeedItemsGet.g.cs | 16 +++++++++++++- ...aaFeedItemsSolutionsVidaaFeedItemsGet.g.cs | 16 +++++++++++++- ...wSolutionsPreviewVidaaApiMessagesPost.g.cs | 16 +++++++++++++- ...MessagesSolutionsVidaaApiMessagesPost.g.cs | 16 +++++++++++++- ...olutionsPreviewVidaaSchedulerStatsGet.g.cs | 16 +++++++++++++- ...rStatsSolutionsVidaaSchedulerStatsGet.g.cs | 16 +++++++++++++- ...reviewSolutionsPreviewVidaaSourcesGet.g.cs | 16 +++++++++++++- ....VidaaSourcesSolutionsVidaaSourcesGet.g.cs | 16 +++++++++++++- ...iewSolutionsPreviewVidaaSubscribePost.g.cs | 16 +++++++++++++- ...aSubscribeSolutionsVidaaSubscribePost.g.cs | 16 +++++++++++++- ...SolutionsPreviewVidaaSubscriptionsGet.g.cs | 16 +++++++++++++- ...iptionsSolutionsVidaaSubscriptionsGet.g.cs | 16 +++++++++++++- ...iewSolutionsPreviewVidaaSummarizePost.g.cs | 16 +++++++++++++- ...aSummarizeSolutionsVidaaSummarizePost.g.cs | 16 +++++++++++++- ...wSolutionsPreviewVidaaTriggerPollPost.g.cs | 16 +++++++++++++- ...ggerPollSolutionsVidaaTriggerPollPost.g.cs | 16 +++++++++++++- ...wSolutionsPreviewVidaaUnsubscribePost.g.cs | 16 +++++++++++++- ...ubscribeSolutionsVidaaUnsubscribePost.g.cs | 16 +++++++++++++- ...reviewSolutionsPreviewWppFeedbackPost.g.cs | 16 +++++++++++++- ...t.WppFeedbackSolutionsWppFeedbackPost.g.cs | 16 +++++++++++++- ...ixPreviewSolutionsPreviewWppQueryPost.g.cs | 16 +++++++++++++- ...1Client.WppQuerySolutionsWppQueryPost.g.cs | 16 +++++++++++++- src/libs/AI21/Generated/AI21.Exceptions.g.cs | 4 +++- src/libs/AI21/Generated/AI21.IAi21Client.g.cs | 3 +++ .../Generated/AI21.IJambaCompleteClient.g.cs | 3 +++ .../AI21.ILibraryManagementClient.g.cs | 3 +++ .../AI21/Generated/AI21.IRagEngineClient.g.cs | 3 +++ .../AI21/Generated/AI21.ISecretsClient.g.cs | 3 +++ .../AI21.IWebsiteConnectorClient.g.cs | 3 +++ ...21.JambaCompleteClient.V1ChatComplete.g.cs | 21 ++++++++++++++++--- ...braryManagementClient.V1LibraryDelete.g.cs | 21 ++++++++++++++++--- ...yManagementClient.V1LibraryManagement.g.cs | 21 ++++++++++++++++--- ...ManagementClient.V1LibraryManagement2.g.cs | 21 ++++++++++++++++--- ...ManagementClient.V1LibraryManagement3.g.cs | 21 ++++++++++++++++--- ...braryManagementClient.V1LibraryUpload.g.cs | 21 ++++++++++++++++--- ...1.RagEngineClient.V1LibraryManagement.g.cs | 21 ++++++++++++++++--- ....RagEngineClient.V1LibraryManagement2.g.cs | 21 ++++++++++++++++--- ....RagEngineClient.V1LibraryManagement3.g.cs | 21 ++++++++++++++++--- .../AI21.RagEngineClient.V1LibrarySearch.g.cs | 21 ++++++++++++++++--- .../AI21.SecretsClient.V1SecretStorage.g.cs | 16 +++++++++++++- .../AI21.SecretsClient.V1SecretStorage2.g.cs | 21 ++++++++++++++++--- .../AI21.SecretsClient.V1SecretStorage3.g.cs | 21 ++++++++++++++++--- .../AI21.SecretsClient.V1SecretStorage4.g.cs | 21 ++++++++++++++++--- ...Client.V1WebsiteConnectorCreateConfig.g.cs | 21 ++++++++++++++++--- ...torClient.V1WebsiteConnectorGetConfig.g.cs | 21 ++++++++++++++++--- ...Client.V1WebsiteConnectorGetUrlStatus.g.cs | 21 ++++++++++++++++--- ...nt.V1WebsiteConnectorGetWebsiteStatus.g.cs | 21 ++++++++++++++++--- ...torClient.V1WebsiteConnectorIngestUrl.g.cs | 21 ++++++++++++++++--- ...lient.V1WebsiteConnectorIngestWebsite.g.cs | 21 ++++++++++++++++--- ....V1WebsiteConnectorRetryIngestWebsite.g.cs | 21 ++++++++++++++++--- 157 files changed, 2550 insertions(+), 337 deletions(-) diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs index 0ef21ee9..2ee5381a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs @@ -102,8 +102,9 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs index e3036e67..9aa28312 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessClarotyProductLookupSolutionsClarotyProductLookupPostRespons } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs index 10abf118..1de32102 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessClarotySuggestVendorModelSolutionsClarotySuggestVendorModelP } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs index 8ec131c0..7ffe822f 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs @@ -109,8 +109,9 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -186,11 +187,25 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs index 74156f7f..c46fe40a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs @@ -107,8 +107,9 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -184,11 +185,25 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs index 0bd390f3..0847ccac 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs @@ -109,8 +109,9 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -190,11 +191,25 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs index c3c15f4e..a643c833 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs @@ -108,8 +108,9 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs index 617aef84..1b08dc40 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs @@ -114,8 +114,9 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -191,11 +192,25 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs index 899d0e3d..07b4dd6a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs @@ -100,8 +100,9 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -177,11 +178,25 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs index aa91c2cf..f5191c11 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs @@ -99,8 +99,9 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs index dbf71a04..22d7e3ee 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs @@ -105,8 +105,9 @@ partial void ProcessDeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOr } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -182,11 +183,25 @@ partial void ProcessDeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOr } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs index 69e46b3a..df16151d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs @@ -99,8 +99,9 @@ partial void ProcessDeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDe } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessDeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDe } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs index 43891306..ce941ed1 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs @@ -99,8 +99,9 @@ partial void ProcessDeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessDeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs index 11423ee5..24483ed9 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs @@ -114,8 +114,9 @@ partial void ProcessDetectSchemaStudioV1StructuredRagOrganizationsOrganizationId } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessDetectSchemaStudioV1StructuredRagOrganizationsOrganizationId } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs index cbdb9a45..56d8771a 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs @@ -109,8 +109,9 @@ partial void ProcessDownloadModifiedDocumentStudioV1DemosDocumentModifierDownloa } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -186,11 +187,25 @@ partial void ProcessDownloadModifiedDocumentStudioV1DemosDocumentModifierDownloa } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs index bd95db73..cbc9f681 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAft } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs index 8fdafb23..2c0356be 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassifi } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs index c74036bc..4ab6e310 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPrevie } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPrevie } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs index 655bafa2..02cabdd8 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsCl } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsCl } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs index 37281876..6889a778 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatch } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs index bbd4ac38..6adb5396 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreview } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreview } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs index c193e3ee..bf1312ec 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1Classific } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1Classific } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs index 0e7eee2e..b62a2761 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsP } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs index 6a9a941c..b2a9b088 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewF } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewF } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs index d5184d62..fd0ef3c8 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1Classifica } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1Classifica } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs index 59288d82..f3fd7b94 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs index 354b15df..a0be739f 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdB } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdB } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs index c46c2f80..a5c7b938 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1Descriptions } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1Descriptions } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs index 2bea32cb..041730da 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostRes } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs index 44eae6c7..313ddb54 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBa } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBa } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs index 04ec5911..c370c58f 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsB } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsB } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs index 11ee633e..03e34322 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1Clas } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs index 73940f3d..2c4a7d06 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs index 693fde9c..8b49e963 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreview } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs index 3e6d04f6..4cbc117e 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClas } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs index 1613155c..cd4ed153 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFna } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs index c39b29d9..16e123ec 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescrip } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs index efd1eb69..9b99d406 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1Descrip } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs index 2cd8505e..00addc79 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponseCon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs index c17dae00..2c2e3066 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessForwardParagonWebhookStudioV1ConnectorsParagonWebhookPostRes } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs index 165f7d51..15c3cf91 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdToke } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdToke } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs index 4ebd1c60..4e7fa6c7 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs @@ -108,8 +108,9 @@ partial void ProcessGenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostRe } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessGenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostRe } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs index cdbc1658..0c6ecbde 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRespon } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRespon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs index fad80bd7..663e0436 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessGetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs index 83535e09..85b70f3c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs @@ -114,8 +114,9 @@ partial void ProcessGetConnectorConnectionStatusStudioV1ConnectorsConnectedUsers } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessGetConnectorConnectionStatusStudioV1ConnectorsConnectedUsers } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs index 1d8f23dd..24156908 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs @@ -114,8 +114,9 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdD } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdD } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs index 108c37ff..995f610b 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs @@ -100,8 +100,9 @@ partial void ProcessGetDemoStudioV1DemosDemoIdGetResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -181,11 +182,25 @@ partial void ProcessGetDemoStudioV1DemosDemoIdGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs index 6aa95f87..48d2458e 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs @@ -108,8 +108,9 @@ partial void ProcessGetFileUrlStudioV1DemosScraperFileUrlFileIdGetResponseConten } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessGetFileUrlStudioV1DemosScraperFileUrlFileIdGetResponseConten } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs index b38d375d..dd8d88a6 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs index 68f36bcf..a293103d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityI } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityI } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs index caba8516..7a6988c1 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetOrganizationSchemasStudioV1StructuredRagOrganizationsOrga } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetOrganizationSchemasStudioV1StructuredRagOrganizationsOrga } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs index d17bcabd..c2f69d5c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs @@ -112,8 +112,9 @@ partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanation } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanation } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs index a40017bd..40739164 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs @@ -103,8 +103,9 @@ partial void ProcessGetParsedFileStudioV1DemosDocumentModifierGetParsedFileGetRe } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetParsedFileStudioV1DemosDocumentModifierGetParsedFileGetRe } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs index f574bd42..b497b21c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs @@ -112,8 +112,9 @@ partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanations } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanations } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs index 282f4c47..94394273 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs @@ -100,8 +100,9 @@ partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStore } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -177,11 +178,25 @@ partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStore } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs index 5e78fc29..e975aba5 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdG } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessGetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdG } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs index 8905bc1d..618bc0da 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessGetWebsiteConnectorStudioV1ConnectorsWebsiteGetResponseConte } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs index 0a658958..29290d97 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs @@ -99,8 +99,9 @@ partial void ProcessGetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSec } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessGetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSec } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs index 2e0b6d07..0e5f45d1 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs @@ -137,11 +137,25 @@ partial void ProcessGetWorkspaceModelsByOrganizationEndpointStudioV1SettingsMode } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs index 315eedd2..6505eb14 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs @@ -109,8 +109,9 @@ partial void ProcessJambaExecuteStudioV1DemosDocumentModifierJambaExecutePostRes } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -186,11 +187,25 @@ partial void ProcessJambaExecuteStudioV1DemosDocumentModifierJambaExecutePostRes } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs index 17ac1426..08b34e36 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirsh } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs index 800391af..7e2fe47e 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProces } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs index e81ad951..3df2e0a1 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAs } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs index cffa42cb..04e9d952 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponseC } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs index 2bae76ad..5e8fe646 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantC } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs index 04447b10..4a7469ea 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostRespons } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs index 6e9f88fa..da91335c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMet } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs index 9d66cb09..b1b667ce 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponseCon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs index 4363907a..a41368a5 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs @@ -138,11 +138,25 @@ partial void ProcessListDemosStudioV1DemosGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs index 6832c5ed..940be6f6 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs @@ -102,8 +102,9 @@ partial void ProcessListMcpStorageStudioV1McpStorageGetResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -183,11 +184,25 @@ partial void ProcessListMcpStorageStudioV1McpStorageGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs index 92146753..42b4bc0f 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs @@ -108,8 +108,9 @@ partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs index 2ef1f37a..2f8a25d8 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs @@ -114,8 +114,9 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -191,11 +192,25 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs index b5d0577b..d1e8b919 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs @@ -108,8 +108,9 @@ partial void ProcessPostWebsiteConnectorStudioV1ConnectorsWebsitePostResponseCon } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessPostWebsiteConnectorStudioV1ConnectorsWebsitePostResponseCon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs index 2b29ad8b..9e756667 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs @@ -127,8 +127,9 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -208,11 +209,25 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs index 240822e1..78a9d976 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs @@ -108,8 +108,9 @@ partial void ProcessRunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostR } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessRunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostR } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs index c501a7d1..80938b32 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs @@ -111,8 +111,9 @@ partial void ProcessRunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourc } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -188,11 +189,25 @@ partial void ProcessRunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourc } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs index bd3fcfca..529ec849 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs @@ -99,8 +99,9 @@ partial void ProcessSyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPostRespo } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessSyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs index 38fec497..4b5a959c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvra } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs index e51c0d37..39a78281 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponseContent } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs index a959554d..de5c4218 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs @@ -115,8 +115,9 @@ partial void ProcessUpdateDemoStudioV1DemosDemoIdPutResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -196,11 +197,25 @@ partial void ProcessUpdateDemoStudioV1DemosDemoIdPutResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs index 0c6e34a2..4c8baf62 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs @@ -114,8 +114,9 @@ partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs index 7566937a..675faaad 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs @@ -114,8 +114,9 @@ partial void ProcessUpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchR } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessUpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchR } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs index bf4bb06c..21098176 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs @@ -128,8 +128,9 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -205,11 +206,25 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs index e83e9ae2..ada67fd4 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1CreateAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1CreateAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs index 061b704e..c9026841 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1CreatePlanResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessV1CreatePlanResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs index bc47ca20..4c92ae25 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1CreateRouteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessV1CreateRouteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs index 604dc711..f1862703 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1DeleteAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessV1DeleteAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs index 1bf8e825..597623c7 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs @@ -105,8 +105,9 @@ partial void ProcessV1DeleteRouteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -182,11 +183,25 @@ partial void ProcessV1DeleteRouteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs index 560bd82c..c3973bcb 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1GenerateAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1GenerateAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs index 45d331d8..e44cd9b2 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1GetAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessV1GetAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs index ecf754a7..01723f3e 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1GetMaestroRunResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessV1GetMaestroRunResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs index 08551986..30f4e996 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs @@ -105,8 +105,9 @@ partial void ProcessV1GetPlanResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -186,11 +187,25 @@ partial void ProcessV1GetPlanResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs index 790aedfd..ae626f56 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs @@ -105,8 +105,9 @@ partial void ProcessV1GetRouteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -186,11 +187,25 @@ partial void ProcessV1GetRouteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs index eaf5ef94..0d9f0f34 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1ListAssistantsResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -183,11 +184,25 @@ partial void ProcessV1ListAssistantsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs index 4585f966..66caa0e9 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs @@ -137,11 +137,25 @@ partial void ProcessV1ListModelsInfoResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs index 3f77d2e8..91f7f65e 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1ListPlansResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessV1ListPlansResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs index a3d4a5e3..c4047de8 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1ListRoutesResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1ListRoutesResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs index 3bf5e48f..d2d62ff6 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1MaestroRunResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1MaestroRunResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs index cbf4df2f..1b5f3971 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1ModifyAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessV1ModifyAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs index 2e2961fb..76065532 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs @@ -120,8 +120,9 @@ partial void ProcessV1ModifyPlanResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -201,11 +202,25 @@ partial void ProcessV1ModifyPlanResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs index d2a8ac1c..71a4df90 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs @@ -120,8 +120,9 @@ partial void ProcessV1ModifyRouteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -201,11 +202,25 @@ partial void ProcessV1ModifyRouteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs index f188f210..556a9990 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1RunAssistantResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessV1RunAssistantResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs index ae0c6e9e..e5f4c75c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1StudioApiGenerationRequirementsResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1StudioApiGenerationRequirementsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs index 82eddff9..c8480b4d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1StudioApiGenerationThreadNameResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -189,11 +190,25 @@ partial void ProcessV1StudioApiGenerationThreadNameResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs index ad88ff7e..7dcf7df9 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1ValidatePlanResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -195,11 +196,25 @@ partial void ProcessV1ValidatePlanResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs index 493f355d..3145cad0 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostR } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs index adaaa63e..9cc30e66 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponseContent } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs index eb1b3dc6..119aa60d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetRespon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs index fe59938b..a3fdaf2d 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs index 3a40f5e8..c98ea73b 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResp } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs index ad13e7f3..291e4fa7 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs index 9822394b..865f0506 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStat } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs index 1ba827d5..4cf5d762 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponseCo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs index 32488c71..2ee72899 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponseCo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs index a51a544e..8ea6c254 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSourcesSolutionsVidaaSourcesGetResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs index 0ea6ac89..4f71078c 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs index 68ba7d8c..8d56f757 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs index 2299996e..2330d331 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsG } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs index ddbbcbc2..42e9ea49 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponseCont } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs index 9ed5accc..a4bc3002 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs index 4a7c9902..a1f4f37b 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs index 89e143e8..7dfc42fc 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostR } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs index 4a91e324..531ef384 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponseContent } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs index 4a14ceee..9f4ffd79 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostR } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs index c2d7851c..79ee1c34 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs @@ -133,11 +133,25 @@ partial void ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponseContent } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs index 734e9288..ec59bbbf 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostRespo } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs index fca84eb2..d9aeb5d3 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessWppFeedbackSolutionsWppFeedbackPostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs index a09ed43b..e95f00d5 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponseCon } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs index 120a13ba..1514e9f3 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs @@ -133,11 +133,25 @@ partial void ProcessWppQuerySolutionsWppQueryPostResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.Exceptions.g.cs b/src/libs/AI21/Generated/AI21.Exceptions.g.cs index 0f54804d..c7e2755a 100644 --- a/src/libs/AI21/Generated/AI21.Exceptions.g.cs +++ b/src/libs/AI21/Generated/AI21.Exceptions.g.cs @@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception /// public global::System.Net.HttpStatusCode StatusCode { get; } /// - /// The response body. + /// The response body as a string, or null if the body could not be read. + /// This is always populated for error responses regardless of the ReadResponseAsString setting. + /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read. /// public string? ResponseBody { get; set; } /// diff --git a/src/libs/AI21/Generated/AI21.IAi21Client.g.cs b/src/libs/AI21/Generated/AI21.IAi21Client.g.cs index 2ef75eda..8ca6623f 100644 --- a/src/libs/AI21/Generated/AI21.IAi21Client.g.cs +++ b/src/libs/AI21/Generated/AI21.IAi21Client.g.cs @@ -28,6 +28,9 @@ public partial interface IAi21Client : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs index 0fc74403..73d1a55e 100644 --- a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs +++ b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs @@ -27,6 +27,9 @@ public partial interface IJambaCompleteClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs index ab3d974f..12d429b5 100644 --- a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs +++ b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs @@ -27,6 +27,9 @@ public partial interface ILibraryManagementClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs index 6d8c887c..bcec7a40 100644 --- a/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs +++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs @@ -27,6 +27,9 @@ public partial interface IRagEngineClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs b/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs index 6dbdf4a6..c907e634 100644 --- a/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs +++ b/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs @@ -27,6 +27,9 @@ public partial interface ISecretsClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs index 18aa63ee..8ea65461 100644 --- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs +++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs @@ -27,6 +27,9 @@ public partial interface IWebsiteConnectorClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs index d4e74d46..8e0653eb 100644 --- a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs +++ b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs @@ -113,8 +113,9 @@ partial void ProcessV1ChatCompleteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -194,11 +195,25 @@ partial void ProcessV1ChatCompleteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs index 30192c77..e85607a4 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1LibraryDeleteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessV1LibraryDeleteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs index 03b59b8c..bd883602 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs @@ -143,8 +143,9 @@ partial void ProcessV1LibraryManagementResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -224,11 +225,25 @@ partial void ProcessV1LibraryManagementResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs index b48c90c2..b2ce51fc 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs @@ -107,8 +107,9 @@ partial void ProcessV1LibraryManagement2ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -188,11 +189,25 @@ partial void ProcessV1LibraryManagement2ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs index 8d96ba20..77e25770 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs @@ -122,8 +122,9 @@ partial void ProcessV1LibraryManagement3ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessV1LibraryManagement3ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs index 67b85fa8..acfd45e1 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs @@ -175,8 +175,9 @@ partial void ProcessV1LibraryUploadResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -252,11 +253,25 @@ partial void ProcessV1LibraryUploadResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs index c315def7..d75ff696 100644 --- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1LibraryManagementResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,11 +181,25 @@ partial void ProcessV1LibraryManagementResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs index 40a010cb..075cdd20 100644 --- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs @@ -99,8 +99,9 @@ partial void ProcessV1LibraryManagement2ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -176,11 +177,25 @@ partial void ProcessV1LibraryManagement2ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs index 790d7bfa..04098523 100644 --- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs @@ -100,8 +100,9 @@ partial void ProcessV1LibraryManagement3ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -177,11 +178,25 @@ partial void ProcessV1LibraryManagement3ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs index 5761e710..6550253e 100644 --- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs +++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1LibrarySearchResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1LibrarySearchResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs index ac2fd362..6dba079c 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs @@ -133,11 +133,25 @@ partial void ProcessV1SecretStorageResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs index 873f2615..aa69e610 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1SecretStorage2ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1SecretStorage2ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs index ce86800a..0f432e0c 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1SecretStorage3ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessV1SecretStorage3ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs index 213a7786..d9310278 100644 --- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs +++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs @@ -114,8 +114,9 @@ partial void ProcessV1SecretStorage4ResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -191,11 +192,25 @@ partial void ProcessV1SecretStorage4ResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs index cb340719..5ac6be6b 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorCreateConfigResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorCreateConfigResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs index 287639f9..8e32574a 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetConfigResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetConfigResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs index ce4ecc80..22688ea1 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetUrlStatusResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetUrlStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs index c03453a6..b4ba7a27 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs @@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetWebsiteStatusResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetWebsiteStatusResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs index 6eb82ac7..301ec40c 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorIngestUrlResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorIngestUrlResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs index 4d5aa5f5..448e3f29 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorIngestWebsiteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorIngestWebsiteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs index 196bf9cf..a9537f13 100644 --- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs +++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs @@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorRetryIngestWebsiteResponseContent( } else { - var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorRetryIngestWebsiteResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::AI21.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key,