From 5854fbb195bcf83a91dea6685848a9e019c5ed18 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Mar 2026 21:35:51 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ent.CreateDatasetsByNamespaceByRepoAskAccess.g.cs | 4 ++-- ...reateDatasetsByNamespaceByRepoPathsInfoByRev.g.cs | 4 ++-- ...reateDatasetsByNamespaceByRepoPreuploadByRev.g.cs | 4 ++-- ...ent.GetDatasetsByNamespaceByRepoCommitsByRev.g.cs | 4 ++-- ...ient.GetDatasetsByNamespaceByRepoLeaderboard.g.cs | 4 ++-- ...sClient.GetDatasetsByNamespaceByRepoLfsFiles.g.cs | 4 ++-- ...tDatasetsByNamespaceByRepoResolveByRevByPath.g.cs | 12 ++++++------ ....GetDatasetsByNamespaceByRepoTreeByRevByPath.g.cs | 4 ++-- ...tsByNamespaceByRepoUserAccessRequestByStatus.g.cs | 4 ++-- ...ingFace.DatasetsClient.GetDatasetsTagsByType.g.cs | 4 ++-- ...lveCacheDatasetsByNamespaceByRepoByRevByPath.g.cs | 12 ++++++------ .../Generated/HuggingFace.DocsClient.GetDocs.g.cs | 4 ++-- .../HuggingFace.DocsClient.GetDocsSearch.g.cs | 4 ++-- ...uggingFace.HuggingFaceEmbeddingClient.Decode.g.cs | 4 ++-- ...HuggingFace.HuggingFaceEmbeddingClient.Embed.g.cs | 4 ++-- ...gingFace.HuggingFaceEmbeddingClient.EmbedAll.g.cs | 4 ++-- ...gFace.HuggingFaceEmbeddingClient.EmbedSparse.g.cs | 4 ++-- ...uggingFace.HuggingFaceEmbeddingClient.Rerank.g.cs | 4 ++-- ...ngFace.HuggingFaceEmbeddingClient.Similarity.g.cs | 4 ++-- ...gingFace.HuggingFaceEmbeddingClient.Tokenize.g.cs | 4 ++-- ...ce.HuggingFaceInferenceClient.CompatGenerate.g.cs | 4 ++-- ...gingFace.HuggingFaceInferenceClient.Tokenize.g.cs | 4 ++-- .../HuggingFace.JobsClient.GetJobsByNamespace.g.cs | 4 ++-- .../HuggingFace.JobsClient.GetJobsHardware.g.cs | 4 ++-- ...gFace.JobsClient.GetScheduledJobsByNamespace.g.cs | 4 ++-- ...odelsClient.CreateByNamespaceByRepoAskAccess.g.cs | 4 ++-- ....CreateModelsByNamespaceByRepoPathsInfoByRev.g.cs | 4 ++-- ....CreateModelsByNamespaceByRepoPreuploadByRev.g.cs | 4 ++-- ...lient.GetByNamespaceByRepoResolveByRevByPath.g.cs | 12 ++++++------ ...lient.GetModelsByNamespaceByRepoCommitsByRev.g.cs | 4 ++-- ...elsClient.GetModelsByNamespaceByRepoLfsFiles.g.cs | 4 ++-- ...nt.GetModelsByNamespaceByRepoTreeByRevByPath.g.cs | 4 ++-- ...lsByNamespaceByRepoUserAccessRequestByStatus.g.cs | 4 ++-- ...HuggingFace.ModelsClient.GetModelsTagsByType.g.cs | 4 ++-- ...solveCacheModelsByNamespaceByRepoByRevByPath.g.cs | 12 ++++++------ ...sClient.GetOrganizationsByNameAuditLogExport.g.cs | 4 ++-- ...ace.OrgsClient.GetOrganizationsByNameMembers.g.cs | 4 ++-- .../HuggingFace.PapersClient.GetDailyPapers.g.cs | 4 ++-- .../HuggingFace.PapersClient.GetPapers.g.cs | 4 ++-- ...sClient.GetOrganizationsByNameResourceGroups.g.cs | 4 ++-- ...eOrganizationsByNameScimProvisioningV2Groups.g.cs | 4 ++-- ...Client.CreateOrganizationsByNameScimV2Groups.g.cs | 4 ++-- ...mClient.CreateOrganizationsByNameScimV2Users.g.cs | 4 ++-- ...zationsByNameScimProvisioningV2UsersByUserId.g.cs | 4 ++-- ...t.EditOrganizationsByNameScimV2UsersByUserId.g.cs | 4 ++-- ...nt.GetOrganizationsByNameScimV2ResourceTypes.g.cs | 4 ++-- ...imClient.GetOrganizationsByNameScimV2Schemas.g.cs | 4 ++-- ...zationsByNameScimProvisioningV2UsersByUserId.g.cs | 4 ++-- ...nt.PutOrganizationsByNameScimV2UsersByUserId.g.cs | 4 ++-- ....CreateSpacesByNamespaceByRepoPathsInfoByRev.g.cs | 4 ++-- ....CreateSpacesByNamespaceByRepoPreuploadByRev.g.cs | 4 ++-- ...solveCacheSpacesByNamespaceByRepoByRevByPath.g.cs | 12 ++++++------ ...lient.GetSpacesByNamespaceByRepoCommitsByRev.g.cs | 4 ++-- ...cesClient.GetSpacesByNamespaceByRepoLfsFiles.g.cs | 4 ++-- ...GetSpacesByNamespaceByRepoResolveByRevByPath.g.cs | 12 ++++++------ ...nt.GetSpacesByNamespaceByRepoTreeByRevByPath.g.cs | 4 ++-- .../HuggingFace.SpacesClient.GetSpacesHardware.g.cs | 4 ++-- ...ggingFace.WebhooksClient.GetSettingsWebhooks.g.cs | 4 ++-- 58 files changed, 140 insertions(+), 140 deletions(-) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoAskAccess.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoAskAccess.g.cs index fb931600..0dd366c7 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoAskAccess.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoAskAccess.g.cs @@ -112,13 +112,13 @@ partial void ProcessCreateDatasetsByNamespaceByRepoAskAccessResponse( if (ReadResponseAsString) { __content_303 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_303 = global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext) as string; + __value_303 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext); } else { __content_303 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_303 = global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext) as string; + __value_303 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPathsInfoByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPathsInfoByRev.g.cs index c28a93a8..f0090f36 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPathsInfoByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPathsInfoByRev.g.cs @@ -134,7 +134,7 @@ partial void ProcessCreateDatasetsByNamespaceByRepoPathsInfoByRevResponseContent __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCreateDatasetsByNamespaceByRepoPathsInfoByRevResponseContent ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPreuploadByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPreuploadByRev.g.cs index b40157dc..b80217c0 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPreuploadByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.CreateDatasetsByNamespaceByRepoPreuploadByRev.g.cs @@ -123,13 +123,13 @@ partial void ProcessCreateDatasetsByNamespaceByRepoPreuploadByRevResponseContent if (ReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoCommitsByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoCommitsByRev.g.cs index 02d42107..8ce2a71d 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoCommitsByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoCommitsByRev.g.cs @@ -146,7 +146,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoCommitsByRevResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoCommitsByRevResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLeaderboard.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLeaderboard.g.cs index 645102cf..2b116ee5 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLeaderboard.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLeaderboard.g.cs @@ -123,7 +123,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoLeaderboardResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -154,7 +154,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoLeaderboardResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLfsFiles.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLfsFiles.g.cs index 97893ef2..c0efa0b6 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLfsFiles.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoLfsFiles.g.cs @@ -139,7 +139,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoLfsFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoLfsFilesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoResolveByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoResolveByRevByPath.g.cs index bbe53899..537901c5 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoResolveByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoResolveByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetDatasetsByNamespaceByRepoResolveByRevByPathResponseConten if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetDatasetsByNamespaceByRepoResolveByRevByPathResponseConten if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetDatasetsByNamespaceByRepoResolveByRevByPathResponseConten if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoTreeByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoTreeByRevByPath.g.cs index e9cbd418..5947f3af 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoTreeByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoTreeByRevByPath.g.cs @@ -166,7 +166,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoTreeByRevByPathResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoTreeByRevByPathResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoUserAccessRequestByStatus.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoUserAccessRequestByStatus.g.cs index 975aa6da..c21ac6e0 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoUserAccessRequestByStatus.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsByNamespaceByRepoUserAccessRequestByStatus.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoUserAccessRequestByStatusRespons __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -176,7 +176,7 @@ partial void ProcessGetDatasetsByNamespaceByRepoUserAccessRequestByStatusRespons ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsTagsByType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsTagsByType.g.cs index 8a2e01c1..f904a7a1 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsTagsByType.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetDatasetsTagsByType.g.cs @@ -111,7 +111,7 @@ partial void ProcessGetDatasetsTagsByTypeResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext) as global::System.Collections.Generic.Dictionary> ?? + (global::System.Collections.Generic.Dictionary>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessGetDatasetsTagsByTypeResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.Dictionary> ?? + (global::System.Collections.Generic.Dictionary>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetResolveCacheDatasetsByNamespaceByRepoByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetResolveCacheDatasetsByNamespaceByRepoByRevByPath.g.cs index 7496ff23..88af2fc2 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetResolveCacheDatasetsByNamespaceByRepoByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DatasetsClient.GetResolveCacheDatasetsByNamespaceByRepoByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetResolveCacheDatasetsByNamespaceByRepoByRevByPathResponseC if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetResolveCacheDatasetsByNamespaceByRepoByRevByPathResponseC if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetResolveCacheDatasetsByNamespaceByRepoByRevByPathResponseC if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocs.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocs.g.cs index 01614433..c500645e 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocs.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocs.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetDocsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetDocsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocsSearch.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocsSearch.g.cs index f8f3d31e..23a224d5 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocsSearch.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.DocsClient.GetDocsSearch.g.cs @@ -127,7 +127,7 @@ partial void ProcessGetDocsSearchResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -158,7 +158,7 @@ partial void ProcessGetDocsSearchResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Decode.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Decode.g.cs index 80302eec..e99a7416 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Decode.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Decode.g.cs @@ -230,7 +230,7 @@ partial void ProcessDecodeResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -261,7 +261,7 @@ partial void ProcessDecodeResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Embed.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Embed.g.cs index 7dc3c5e1..8d1678cf 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Embed.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Embed.g.cs @@ -306,7 +306,7 @@ partial void ProcessEmbedResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -337,7 +337,7 @@ partial void ProcessEmbedResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedAll.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedAll.g.cs index 5e198b78..a4cb6139 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedAll.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedAll.g.cs @@ -307,7 +307,7 @@ partial void ProcessEmbedAllResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>>), JsonSerializerContext) as global::System.Collections.Generic.IList>> ?? + (global::System.Collections.Generic.IList>>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -338,7 +338,7 @@ partial void ProcessEmbedAllResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList>> ?? + (global::System.Collections.Generic.IList>>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedSparse.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedSparse.g.cs index 778b4e74..cd609c77 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedSparse.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.EmbedSparse.g.cs @@ -306,7 +306,7 @@ partial void ProcessEmbedSparseResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -337,7 +337,7 @@ partial void ProcessEmbedSparseResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Rerank.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Rerank.g.cs index 8a948f71..ba2e98fc 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Rerank.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Rerank.g.cs @@ -307,7 +307,7 @@ partial void ProcessRerankResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -338,7 +338,7 @@ partial void ProcessRerankResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Similarity.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Similarity.g.cs index bb439de4..fb1ab81f 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Similarity.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Similarity.g.cs @@ -306,7 +306,7 @@ partial void ProcessSimilarityResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -337,7 +337,7 @@ partial void ProcessSimilarityResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Tokenize.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Tokenize.g.cs index eb3cb1a3..ee2b36ba 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Tokenize.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceEmbeddingClient.Tokenize.g.cs @@ -230,7 +230,7 @@ partial void ProcessTokenizeResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -261,7 +261,7 @@ partial void ProcessTokenizeResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList> ?? + (global::System.Collections.Generic.IList>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.CompatGenerate.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.CompatGenerate.g.cs index 30957f75..cdfc2070 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.CompatGenerate.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.CompatGenerate.g.cs @@ -275,7 +275,7 @@ partial void ProcessCompatGenerateResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -306,7 +306,7 @@ partial void ProcessCompatGenerateResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.Tokenize.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.Tokenize.g.cs index ab4d266a..99091525 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.Tokenize.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.HuggingFaceInferenceClient.Tokenize.g.cs @@ -154,7 +154,7 @@ partial void ProcessTokenizeResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -185,7 +185,7 @@ partial void ProcessTokenizeResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsByNamespace.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsByNamespace.g.cs index 7544fd47..ecfe997f 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsByNamespace.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsByNamespace.g.cs @@ -119,7 +119,7 @@ partial void ProcessGetJobsByNamespaceResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGetJobsByNamespaceResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsHardware.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsHardware.g.cs index 2081191c..fbd29093 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsHardware.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetJobsHardware.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetJobsHardwareResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetJobsHardwareResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetScheduledJobsByNamespace.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetScheduledJobsByNamespace.g.cs index 4609f91d..c7a6fc1c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetScheduledJobsByNamespace.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.JobsClient.GetScheduledJobsByNamespace.g.cs @@ -119,7 +119,7 @@ partial void ProcessGetScheduledJobsByNamespaceResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -150,7 +150,7 @@ partial void ProcessGetScheduledJobsByNamespaceResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateByNamespaceByRepoAskAccess.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateByNamespaceByRepoAskAccess.g.cs index 8bff3951..08b5c94f 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateByNamespaceByRepoAskAccess.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateByNamespaceByRepoAskAccess.g.cs @@ -112,13 +112,13 @@ partial void ProcessCreateByNamespaceByRepoAskAccessResponse( if (ReadResponseAsString) { __content_303 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_303 = global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext) as string; + __value_303 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext); } else { __content_303 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_303 = global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext) as string; + __value_303 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_303, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPathsInfoByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPathsInfoByRev.g.cs index 5c610b39..74e4df28 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPathsInfoByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPathsInfoByRev.g.cs @@ -134,7 +134,7 @@ partial void ProcessCreateModelsByNamespaceByRepoPathsInfoByRevResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCreateModelsByNamespaceByRepoPathsInfoByRevResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPreuploadByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPreuploadByRev.g.cs index 0da71796..cc62f53f 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPreuploadByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.CreateModelsByNamespaceByRepoPreuploadByRev.g.cs @@ -123,13 +123,13 @@ partial void ProcessCreateModelsByNamespaceByRepoPreuploadByRevResponseContent( if (ReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetByNamespaceByRepoResolveByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetByNamespaceByRepoResolveByRevByPath.g.cs index dfc8449d..76986613 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetByNamespaceByRepoResolveByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetByNamespaceByRepoResolveByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoCommitsByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoCommitsByRev.g.cs index 7f8a0300..0668a759 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoCommitsByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoCommitsByRev.g.cs @@ -146,7 +146,7 @@ partial void ProcessGetModelsByNamespaceByRepoCommitsByRevResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetModelsByNamespaceByRepoCommitsByRevResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoLfsFiles.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoLfsFiles.g.cs index d7705723..4060dd30 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoLfsFiles.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoLfsFiles.g.cs @@ -139,7 +139,7 @@ partial void ProcessGetModelsByNamespaceByRepoLfsFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessGetModelsByNamespaceByRepoLfsFilesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoTreeByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoTreeByRevByPath.g.cs index c560051e..e2516be8 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoTreeByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoTreeByRevByPath.g.cs @@ -166,7 +166,7 @@ partial void ProcessGetModelsByNamespaceByRepoTreeByRevByPathResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessGetModelsByNamespaceByRepoTreeByRevByPathResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoUserAccessRequestByStatus.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoUserAccessRequestByStatus.g.cs index c936400e..82282e0e 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoUserAccessRequestByStatus.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsByNamespaceByRepoUserAccessRequestByStatus.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetModelsByNamespaceByRepoUserAccessRequestByStatusResponseC __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -176,7 +176,7 @@ partial void ProcessGetModelsByNamespaceByRepoUserAccessRequestByStatusResponseC ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsTagsByType.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsTagsByType.g.cs index 27c16880..bdbfec03 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsTagsByType.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetModelsTagsByType.g.cs @@ -111,7 +111,7 @@ partial void ProcessGetModelsTagsByTypeResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext) as global::System.Collections.Generic.Dictionary> ?? + (global::System.Collections.Generic.Dictionary>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessGetModelsTagsByTypeResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.Dictionary> ?? + (global::System.Collections.Generic.Dictionary>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.Dictionary>), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetResolveCacheModelsByNamespaceByRepoByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetResolveCacheModelsByNamespaceByRepoByRevByPath.g.cs index b435793c..46ab3ca9 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetResolveCacheModelsByNamespaceByRepoByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ModelsClient.GetResolveCacheModelsByNamespaceByRepoByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetResolveCacheModelsByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetResolveCacheModelsByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetResolveCacheModelsByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameAuditLogExport.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameAuditLogExport.g.cs index 47cb7883..fd9f8245 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameAuditLogExport.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameAuditLogExport.g.cs @@ -117,7 +117,7 @@ partial void ProcessGetOrganizationsByNameAuditLogExportResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessGetOrganizationsByNameAuditLogExportResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameMembers.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameMembers.g.cs index bb8a49bb..23ab37a1 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameMembers.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.OrgsClient.GetOrganizationsByNameMembers.g.cs @@ -140,7 +140,7 @@ partial void ProcessGetOrganizationsByNameMembersResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessGetOrganizationsByNameMembersResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetDailyPapers.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetDailyPapers.g.cs index a481284d..f8e7a26a 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetDailyPapers.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetDailyPapers.g.cs @@ -158,7 +158,7 @@ partial void ProcessGetDailyPapersResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -189,7 +189,7 @@ partial void ProcessGetDailyPapersResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetPapers.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetPapers.g.cs index 1ac396e4..f8d3effe 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetPapers.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.PapersClient.GetPapers.g.cs @@ -122,7 +122,7 @@ partial void ProcessGetPapersResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessGetPapersResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ResourceGroupsClient.GetOrganizationsByNameResourceGroups.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ResourceGroupsClient.GetOrganizationsByNameResourceGroups.g.cs index d42bdfb5..ac2d7655 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ResourceGroupsClient.GetOrganizationsByNameResourceGroups.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ResourceGroupsClient.GetOrganizationsByNameResourceGroups.g.cs @@ -109,7 +109,7 @@ partial void ProcessGetOrganizationsByNameResourceGroupsResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -140,7 +140,7 @@ partial void ProcessGetOrganizationsByNameResourceGroupsResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimProvisioningV2Groups.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimProvisioningV2Groups.g.cs index bfaa2304..b2707aef 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimProvisioningV2Groups.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimProvisioningV2Groups.g.cs @@ -111,13 +111,13 @@ partial void ProcessCreateOrganizationsByNameScimProvisioningV2GroupsResponseCon if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Groups.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Groups.g.cs index 528d09f1..bb43ccc9 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Groups.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Groups.g.cs @@ -111,13 +111,13 @@ partial void ProcessCreateOrganizationsByNameScimV2GroupsResponseContent( if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Users.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Users.g.cs index 67090dab..d39d66dc 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Users.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.CreateOrganizationsByNameScimV2Users.g.cs @@ -111,13 +111,13 @@ partial void ProcessCreateOrganizationsByNameScimV2UsersResponseContent( if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.DeleteOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.DeleteOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs index 591802e9..4fd9607c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.DeleteOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.DeleteOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs @@ -102,13 +102,13 @@ partial void ProcessDeleteOrganizationsByNameScimProvisioningV2UsersByUserIdResp if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext) as string; + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext) as string; + __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.EditOrganizationsByNameScimV2UsersByUserId.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.EditOrganizationsByNameScimV2UsersByUserId.g.cs index 39e44050..acfcdb7b 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.EditOrganizationsByNameScimV2UsersByUserId.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.EditOrganizationsByNameScimV2UsersByUserId.g.cs @@ -119,13 +119,13 @@ partial void ProcessEditOrganizationsByNameScimV2UsersByUserIdResponseContent( if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2ResourceTypes.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2ResourceTypes.g.cs index d5dad0ce..daaf6f42 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2ResourceTypes.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2ResourceTypes.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetOrganizationsByNameScimV2ResourceTypesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetOrganizationsByNameScimV2ResourceTypesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2Schemas.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2Schemas.g.cs index 9b834072..1959799c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2Schemas.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.GetOrganizationsByNameScimV2Schemas.g.cs @@ -108,7 +108,7 @@ partial void ProcessGetOrganizationsByNameScimV2SchemasResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessGetOrganizationsByNameScimV2SchemasResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs index c6402ad0..7ea210c4 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimProvisioningV2UsersByUserId.g.cs @@ -117,13 +117,13 @@ partial void ProcessPutOrganizationsByNameScimProvisioningV2UsersByUserIdRespons if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimV2UsersByUserId.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimV2UsersByUserId.g.cs index 9b46c690..27f71546 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimV2UsersByUserId.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.ScimClient.PutOrganizationsByNameScimV2UsersByUserId.g.cs @@ -117,13 +117,13 @@ partial void ProcessPutOrganizationsByNameScimV2UsersByUserIdResponseContent( if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext) as string; + __value_409 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_409, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPathsInfoByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPathsInfoByRev.g.cs index 8a32a274..c4f249b1 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPathsInfoByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPathsInfoByRev.g.cs @@ -134,7 +134,7 @@ partial void ProcessCreateSpacesByNamespaceByRepoPathsInfoByRevResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -165,7 +165,7 @@ partial void ProcessCreateSpacesByNamespaceByRepoPathsInfoByRevResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPreuploadByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPreuploadByRev.g.cs index f526b65c..cabdc686 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPreuploadByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.CreateSpacesByNamespaceByRepoPreuploadByRev.g.cs @@ -123,13 +123,13 @@ partial void ProcessCreateSpacesByNamespaceByRepoPreuploadByRevResponseContent( if (ReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_422 = global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext) as string; + __value_422 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_422, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetResolveCacheSpacesByNamespaceByRepoByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetResolveCacheSpacesByNamespaceByRepoByRevByPath.g.cs index 45ea7419..64184302 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetResolveCacheSpacesByNamespaceByRepoByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetResolveCacheSpacesByNamespaceByRepoByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetResolveCacheSpacesByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetResolveCacheSpacesByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetResolveCacheSpacesByNamespaceByRepoByRevByPathResponseCon if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoCommitsByRev.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoCommitsByRev.g.cs index 50432a77..ff6f516a 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoCommitsByRev.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoCommitsByRev.g.cs @@ -146,7 +146,7 @@ partial void ProcessGetSpacesByNamespaceByRepoCommitsByRevResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetSpacesByNamespaceByRepoCommitsByRevResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoLfsFiles.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoLfsFiles.g.cs index 6ef27a95..cf581165 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoLfsFiles.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoLfsFiles.g.cs @@ -139,7 +139,7 @@ partial void ProcessGetSpacesByNamespaceByRepoLfsFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -170,7 +170,7 @@ partial void ProcessGetSpacesByNamespaceByRepoLfsFilesResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoResolveByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoResolveByRevByPath.g.cs index 82a51259..5035168c 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoResolveByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoResolveByRevByPath.g.cs @@ -142,13 +142,13 @@ partial void ProcessGetSpacesByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } else { __content_302 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_302 = global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext) as string; + __value_302 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_302, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessGetSpacesByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } else { __content_304 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_304 = global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext) as string; + __value_304 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_304, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessGetSpacesByNamespaceByRepoResolveByRevByPathResponseContent( if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext) as string; + __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoTreeByRevByPath.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoTreeByRevByPath.g.cs index fed3ced4..cbbf2742 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoTreeByRevByPath.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesByNamespaceByRepoTreeByRevByPath.g.cs @@ -166,7 +166,7 @@ partial void ProcessGetSpacesByNamespaceByRepoTreeByRevByPathResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -197,7 +197,7 @@ partial void ProcessGetSpacesByNamespaceByRepoTreeByRevByPathResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesHardware.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesHardware.g.cs index 35366b3a..a1ed9d07 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesHardware.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.SpacesClient.GetSpacesHardware.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetSpacesHardwareResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessGetSpacesHardwareResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/HuggingFace/Generated/HuggingFace.WebhooksClient.GetSettingsWebhooks.g.cs b/src/libs/HuggingFace/Generated/HuggingFace.WebhooksClient.GetSettingsWebhooks.g.cs index 1f32ced9..f26d64b1 100644 --- a/src/libs/HuggingFace/Generated/HuggingFace.WebhooksClient.GetSettingsWebhooks.g.cs +++ b/src/libs/HuggingFace/Generated/HuggingFace.WebhooksClient.GetSettingsWebhooks.g.cs @@ -101,7 +101,7 @@ partial void ProcessGetSettingsWebhooksResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessGetSettingsWebhooksResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex)