diff --git a/src/libs/Dust/Generated/Dust.AllOf.2.Json.g.cs b/src/libs/Dust/Generated/Dust.AllOf.2.Json.g.cs deleted file mode 100644 index fd42568..0000000 --- a/src/libs/Dust/Generated/Dust.AllOf.2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct AllOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.AllOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.AllOf), - jsonSerializerContext) as global::Dust.AllOf?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.AllOf? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.AllOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.AllOf), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.AllOf?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.AllOf.2.g.cs b/src/libs/Dust/Generated/Dust.AllOf.2.g.cs deleted file mode 100644 index 689a65a..0000000 --- a/src/libs/Dust/Generated/Dust.AllOf.2.g.cs +++ /dev/null @@ -1,308 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public readonly partial struct AllOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => IsValue1 - ? Value1! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => IsValue2 - ? Value2! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator AllOf(T1 value) => new AllOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(AllOf @this) => @this.Value1; - - /// - /// - /// - public AllOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static AllOf FromValue1(T1? value) => new AllOf(value); - - /// - /// - /// - public static implicit operator AllOf(T2 value) => new AllOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(AllOf @this) => @this.Value2; - - /// - /// - /// - public AllOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static AllOf FromValue2(T2? value) => new AllOf(value); - - /// - /// - /// - public AllOf( - T1? value1, - T2? value2 - ) - { - Value1 = value1; - Value2 = value2; - } - - /// - /// - /// - public object? Object => - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() - ; - - private static bool RequiresValue() - { - var type = typeof(TValue); - if (global::System.Nullable.GetUnderlyingType(type) != null) - { - return false; - } - - return type.IsValueType || - type == typeof(string) || - type.IsArray; - } - - - /// - /// - /// - public bool Validate() - { - return (!RequiresValue() || IsValue1) && (!RequiresValue() || IsValue2); - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1 && value1 != null) - { - return value1(Value1!); - } - else if (IsValue2 && value2 != null) - { - return value2(Value2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(AllOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) - ; - } - - /// - /// - /// - public static bool operator ==(AllOf obj1, AllOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(AllOf obj1, AllOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is AllOf o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs similarity index 81% rename from src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs rename to src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs index 77c4733..b9ea194 100644 --- a/src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs @@ -3,10 +3,10 @@ namespace Dust { - public partial class PrivateAnalyticsClient + public partial class AnalyticsClient { - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAnalyticsConsumptionFacetsServers = new global::Dust.AutoSDKServer[] + private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAnalyticsConsumptionExportServers = new global::Dust.AutoSDKServer[] { new global::Dust.AutoSDKServer( id: "https-dust-tt", name: "Dust.tt API (us-central1)", @@ -20,7 +20,7 @@ public partial class PrivateAnalyticsClient }; - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAnalyticsConsumptionFacetsSecurityRequirement0 = + private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAnalyticsConsumptionExportSecurityRequirement0 = new global::Dust.EndPointSecurityRequirement { Authorizations = new global::Dust.EndPointAuthorizationRequirement[] @@ -34,45 +34,50 @@ public partial class PrivateAnalyticsClient }, }, }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAnalyticsConsumptionFacetsSecurityRequirements = + private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAnalyticsConsumptionExportSecurityRequirements = new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAnalyticsConsumptionFacetsSecurityRequirement0, + { s_CreateWByWIdAnalyticsConsumptionExportSecurityRequirement0, }; - partial void PrepareCreateWByWIdAnalyticsConsumptionFacetsArguments( + partial void PrepareCreateWByWIdAnalyticsConsumptionExportArguments( global::System.Net.Http.HttpClient httpClient, ref string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request); - partial void PrepareCreateWByWIdAnalyticsConsumptionFacetsRequest( + global::Dust.CreateWAnalyticsConsumptionExportRequest request); + partial void PrepareCreateWByWIdAnalyticsConsumptionExportRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request); - partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponse( + global::Dust.CreateWAnalyticsConsumptionExportRequest request); + partial void ProcessCreateWByWIdAnalyticsConsumptionExportResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( + partial void ProcessCreateWByWIdAnalyticsConsumptionExportResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionFacetsAsync( + public async global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionExportAsync( string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request, + global::Dust.CreateWAnalyticsConsumptionExportRequest request, global::Dust.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateWByWIdAnalyticsConsumptionFacetsAsResponseAsync( + var __response = await CreateWByWIdAnalyticsConsumptionExportAsResponseAsync( wId: wId, request: request, @@ -83,18 +88,23 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( return __response.Body; } /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. ///
/// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAnalyticsConsumptionFacetsAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateWByWIdAnalyticsConsumptionExportAsResponseAsync( string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request, + global::Dust.CreateWAnalyticsConsumptionExportRequest request, global::Dust.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -102,7 +112,7 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateWByWIdAnalyticsConsumptionFacetsArguments( + PrepareCreateWByWIdAnalyticsConsumptionExportArguments( httpClient: HttpClient, wId: ref wId, request: request); @@ -110,8 +120,8 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAnalyticsConsumptionFacetsSecurityRequirements, - operationName: "CreateWByWIdAnalyticsConsumptionFacetsAsync"); + securityRequirements: s_CreateWByWIdAnalyticsConsumptionExportSecurityRequirements, + operationName: "CreateWByWIdAnalyticsConsumptionExportAsync"); using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -131,9 +141,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( { var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/analytics/consumption/facets", + path: $"/api/v1/w/{wId}/analytics/consumption/export", baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAnalyticsConsumptionFacetsServers, + servers: s_CreateWByWIdAnalyticsConsumptionExportServers, defaultBaseUrl: "https://dust.tt/")); var __path = __pathBuilder.ToString(); __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -148,6 +158,10 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "text/csv"); + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || @@ -178,7 +192,7 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateWByWIdAnalyticsConsumptionFacetsRequest( + PrepareCreateWByWIdAnalyticsConsumptionExportRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, wId: wId!, @@ -199,9 +213,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAnalyticsConsumptionFacets", - methodName: "CreateWByWIdAnalyticsConsumptionFacetsAsync", - pathTemplate: "$\"/api/w/{wId}/analytics/consumption/facets\"", + operationId: "createWByWIdAnalyticsConsumptionExport", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -233,9 +247,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAnalyticsConsumptionFacets", - methodName: "CreateWByWIdAnalyticsConsumptionFacetsAsync", - pathTemplate: "$\"/api/w/{wId}/analytics/consumption/facets\"", + operationId: "createWByWIdAnalyticsConsumptionExport", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -274,9 +288,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAnalyticsConsumptionFacets", - methodName: "CreateWByWIdAnalyticsConsumptionFacetsAsync", - pathTemplate: "$\"/api/w/{wId}/analytics/consumption/facets\"", + operationId: "createWByWIdAnalyticsConsumptionExport", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -314,7 +328,7 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateWByWIdAnalyticsConsumptionFacetsResponse( + ProcessCreateWByWIdAnalyticsConsumptionExportResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -322,9 +336,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAnalyticsConsumptionFacets", - methodName: "CreateWByWIdAnalyticsConsumptionFacetsAsync", - pathTemplate: "$\"/api/w/{wId}/analytics/consumption/facets\"", + operationId: "createWByWIdAnalyticsConsumptionExport", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -344,9 +358,9 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAnalyticsConsumptionFacets", - methodName: "CreateWByWIdAnalyticsConsumptionFacetsAsync", - pathTemplate: "$\"/api/w/{wId}/analytics/consumption/facets\"", + operationId: "createWByWIdAnalyticsConsumptionExport", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -470,7 +484,7 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( + ProcessCreateWByWIdAnalyticsConsumptionExportResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -479,13 +493,11 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Dust.CreateWAnalyticsConsumptionFacetsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( + return new global::Dust.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __value); + body: __content); } catch (global::System.Exception __ex) { @@ -505,19 +517,17 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( + var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - var __value = await global::Dust.CreateWAnalyticsConsumptionFacetsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( + return new global::Dust.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __value); + body: __content); } catch (global::System.Exception __ex) { @@ -554,49 +564,51 @@ partial void ProcessCreateWByWIdAnalyticsConsumptionFacetsResponseContent( } } /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. ///
/// - /// - /// Default Value: cycle - /// - /// - /// Default Value: 30 + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z /// - /// - /// Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs.
- /// Default Value: all + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z /// - /// - /// Dimensions to compute facets for. Defaults to every dimension. Omitted dimensions come back as empty arrays. The personal route omits user and group dimensions, and the agent route omits the agent dimension. + /// + /// Output format (defaults to csv) /// /// - /// Map of consumption dimensions to selected values. + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionFacetsAsync( + public async global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionExportAsync( string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? period = default, - int? days = default, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? scope = default, - global::System.Collections.Generic.IList? dimensions = default, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? filter = default, + global::System.DateTime startDate, + global::System.DateTime endDate, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? format = default, + global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? filter = default, global::Dust.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Dust.CreateWAnalyticsConsumptionFacetsRequest + var __request = new global::Dust.CreateWAnalyticsConsumptionExportRequest { - Period = period, - Days = days, - Scope = scope, - Dimensions = dimensions, + StartDate = startDate, + EndDate = endDate, + Format = format, Filter = filter, }; - return await CreateWByWIdAnalyticsConsumptionFacetsAsync( + return await CreateWByWIdAnalyticsConsumptionExportAsync( wId: wId, request: __request, requestOptions: requestOptions, diff --git a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs similarity index 66% rename from src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs rename to src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs index 104a0f8..68d34d8 100644 --- a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs @@ -3,10 +3,10 @@ namespace Dust { - public partial class PrivateEventsClient + public partial class AnalyticsClient { - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsServers = new global::Dust.AutoSDKServer[] + private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAnalyticsConsumptionExportAsStreamServers = new global::Dust.AutoSDKServer[] { new global::Dust.AutoSDKServer( id: "https-dust-tt", name: "Dust.tt API (us-central1)", @@ -20,7 +20,7 @@ public partial class PrivateEventsClient }; - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsSecurityRequirement0 = + private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAnalyticsConsumptionExportAsStreamSecurityRequirement0 = new global::Dust.EndPointSecurityRequirement { Authorizations = new global::Dust.EndPointAuthorizationRequirement[] @@ -34,55 +34,58 @@ public partial class PrivateEventsClient }, }, }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsSecurityRequirements = + private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAnalyticsConsumptionExportAsStreamSecurityRequirements = new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsSecurityRequirement0, + { s_CreateWByWIdAnalyticsConsumptionExportAsStreamSecurityRequirement0, }; - partial void PrepareGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsArguments( + partial void PrepareCreateWByWIdAnalyticsConsumptionExportAsStreamArguments( global::System.Net.Http.HttpClient httpClient, ref string wId, - ref string functionId, - ref string invocationId); - partial void PrepareGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsRequest( + global::Dust.CreateWAnalyticsConsumptionExportRequest request); + partial void PrepareCreateWByWIdAnalyticsConsumptionExportAsStreamRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string wId, - string functionId, - string invocationId); - partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsResponse( + global::Dust.CreateWAnalyticsConsumptionExportRequest request); + partial void ProcessCreateWByWIdAnalyticsConsumptionExportAsStreamResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Stream sandbox function invocation events
- /// Stream real-time events for a Pod function invocation using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing. + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. ///
/// - /// - /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Collections.Generic.IAsyncEnumerable GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync( + public async global::System.Collections.Generic.IAsyncEnumerable CreateWByWIdAnalyticsConsumptionExportAsStreamAsync( string wId, - string functionId, - string invocationId, + + global::Dust.CreateWAnalyticsConsumptionExportRequest request, global::Dust.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: HttpClient); - PrepareGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsArguments( + PrepareCreateWByWIdAnalyticsConsumptionExportAsStreamArguments( httpClient: HttpClient, wId: ref wId, - functionId: ref functionId, - invocationId: ref invocationId); + request: request); var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsSecurityRequirements, - operationName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync"); + securityRequirements: s_CreateWByWIdAnalyticsConsumptionExportAsStreamSecurityRequirements, + operationName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync"); using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -102,9 +105,9 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation { var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events", + path: $"/api/v1/w/{wId}/analytics/consumption/export", baseUri: ResolveBaseUri( - servers: s_GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsServers, + servers: s_CreateWByWIdAnalyticsConsumptionExportAsStreamServers, defaultBaseUrl: "https://dust.tt/")); var __path = __pathBuilder.ToString(); __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -112,13 +115,17 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation clientParameters: Options.QueryParameters, requestParameters: requestOptions?.QueryParameters); var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, + method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); #if NET6_0_OR_GREATER __httpRequest.Version = global::System.Net.HttpVersion.Version11; __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/x-ndjson"); + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || @@ -135,6 +142,12 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers, @@ -143,12 +156,11 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsRequest( + PrepareCreateWByWIdAnalyticsConsumptionExportAsStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, wId: wId!, - functionId: functionId!, - invocationId: invocationId!); + request: request); return __httpRequest; } @@ -165,10 +177,10 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents", - methodName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events\"", - httpMethod: "GET", + operationId: "createWByWIdAnalyticsConsumptionExportAsStream", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -199,10 +211,10 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents", - methodName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events\"", - httpMethod: "GET", + operationId: "createWByWIdAnalyticsConsumptionExportAsStream", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -240,10 +252,10 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents", - methodName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events\"", - httpMethod: "GET", + operationId: "createWByWIdAnalyticsConsumptionExportAsStream", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -280,7 +292,7 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation ProcessResponse( client: HttpClient, response: __response); - ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsResponse( + ProcessCreateWByWIdAnalyticsConsumptionExportAsStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -288,10 +300,10 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents", - methodName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events\"", - httpMethod: "GET", + operationId: "createWByWIdAnalyticsConsumptionExportAsStream", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -310,10 +322,10 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents", - methodName: "GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events\"", - httpMethod: "GET", + operationId: "createWByWIdAnalyticsConsumptionExportAsStream", + methodName: "CreateWByWIdAnalyticsConsumptionExportAsStreamAsync", + pathTemplate: "$\"/api/v1/w/{wId}/analytics/consumption/export\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -364,16 +376,17 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation #endif ).ConfigureAwait(false); - await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser - .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) + using var __reader = new global::System.IO.StreamReader(__stream); + + while (!__reader.EndOfStream && !__effectiveCancellationToken.IsCancellationRequested) { - var __content = __sseEvent.Data; - if (__content == "[DONE]") + var __content = await __reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty; + if (global::System.String.IsNullOrWhiteSpace(__content)) { - yield break; + continue; } - var __streamedResponse = global::Dust.PrivateSandboxFunctionInvocationEvent.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(string), JsonSerializerContext) ?? throw global::Dust.ApiException.Create( statusCode: __response.StatusCode, message: $"Response deserialization failed for \"{__content}\" ", @@ -394,5 +407,61 @@ partial void ProcessGetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocation __httpRequest?.Dispose(); } } + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z + /// + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z + /// + /// + /// Output format (defaults to csv) + /// + /// + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable CreateWByWIdAnalyticsConsumptionExportAsStreamAsync( + string wId, + global::System.DateTime startDate, + global::System.DateTime endDate, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? format = default, + global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? filter = default, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Dust.CreateWAnalyticsConsumptionExportRequest + { + StartDate = startDate, + EndDate = endDate, + Format = format, + Filter = filter, + }; + + var __enumerable = CreateWByWIdAnalyticsConsumptionExportAsStreamAsync( + wId: wId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + + await foreach (var __response in __enumerable) + { + yield return __response; + } + } } } \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.AnalyticsClient.g.cs b/src/libs/Dust/Generated/Dust.AnalyticsClient.g.cs index 7161ef5..ec749ce 100644 --- a/src/libs/Dust/Generated/Dust.AnalyticsClient.g.cs +++ b/src/libs/Dust/Generated/Dust.AnalyticsClient.g.cs @@ -4,6 +4,7 @@ namespace Dust { /// + /// Workspace analytics
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
diff --git a/src/libs/Dust/Generated/Dust.DustClient.g.cs b/src/libs/Dust/Generated/Dust.DustClient.g.cs index 291e4ce..dd6c2c5 100644 --- a/src/libs/Dust/Generated/Dust.DustClient.g.cs +++ b/src/libs/Dust/Generated/Dust.DustClient.g.cs @@ -61,7 +61,7 @@ public sealed partial class DustClient : global::Dust.IDustClient, global::Syste }; /// - /// + /// Workspace analytics. /// public AnalyticsClient Analytics => new AnalyticsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { @@ -140,136 +140,6 @@ public sealed partial class DustClient : global::Dust.IDustClient, global::Syste AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// Private API - Agent configurations. - /// - public PrivateAgentsClient PrivateAgents => new PrivateAgentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public PrivateAnalyticsClient PrivateAnalytics => new PrivateAnalyticsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public PrivateAssistantClient PrivateAssistant => new PrivateAssistantClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Authentication (WorkOS). - /// - public PrivateAuthenticationClient PrivateAuthentication => new PrivateAuthenticationClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Conversations. - /// - public PrivateConversationsClient PrivateConversations => new PrivateConversationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - SSE event streams. - /// - public PrivateEventsClient PrivateEvents => new PrivateEventsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Extension configuration. - /// - public PrivateExtensionClient PrivateExtension => new PrivateExtensionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - File uploads. - /// - public PrivateFilesClient PrivateFiles => new PrivateFilesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Mention suggestions. - /// - public PrivateMentionsClient PrivateMentions => new PrivateMentionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Messages. - /// - public PrivateMessagesClient PrivateMessages => new PrivateMessagesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Spaces and data source views. - /// - public PrivateSpacesClient PrivateSpaces => new PrivateSpacesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - User. - /// - public PrivateUserClient PrivateUser => new PrivateUserClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// Private API - Workspace settings. - /// - public PrivateWorkspaceClient PrivateWorkspace => new PrivateWorkspaceClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// Search. /// diff --git a/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs b/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs new file mode 100644 index 0000000..678b9b2 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExport.g.cs @@ -0,0 +1,84 @@ +#nullable enable + +namespace Dust +{ + public partial interface IAnalyticsClient + { + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionExportAsync( + string wId, + + global::Dust.CreateWAnalyticsConsumptionExportRequest request, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateWByWIdAnalyticsConsumptionExportAsResponseAsync( + string wId, + + global::Dust.CreateWAnalyticsConsumptionExportRequest request, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z + /// + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z + /// + /// + /// Output format (defaults to csv) + /// + /// + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionExportAsync( + string wId, + global::System.DateTime startDate, + global::System.DateTime endDate, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? format = default, + global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? filter = default, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs b/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs new file mode 100644 index 0000000..d32e9f5 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.IAnalyticsClient.CreateWByWIdAnalyticsConsumptionExportAsStream.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace Dust +{ + public partial interface IAnalyticsClient + { + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateWByWIdAnalyticsConsumptionExportAsStreamAsync( + string wId, + + global::Dust.CreateWAnalyticsConsumptionExportRequest request, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Export consumption analytics
+ /// Export per-call consumption analytics for the workspace identified by {wId}.
+ /// Each row represents one unit of billed credit consumption (an LLM call or a tool call).
+ /// The export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).
+ /// The export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range
+ /// or apply filters to reduce the number of rows if you encounter a timeout.
+ /// Results are streamed, if an error occurs, an error message is appended and the stream is closed. + ///
+ /// + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z + /// + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z + /// + /// + /// Output format (defaults to csv) + /// + /// + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateWByWIdAnalyticsConsumptionExportAsStreamAsync( + string wId, + global::System.DateTime startDate, + global::System.DateTime endDate, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? format = default, + global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? filter = default, + global::Dust.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IAnalyticsClient.g.cs b/src/libs/Dust/Generated/Dust.IAnalyticsClient.g.cs index c8116ed..d098d8f 100644 --- a/src/libs/Dust/Generated/Dust.IAnalyticsClient.g.cs +++ b/src/libs/Dust/Generated/Dust.IAnalyticsClient.g.cs @@ -4,6 +4,7 @@ namespace Dust { /// + /// Workspace analytics
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
diff --git a/src/libs/Dust/Generated/Dust.IDustClient.g.cs b/src/libs/Dust/Generated/Dust.IDustClient.g.cs index 5f5e038..cf8cf31 100644 --- a/src/libs/Dust/Generated/Dust.IDustClient.g.cs +++ b/src/libs/Dust/Generated/Dust.IDustClient.g.cs @@ -72,7 +72,7 @@ public partial interface IDustClient : global::System.IDisposable public AgentsClient Agents { get; } /// - /// + /// Workspace analytics. /// public AnalyticsClient Analytics { get; } @@ -111,71 +111,6 @@ public partial interface IDustClient : global::System.IDisposable /// public MentionsClient Mentions { get; } - /// - /// Private API - Agent configurations. - /// - public PrivateAgentsClient PrivateAgents { get; } - - /// - /// - /// - public PrivateAnalyticsClient PrivateAnalytics { get; } - - /// - /// - /// - public PrivateAssistantClient PrivateAssistant { get; } - - /// - /// Private API - Authentication (WorkOS). - /// - public PrivateAuthenticationClient PrivateAuthentication { get; } - - /// - /// Private API - Conversations. - /// - public PrivateConversationsClient PrivateConversations { get; } - - /// - /// Private API - SSE event streams. - /// - public PrivateEventsClient PrivateEvents { get; } - - /// - /// Private API - Extension configuration. - /// - public PrivateExtensionClient PrivateExtension { get; } - - /// - /// Private API - File uploads. - /// - public PrivateFilesClient PrivateFiles { get; } - - /// - /// Private API - Mention suggestions. - /// - public PrivateMentionsClient PrivateMentions { get; } - - /// - /// Private API - Messages. - /// - public PrivateMessagesClient PrivateMessages { get; } - - /// - /// Private API - Spaces and data source views. - /// - public PrivateSpacesClient PrivateSpaces { get; } - - /// - /// Private API - User. - /// - public PrivateUserClient PrivateUser { get; } - - /// - /// Private API - Workspace settings. - /// - public PrivateWorkspaceClient PrivateWorkspace { get; } - /// /// Search. /// diff --git a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs deleted file mode 100644 index 36866f0..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAgentsClient - { - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantAgentConfigurationsAsync( - string wId, - - global::Dust.CreateWAssistantAgentConfigurationsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantAgentConfigurationsAsResponseAsync( - string wId, - - global::Dust.CreateWAssistantAgentConfigurationsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Agent configuration to create - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantAgentConfigurationsAsync( - string wId, - object assistant, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs deleted file mode 100644 index f59bfcf..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAgentsClient - { - /// - /// List agent configurations
- /// Returns all agent configurations in the workspace. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantAgentConfigurationsAsync( - string wId, - global::Dust.GetWAssistantAgentConfigurationsView2? view = default, - int? limit = default, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage = default, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors = default, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks = default, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors = default, - string? sort = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List agent configurations
- /// Returns all agent configurations in the workspace. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantAgentConfigurationsAsResponseAsync( - string wId, - global::Dust.GetWAssistantAgentConfigurationsView2? view = default, - int? limit = default, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage = default, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors = default, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks = default, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors = default, - string? sort = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.g.cs deleted file mode 100644 index ddc8f30..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAgentsClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Agent configurations
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateAgentsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs deleted file mode 100644 index 7f6c282..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.CreateWByWIdAnalyticsConsumptionFacets.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAnalyticsClient - { - /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionFacetsAsync( - string wId, - - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAnalyticsConsumptionFacetsAsResponseAsync( - string wId, - - global::Dust.CreateWAnalyticsConsumptionFacetsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List consumption analytics facets
- /// Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension. - ///
- /// - /// - /// Default Value: cycle - /// - /// - /// Default Value: 30 - /// - /// - /// Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs.
- /// Default Value: all - /// - /// - /// Dimensions to compute facets for. Defaults to every dimension. Omitted dimensions come back as empty arrays. The personal route omits user and group dimensions, and the agent route omits the agent dimension. - /// - /// - /// Map of consumption dimensions to selected values. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAnalyticsConsumptionFacetsAsync( - string wId, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? period = default, - int? days = default, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? scope = default, - global::System.Collections.Generic.IList? dimensions = default, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? filter = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.g.cs deleted file mode 100644 index ac26f93..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAnalyticsClient.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateAnalyticsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs deleted file mode 100644 index 4b4e638..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAssistantClient - { - /// - /// Resolve a conversation go template draft
- /// Fetches a Contentful conversation go template by slug and returns a composer-ready draft with optional pre-uploaded attachments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantGoTemplateAsync( - string wId, - string slug, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Resolve a conversation go template draft
- /// Fetches a Contentful conversation go template by slug and returns a composer-ready draft with optional pre-uploaded attachments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantGoTemplateAsResponseAsync( - string wId, - string slug, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.g.cs deleted file mode 100644 index 23707f4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAssistantClient.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateAssistantClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs deleted file mode 100644 index 48ac3b4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAuthenticationClient - { - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWorkosAuthenticateAsync( - - global::Dust.CreateWorkosAuthenticateRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWorkosAuthenticateAsResponseAsync( - - global::Dust.CreateWorkosAuthenticateRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWorkosAuthenticateAsync( - string? code = default, - global::Dust.CreateWorkosAuthenticateRequestGrantType? grantType = default, - string? refreshToken = default, - string? codeVerifier = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs deleted file mode 100644 index 7cd4637..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAuthenticationClient - { - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWorkosRevokeSessionAsync( - - global::Dust.CreateWorkosRevokeSessionRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWorkosRevokeSessionAsResponseAsync( - - global::Dust.CreateWorkosRevokeSessionRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWorkosRevokeSessionAsync( - string sessionId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.GetWorkosLogin.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.GetWorkosLogin.g.cs deleted file mode 100644 index 557be0d..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.GetWorkosLogin.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateAuthenticationClient - { - /// - /// Initiate WorkOS login
- /// Redirects to WorkOS AuthKit for authentication. Supports PKCE flow for extensions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWorkosLoginAsync( - string? redirectUri = default, - string? codeChallenge = default, - string? codeChallengeMethod = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Initiate WorkOS login
- /// Redirects to WorkOS AuthKit for authentication. Supports PKCE flow for extensions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWorkosLoginAsResponseAsync( - string? redirectUri = default, - string? codeChallenge = default, - string? codeChallengeMethod = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.g.cs deleted file mode 100644 index 04cba93..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateAuthenticationClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Authentication (WorkOS)
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateAuthenticationClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs deleted file mode 100644 index cf9dad5..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs +++ /dev/null @@ -1,66 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsAsync( - string wId, - - global::Dust.CreateWAssistantConversationsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsAsResponseAsync( - string wId, - - global::Dust.CreateWAssistantConversationsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsAsync( - string wId, - string? title = default, - global::Dust.CreateWAssistantConversationsRequestVisibility? visibility = default, - string? spaceId = default, - global::Dust.CreateWAssistantConversationsRequestMessage? message = default, - global::System.Collections.Generic.IList? contentFragments = default, - global::Dust.CreateWAssistantConversationsRequestMetadata? metadata = default, - global::System.Collections.Generic.IList? selectedSpaceIds = default, - bool? skipToolsValidation = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs deleted file mode 100644 index 6d6b221..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCancelAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCancelRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdCancelAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCancelRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCancelAsync( - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCancelRequestAction action, - global::System.Collections.Generic.IList messageIds, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs deleted file mode 100644 index 6c608c2..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCompactionsAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCompactionsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdCompactionsAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCompactionsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCompactionsAsync( - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCompactionsRequestModel model, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs deleted file mode 100644 index 8aa4eba..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs +++ /dev/null @@ -1,70 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdContentFragmentAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsContentFragmentRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdContentFragmentAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsContentFragmentRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// - /// - /// MIME type of the content - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdContentFragmentAsync( - string wId, - string cId, - string title, - string content, - string contentType, - global::Dust.CreateWAssistantConversationsContentFragmentRequestContext context, - string? url = default, - string? fileId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs deleted file mode 100644 index ca39aa7..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Add a participant to a conversation
- /// Adds the authenticated user as a participant to a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdParticipantsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Add a participant to a conversation
- /// Adds the authenticated user as a participant to a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs deleted file mode 100644 index 2bcf377..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync( - string wId, - string cId, - global::System.Collections.Generic.IList spaceIds, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode mode = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index 83555bc..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Delete or leave a conversation
- /// Delete a conversation or leave it if it is shared. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete or leave a conversation
- /// Delete a conversation or leave it if it is shared. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs deleted file mode 100644 index 7e46251..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Cancel a wake-up
- /// Cancel a scheduled wake-up. Only the wake-up owner or a workspace admin can cancel. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync( - string wId, - string cId, - string wuId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Cancel a wake-up
- /// Cancel a scheduled wake-up. Only the wake-up owner or a workspace admin can cancel. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsResponseAsync( - string wId, - string cId, - string wuId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index 162cd9c..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - - global::Dust.OneOf request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> EditWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - - global::Dust.OneOf request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversations.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversations.g.cs deleted file mode 100644 index b56aca7..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversations.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// List conversations
- /// Retrieve a paginated list of conversations for the authenticated user in the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List conversations
- /// Retrieve a paginated list of conversations for the authenticated user in the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index 96ee878..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Get a conversation
- /// Retrieve a specific conversation by its ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a conversation
- /// Retrieve a specific conversation by its ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs deleted file mode 100644 index 8fc78bf..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Get a conversation credit attribution
- /// Returns the latest stable credits billed for completed messages belonging directly to a conversation, plus an additive attribution reconciled exclusively through model input rows. In-progress messages are included after they reach a terminal state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdConsumptionAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a conversation credit attribution
- /// Returns the latest stable credits billed for completed messages belonging directly to a conversation, plus an additive attribution reconciled exclusively through model input rows. In-progress messages are included after they reach a terminal state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdConsumptionAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs deleted file mode 100644 index 323f82f..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Get conversation feedbacks
- /// Retrieve all feedbacks for a conversation submitted by the authenticated user. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdFeedbacksAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get conversation feedbacks
- /// Retrieve all feedbacks for a conversation submitted by the authenticated user. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdFeedbacksAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs deleted file mode 100644 index 814b2e7..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// Get conversation participants
- /// Returns the participants of a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdParticipantsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get conversation participants
- /// Returns the participants of a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs deleted file mode 100644 index 315c308..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// List selectable Spaces
- /// Lists regular Spaces the user can select for a conversation, with current selection state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List selectable Spaces
- /// Lists regular Spaces the user can select for a conversation, with current selection state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdSelectableSpacesAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs deleted file mode 100644 index e6c9ed7..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateConversationsClient - { - /// - /// List wake-ups for a conversation
- /// Retrieve all wake-ups scheduled in a conversation (any status). - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdWakeupsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List wake-ups for a conversation
- /// Retrieve all wake-ups scheduled in a conversation (any status). - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdWakeupsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.g.cs deleted file mode 100644 index 16961b4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateConversationsClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Conversations
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateConversationsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs b/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs deleted file mode 100644 index 2102e54..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs +++ /dev/null @@ -1,22 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateEventsClient - { - /// - /// Stream conversation events
- /// Stream real-time conversation events using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Collections.Generic.IAsyncEnumerable GetWByWIdAssistantConversationsByCIdEventsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs b/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs deleted file mode 100644 index 4d935b4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs +++ /dev/null @@ -1,24 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateEventsClient - { - /// - /// Stream message events
- /// Stream real-time events for a specific agent message using Server-Sent Events (SSE). Only available for agent messages. This endpoint is redirected to /api/sse/ for SSE traffic routing. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Collections.Generic.IAsyncEnumerable GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs b/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs deleted file mode 100644 index 133f2a1..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEvents.g.cs +++ /dev/null @@ -1,24 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateEventsClient - { - /// - /// Stream sandbox function invocation events
- /// Stream real-time events for a Pod function invocation using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Collections.Generic.IAsyncEnumerable GetWByWIdSandboxFunctionsByFunctionIdInvocationsByInvocationIdEventsAsync( - string wId, - string functionId, - string invocationId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateEventsClient.g.cs deleted file mode 100644 index 76e7e15..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateEventsClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - SSE event streams
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateEventsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.GetWByWIdExtensionConfig.g.cs b/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.GetWByWIdExtensionConfig.g.cs deleted file mode 100644 index 50b10f3..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.GetWByWIdExtensionConfig.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateExtensionClient - { - /// - /// Get extension configuration
- /// Returns the extension configuration for the workspace, including blacklisted domains. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdExtensionConfigAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get extension configuration
- /// Returns the extension configuration for the workspace, including blacklisted domains. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdExtensionConfigAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.g.cs deleted file mode 100644 index 2809152..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateExtensionClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Extension configuration
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateExtensionClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFiles.g.cs b/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFiles.g.cs deleted file mode 100644 index 7ae68c0..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFiles.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateFilesClient - { - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdFilesAsync( - string wId, - - global::Dust.CreateWFilesRequest3 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdFilesAsResponseAsync( - string wId, - - global::Dust.CreateWFilesRequest3 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdFilesAsync( - string wId, - string contentType, - string fileName, - double fileSize, - global::Dust.CreateWFilesRequestUseCase useCase, - object? useCaseMetadata = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFilesByFileId.g.cs deleted file mode 100644 index bad850d..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.CreateWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateFilesClient - { - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdFilesByFileIdAsync( - string wId, - string fileId, - - global::Dust.CreateWFilesRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - - global::Dust.CreateWFilesRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdFilesByFileIdAsync( - string wId, - string fileId, - byte[]? file = default, - string? filename = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs deleted file mode 100644 index d8ef355..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateFilesClient - { - /// - /// Delete a file
- /// Delete a file from the workspace. Files referenced by a skill or its version history cannot be deleted. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdFilesByFileIdAsync( - string wId, - string fileId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete a file
- /// Delete a file from the workspace. Files referenced by a skill or its version history cannot be deleted. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.GetWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateFilesClient.GetWByWIdFilesByFileId.g.cs deleted file mode 100644 index ee075db..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.GetWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateFilesClient - { - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdFilesByFileIdAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdFilesByFileIdAsStreamAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateFilesClient.g.cs deleted file mode 100644 index c89d804..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateFilesClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - File uploads
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateFilesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs deleted file mode 100644 index eef7686..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMentionsClient - { - /// - /// Get mention suggestions
- /// Returns mention suggestions for the workspace. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantMentionsSuggestionsAsync( - string wId, - string? query = default, - global::Dust.GetWAssistantMentionsSuggestionsSelect? select = default, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? current = default, - string? spaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get mention suggestions
- /// Returns mention suggestions for the workspace. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantMentionsSuggestionsAsResponseAsync( - string wId, - string? query = default, - global::Dust.GetWAssistantMentionsSuggestionsSelect? select = default, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? current = default, - string? spaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.g.cs deleted file mode 100644 index f150d72..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMentionsClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Mention suggestions
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateMentionsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs deleted file mode 100644 index 907fff0..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsMessagesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsMessagesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// - /// - /// - /// - /// Optional per-message model override from the input-bar model picker (an explicit model pick). - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - string content, - global::System.Collections.Generic.IList mentions, - global::Dust.CreateWAssistantConversationsMessagesRequestContext context, - bool? skipToolsValidation = default, - global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? modelSelection = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs deleted file mode 100644 index aa881d1..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs +++ /dev/null @@ -1,66 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsResponseAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync( - string wId, - string cId, - string mId, - string content, - global::System.Collections.Generic.IList mentions, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs deleted file mode 100644 index b6b1cfa..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 thumbDirection, - string? feedbackContent = default, - bool? isConversationShared = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs deleted file mode 100644 index 7b8867f..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Retry an agent message
- /// Retry generating an agent message response, optionally retrying only blocked actions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Retry an agent message
- /// Retry generating an agent message response, optionally retrying only blocked actions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs deleted file mode 100644 index 6ad50c8..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Delete a message
- /// Soft-delete a user or agent message from a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete a message
- /// Soft-delete a user or agent message from a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs deleted file mode 100644 index 77e2572..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Delete message feedback
- /// Remove the authenticated user's feedback for a specific agent message. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete message feedback
- /// Remove the authenticated user's feedback for a specific agent message. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs deleted file mode 100644 index 369a124..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// List messages in a conversation
- /// Retrieve a paginated list of messages for a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List messages in a conversation
- /// Retrieve a paginated list of messages for a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs deleted file mode 100644 index eb4ff80..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Get a message
- /// Retrieve a specific message by its ID within a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a message
- /// Retrieve a specific message by its ID within a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs deleted file mode 100644 index 802b4b4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Get a single action
- /// Retrieve a single action by its ID within an agent message, along with the message status. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync( - string wId, - string cId, - string mId, - string aId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a single action
- /// Retrieve a single action by its ID within an agent message, along with the message status. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsResponseAsync( - string wId, - string cId, - string mId, - string aId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs deleted file mode 100644 index 5ea7c8f..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateMessagesClient - { - /// - /// Get an agent message credit attribution
- /// Returns direct and total billed credits. Run-agent tool rows combine invocation cost with the bill of their sub-agent subtree. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get an agent message credit attribution
- /// Returns direct and total billed credits. Run-agent tool rows combine invocation cost with the bill of their sub-agent subtree. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.g.cs deleted file mode 100644 index 2c3467d..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateMessagesClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Messages
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateMessagesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpaces.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpaces.g.cs deleted file mode 100644 index 78e9af4..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpaces.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdSpacesAsync( - string wId, - - global::Dust.CreateWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdSpacesAsResponseAsync( - string wId, - - global::Dust.CreateWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// - /// - /// - /// The space's manual member list. Omitted or empty means the space starts with no manual member. - /// - /// - /// The groups given access to the space. Omitted or empty means no group has access to it. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdSpacesAsync( - string wId, - bool isRestricted, - string name, - global::Dust.CreateWSpacesRequestSpaceKind spaceKind, - global::System.Collections.Generic.IList? memberIds = default, - global::System.Collections.Generic.IList? groupIds = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs deleted file mode 100644 index f5b8363..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - - global::Dust.CreateWSpacesDataSourceViewsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - string wId, - string spaceId, - - global::Dust.CreateWSpacesDataSourceViewsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - string dataSourceId, - global::System.Collections.Generic.IList? parentsIn = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index 8bd48d0..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Delete a space
- /// Deletes a specific space from the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - global::Dust.DeleteWSpacesForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete a space
- /// Deletes a specific space from the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> DeleteWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - global::Dust.DeleteWSpacesForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index c6d8de6..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Delete a data source view
- /// Deletes a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.DeleteWSpacesDataSourceViewsForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete a data source view
- /// Deletes a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.DeleteWSpacesDataSourceViewsForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index bdb2746..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - string? name = default, - global::System.Collections.Generic.IList? content = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index 481f418..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - - global::Dust.PatchWSpacesDataSourceViewsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - - global::Dust.PatchWSpacesDataSourceViewsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::System.Collections.Generic.IList? parentsIn = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs deleted file mode 100644 index 7f34b0b..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference preference, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpaces.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpaces.g.cs deleted file mode 100644 index b7a107b..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpaces.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// List spaces
- /// Returns all spaces in the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdSpacesAsync( - string wId, - string? role = default, - global::System.Collections.Generic.IList? kind = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List spaces
- /// Returns all spaces in the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdSpacesAsResponseAsync( - string wId, - string? role = default, - global::System.Collections.Generic.IList? kind = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index edb28c5..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Get a space
- /// Returns the details of a specific space including categories, members, and permissions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a space
- /// Returns the details of a specific space including categories, members, and permissions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs deleted file mode 100644 index d424cfd..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// List data source views
- /// Returns all data source views in a specific space. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesDataSourceViewsCategory? category = default, - global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails = default, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List data source views
- /// Returns all data source views in a specific space. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesDataSourceViewsCategory? category = default, - global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails = default, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index 46965e8..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Get a data source view
- /// Returns the details of a specific data source view. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get a data source view
- /// Returns the details of a specific data source view. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs deleted file mode 100644 index 22947d3..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateSpacesClient - { - /// - /// Get project notification preference
- /// Returns the current user's notification preference for a project space. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get project notification preference
- /// Returns the current user's notification preference for a project space. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - string wId, - string spaceId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.g.cs deleted file mode 100644 index 3d460d3..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateSpacesClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Spaces and data source views
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateSpacesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateUserClient.EditUser.g.cs b/src/libs/Dust/Generated/Dust.IPrivateUserClient.EditUser.g.cs deleted file mode 100644 index 85c36a5..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateUserClient.EditUser.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateUserClient - { - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditUserAsync( - - global::Dust.PatchUserRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> EditUserAsResponseAsync( - - global::Dust.PatchUserRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task EditUserAsync( - string firstName, - string lastName, - string? jobType = default, - string? imageUrl = default, - global::System.Collections.Generic.IList? favoritePlatforms = default, - string? emailProvider = default, - string? workspaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateUserClient.GetUser.g.cs b/src/libs/Dust/Generated/Dust.IPrivateUserClient.GetUser.g.cs deleted file mode 100644 index 599d0b6..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateUserClient.GetUser.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateUserClient - { - /// - /// Get current user
- /// Returns the authenticated user with their workspaces and subscriber hash. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetUserAsync( - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get current user
- /// Returns the authenticated user with their workspaces and subscriber hash. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetUserAsResponseAsync( - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateUserClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateUserClient.g.cs deleted file mode 100644 index 7f372aa..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateUserClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - User
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateUserClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs b/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs deleted file mode 100644 index c290ae8..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace Dust -{ - public partial interface IPrivateWorkspaceClient - { - /// - /// Get workspace feature flags
- /// Returns the list of enabled feature flags for the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetWByWIdFeatureFlagsAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get workspace feature flags
- /// Returns the list of enabled feature flags for the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> GetWByWIdFeatureFlagsAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.g.cs b/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.g.cs deleted file mode 100644 index d0fc425..0000000 --- a/src/libs/Dust/Generated/Dust.IPrivateWorkspaceClient.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Workspace settings
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IPrivateWorkspaceClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers { get; } - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer { get; set; } - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId); - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer(); - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.AllOf2.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.AllOf2.g.cs deleted file mode 100644 index 39bf6cb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.AllOf2.g.cs +++ /dev/null @@ -1,107 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public class AllOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::Dust.AllOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - - T1? value1 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - T2? value2 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - var __value = new global::Dust.AllOf( - value1, - - value2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.AllOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - writer.WriteStartObject(); - var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value1!, typeInfo); - if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element0.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value2!, typeInfo); - if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element1.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormat.g.cs similarity index 77% rename from src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs rename to src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormat.g.cs index c42fc89..a9109df 100644 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormat.g.cs @@ -3,10 +3,10 @@ namespace Dust.JsonConverters { /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateWAnalyticsConsumptionExportRequestFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod Read( + public override global::Dust.CreateWAnalyticsConsumptionExportRequestFormat Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriodExtensions.ToEnum(stringValue) ?? default; + return global::Dust.CreateWAnalyticsConsumptionExportRequestFormatExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod)numValue; + return (global::Dust.CreateWAnalyticsConsumptionExportRequestFormat)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod); + return default(global::Dust.CreateWAnalyticsConsumptionExportRequestFormat); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod value, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriodExtensions.ToValueString(value)); + writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionExportRequestFormatExtensions.ToValueString(value)); } } } diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatNullable.g.cs similarity index 78% rename from src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodNullable.g.cs rename to src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatNullable.g.cs index 235aeb2..81ea852 100644 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodNullable.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatNullable.g.cs @@ -3,10 +3,10 @@ namespace Dust.JsonConverters { /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateWAnalyticsConsumptionExportRequestFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? Read( + public override global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodNullableJsonCo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriodExtensions.ToEnum(stringValue); + return global::Dust.CreateWAnalyticsConsumptionExportRequestFormatExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodNullableJsonCo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod)numValue; + return (global::Dust.CreateWAnalyticsConsumptionExportRequestFormat)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod?); + return default(global::Dust.CreateWAnalyticsConsumptionExportRequestFormat?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateWAnalyticsConsumptionFacetsRequestPeriodNullableJsonCo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? value, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriodExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionExportRequestFormatExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs deleted file mode 100644 index d1c0694..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestDimensionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimensionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimensionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimensionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimensionNullable.g.cs deleted file mode 100644 index e3802d4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimensionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestDimensionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimensionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimensionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs deleted file mode 100644 index 5b2fa5c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestScopeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestScopeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScopeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeNullable.g.cs deleted file mode 100644 index fc59ae0..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAnalyticsConsumptionFacetsRequestScopeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAnalyticsConsumptionFacetsRequestScopeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScopeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestAction.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestAction.g.cs deleted file mode 100644 index 170b78a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestAction.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsCancelRequestActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsCancelRequestAction Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsCancelRequestActionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsCancelRequestAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsCancelRequestAction); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsCancelRequestAction value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsCancelRequestActionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionNullable.g.cs deleted file mode 100644 index 9f9ff52..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsCancelRequestActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsCancelRequestAction? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsCancelRequestActionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsCancelRequestAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsCancelRequestAction?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsCancelRequestAction? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsCancelRequestActionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs deleted file mode 100644 index 032f692..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Nullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Nullable.g.cs deleted file mode 100644 index 186c1b0..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibility.g.cs deleted file mode 100644 index e40ed99..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsRequestVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsRequestVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsRequestVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsRequestVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsRequestVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsRequestVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsRequestVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityNullable.g.cs deleted file mode 100644 index a1f13fb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsRequestVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsRequestVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsRequestVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsRequestVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsRequestVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsRequestVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsRequestVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs deleted file mode 100644 index 998438a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsSelectedSpacesRequestModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsSelectedSpacesRequestModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeNullable.g.cs deleted file mode 100644 index ad903a7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWAssistantConversationsSelectedSpacesRequestModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWAssistantConversationsSelectedSpacesRequestModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCase.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCase.g.cs deleted file mode 100644 index 1590e0e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCase.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWFilesRequestUseCaseJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWFilesRequestUseCase Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWFilesRequestUseCaseExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWFilesRequestUseCase)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWFilesRequestUseCase); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWFilesRequestUseCase value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWFilesRequestUseCaseExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCaseNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCaseNullable.g.cs deleted file mode 100644 index 4e90c12..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWFilesRequestUseCaseNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWFilesRequestUseCaseNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWFilesRequestUseCase? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWFilesRequestUseCaseExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWFilesRequestUseCase)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWFilesRequestUseCase?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWFilesRequestUseCase? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWFilesRequestUseCaseExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKind.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKind.g.cs deleted file mode 100644 index cde8c7e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKind.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWSpacesRequestSpaceKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWSpacesRequestSpaceKind Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWSpacesRequestSpaceKindExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWSpacesRequestSpaceKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWSpacesRequestSpaceKind); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWSpacesRequestSpaceKind value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWSpacesRequestSpaceKindExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKindNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKindNullable.g.cs deleted file mode 100644 index da66e14..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWSpacesRequestSpaceKindNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWSpacesRequestSpaceKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWSpacesRequestSpaceKind? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWSpacesRequestSpaceKindExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWSpacesRequestSpaceKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWSpacesRequestSpaceKind?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWSpacesRequestSpaceKind? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWSpacesRequestSpaceKindExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantType.g.cs deleted file mode 100644 index 684436f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWorkosAuthenticateRequestGrantTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWorkosAuthenticateRequestGrantType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWorkosAuthenticateRequestGrantTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWorkosAuthenticateRequestGrantType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWorkosAuthenticateRequestGrantType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWorkosAuthenticateRequestGrantType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.CreateWorkosAuthenticateRequestGrantTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeNullable.g.cs deleted file mode 100644 index 63f565d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class CreateWorkosAuthenticateRequestGrantTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.CreateWorkosAuthenticateRequestGrantType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.CreateWorkosAuthenticateRequestGrantTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.CreateWorkosAuthenticateRequestGrantType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.CreateWorkosAuthenticateRequestGrantType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.CreateWorkosAuthenticateRequestGrantType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.CreateWorkosAuthenticateRequestGrantTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForce.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForce.g.cs deleted file mode 100644 index c108161..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForce.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class DeleteWSpacesDataSourceViewsForceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.DeleteWSpacesDataSourceViewsForce Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.DeleteWSpacesDataSourceViewsForceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.DeleteWSpacesDataSourceViewsForce)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.DeleteWSpacesDataSourceViewsForce); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.DeleteWSpacesDataSourceViewsForce value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.DeleteWSpacesDataSourceViewsForceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForceNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForceNullable.g.cs deleted file mode 100644 index c378b23..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesDataSourceViewsForceNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class DeleteWSpacesDataSourceViewsForceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.DeleteWSpacesDataSourceViewsForce? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.DeleteWSpacesDataSourceViewsForceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.DeleteWSpacesDataSourceViewsForce)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.DeleteWSpacesDataSourceViewsForce?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.DeleteWSpacesDataSourceViewsForce? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.DeleteWSpacesDataSourceViewsForceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForce.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForce.g.cs deleted file mode 100644 index 737529f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForce.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class DeleteWSpacesForceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.DeleteWSpacesForce Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.DeleteWSpacesForceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.DeleteWSpacesForce)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.DeleteWSpacesForce); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.DeleteWSpacesForce value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.DeleteWSpacesForceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForceNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForceNullable.g.cs deleted file mode 100644 index 0f9a103..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.DeleteWSpacesForceNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class DeleteWSpacesForceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.DeleteWSpacesForce? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.DeleteWSpacesForceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.DeleteWSpacesForce)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.DeleteWSpacesForce?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.DeleteWSpacesForce? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.DeleteWSpacesForceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2.g.cs deleted file mode 100644 index 9f13393..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsView2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsView2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsView2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsView2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsView2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsView2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsView2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2Nullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2Nullable.g.cs deleted file mode 100644 index 7dbea28..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsView2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsView2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsView2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsView2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsView2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsView2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsView2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsView2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2.g.cs deleted file mode 100644 index a0e6224..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithAuthors2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithAuthors2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithAuthors2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithAuthors2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2Nullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2Nullable.g.cs deleted file mode 100644 index 9515747..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithAuthors2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithAuthors2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithAuthors2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditors.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditors.g.cs deleted file mode 100644 index 8c3be4a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditors.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithEditorsJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithEditors Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithEditorsExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithEditors)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithEditors); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithEditors value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithEditorsExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditorsNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditorsNullable.g.cs deleted file mode 100644 index 5662834..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditorsNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithEditorsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithEditors? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithEditorsExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithEditors)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithEditors?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithEditorsExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs deleted file mode 100644 index 16de8fa..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithFeedbacksJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithFeedbacksExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacksExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacksNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacksNullable.g.cs deleted file mode 100644 index 7843ec1..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacksNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithFeedbacksNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithFeedbacksExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacksExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsage.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsage.g.cs deleted file mode 100644 index 3dae592..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsage.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithUsageJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithUsage Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithUsageExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithUsage)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithUsage); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithUsage value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithUsageExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsageNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsageNullable.g.cs deleted file mode 100644 index 7aee225..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsageNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantAgentConfigurationsWithUsageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantAgentConfigurationsWithUsage? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantAgentConfigurationsWithUsageExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantAgentConfigurationsWithUsage)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantAgentConfigurationsWithUsage?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantAgentConfigurationsWithUsageExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs deleted file mode 100644 index 5fe6bd6..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantConversationsMessagesActionsResponseMessageStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusNullable.g.cs deleted file mode 100644 index 71ad6b8..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantConversationsMessagesActionsResponseMessageStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrent.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrent.g.cs deleted file mode 100644 index 498b711..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrent.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantMentionsSuggestionsCurrentJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantMentionsSuggestionsCurrent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantMentionsSuggestionsCurrentExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantMentionsSuggestionsCurrent)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantMentionsSuggestionsCurrent); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantMentionsSuggestionsCurrent value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantMentionsSuggestionsCurrentExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrentNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrentNullable.g.cs deleted file mode 100644 index 851793c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrentNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantMentionsSuggestionsCurrentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantMentionsSuggestionsCurrent? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantMentionsSuggestionsCurrentExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantMentionsSuggestionsCurrent)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantMentionsSuggestionsCurrent?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantMentionsSuggestionsCurrentExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelect.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelect.g.cs deleted file mode 100644 index 3f40b24..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelect.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantMentionsSuggestionsSelectJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantMentionsSuggestionsSelect Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantMentionsSuggestionsSelectExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantMentionsSuggestionsSelect)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantMentionsSuggestionsSelect); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantMentionsSuggestionsSelect value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWAssistantMentionsSuggestionsSelectExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectNullable.g.cs deleted file mode 100644 index af08330..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWAssistantMentionsSuggestionsSelectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWAssistantMentionsSuggestionsSelect? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWAssistantMentionsSuggestionsSelectExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWAssistantMentionsSuggestionsSelect)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWAssistantMentionsSuggestionsSelect?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWAssistantMentionsSuggestionsSelect? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWAssistantMentionsSuggestionsSelectExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesAction.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesAction.g.cs deleted file mode 100644 index cf4a859..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesAction.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWFilesActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWFilesAction Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWFilesActionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWFilesAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWFilesAction); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWFilesAction value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWFilesActionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesActionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesActionNullable.g.cs deleted file mode 100644 index 596625a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesActionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWFilesActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWFilesAction? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWFilesActionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWFilesAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWFilesAction?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWFilesAction? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWFilesActionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersion.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersion.g.cs deleted file mode 100644 index 91c325b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersion.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWFilesVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWFilesVersion Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWFilesVersionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWFilesVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWFilesVersion); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWFilesVersion value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWFilesVersionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersionNullable.g.cs deleted file mode 100644 index 198e819..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWFilesVersionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWFilesVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWFilesVersion? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWFilesVersionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWFilesVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWFilesVersion?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWFilesVersion? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWFilesVersionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategory.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategory.g.cs deleted file mode 100644 index 87b9b90..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategory.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsCategory Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsCategoryExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsCategory)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsCategory); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsCategory value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsCategoryExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategoryNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategoryNullable.g.cs deleted file mode 100644 index e8f4bec..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsCategoryNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsCategory? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsCategoryExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsCategory)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsCategory?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsCategory? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsCategoryExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs deleted file mode 100644 index 92ceac4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsIncludeEditedByJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsIncludeEditedByExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsIncludeEditedByExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedByNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedByNullable.g.cs deleted file mode 100644 index 9b09e5b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedByNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsIncludeEditedByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsIncludeEditedByExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsIncludeEditedByExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetails.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetails.g.cs deleted file mode 100644 index 8c080ad..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetails.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsWithDetailsJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsWithDetails Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsWithDetailsExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsWithDetails)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsWithDetails); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsWithDetails value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsWithDetailsExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetailsNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetailsNullable.g.cs deleted file mode 100644 index 11f4a39..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetailsNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesDataSourceViewsWithDetailsNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesDataSourceViewsWithDetails? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesDataSourceViewsWithDetailsExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesDataSourceViewsWithDetails)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesDataSourceViewsWithDetails?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesDataSourceViewsWithDetails? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesDataSourceViewsWithDetailsExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembers.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembers.g.cs deleted file mode 100644 index a2eebbe..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembers.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesIncludeAllMembersJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesIncludeAllMembers Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesIncludeAllMembersExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesIncludeAllMembers)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesIncludeAllMembers); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesIncludeAllMembers value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesIncludeAllMembersExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembersNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembersNullable.g.cs deleted file mode 100644 index 3f60da8..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesIncludeAllMembersNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesIncludeAllMembersNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesIncludeAllMembers? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesIncludeAllMembersExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesIncludeAllMembers)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesIncludeAllMembers?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesIncludeAllMembers? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesIncludeAllMembersExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItem.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItem.g.cs deleted file mode 100644 index 827aea7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItem.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesKindItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesKindItem Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesKindItemExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesKindItem)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesKindItem); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesKindItem value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesKindItemExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItemNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItemNullable.g.cs deleted file mode 100644 index e9d4321..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesKindItemNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesKindItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesKindItem? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesKindItemExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesKindItem)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesKindItem?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesKindItem? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesKindItemExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs deleted file mode 100644 index b67775b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs deleted file mode 100644 index be18aaa..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRole.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRole.g.cs deleted file mode 100644 index 4efb90d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRole.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesResponseSpaceGroupRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesResponseSpaceGroupRole Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesResponseSpaceGroupRoleExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesResponseSpaceGroupRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesResponseSpaceGroupRole); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesResponseSpaceGroupRole value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.GetWSpacesResponseSpaceGroupRoleExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleNullable.g.cs deleted file mode 100644 index dd850c1..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class GetWSpacesResponseSpaceGroupRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.GetWSpacesResponseSpaceGroupRole? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.GetWSpacesResponseSpaceGroupRoleExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.GetWSpacesResponseSpaceGroupRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.GetWSpacesResponseSpaceGroupRole?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.GetWSpacesResponseSpaceGroupRole? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.GetWSpacesResponseSpaceGroupRoleExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.OneOf3.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.OneOf3.g.cs deleted file mode 100644 index 6e23901..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.OneOf3.g.cs +++ /dev/null @@ -1,216 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::Dust.OneOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - - T1? value1 = default; - T2? value2 = default; - T3? value3 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (value1 == null && value2 == null && value3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Dust.OneOf( - value1, - - value2, - - value3 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.OneOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); - } - else if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); - } - else if (value.IsValue3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs deleted file mode 100644 index f32dbbc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWAssistantConversationsRequestVariant4AccessModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWAssistantConversationsRequestVariant4AccessModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PatchWAssistantConversationsRequestVariant4AccessModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeNullable.g.cs deleted file mode 100644 index 678b8de..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWAssistantConversationsRequestVariant4AccessModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWAssistantConversationsRequestVariant4AccessModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PatchWAssistantConversationsRequestVariant4AccessModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs deleted file mode 100644 index d419bb6..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWSpacesProjectNotificationPreferencesRequestPreferenceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreferenceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreferenceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceNullable.g.cs deleted file mode 100644 index c3d20f9..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWSpacesProjectNotificationPreferencesRequestPreferenceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreferenceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreferenceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs deleted file mode 100644 index 08235f8..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs deleted file mode 100644 index db0e9fb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventType.g.cs deleted file mode 100644 index 331aab2..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentActionSuccessEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentActionSuccessEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentActionSuccessEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentActionSuccessEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentActionSuccessEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentActionSuccessEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentActionSuccessEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventTypeNullable.g.cs deleted file mode 100644 index 2e9a220..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentActionSuccessEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentActionSuccessEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentActionSuccessEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentActionSuccessEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentActionSuccessEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentActionSuccessEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentActionSuccessEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentActionSuccessEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventType.g.cs deleted file mode 100644 index 9ad40fb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentContextPrunedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentContextPrunedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentContextPrunedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentContextPrunedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentContextPrunedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentContextPrunedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentContextPrunedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventTypeNullable.g.cs deleted file mode 100644 index b2d7783..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentContextPrunedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentContextPrunedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentContextPrunedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentContextPrunedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentContextPrunedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentContextPrunedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentContextPrunedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentContextPrunedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventType.g.cs deleted file mode 100644 index 402807f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentErrorEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentErrorEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentErrorEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentErrorEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentErrorEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentErrorEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventTypeNullable.g.cs deleted file mode 100644 index bc2b54b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentErrorEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentErrorEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentErrorEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentErrorEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentErrorEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentErrorEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentErrorEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventType.g.cs deleted file mode 100644 index 34e40ba..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentGenerationCancelledEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentGenerationCancelledEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentGenerationCancelledEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentGenerationCancelledEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentGenerationCancelledEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentGenerationCancelledEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentGenerationCancelledEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeNullable.g.cs deleted file mode 100644 index e0ba5cb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentGenerationCancelledEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentGenerationCancelledEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentGenerationCancelledEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentGenerationCancelledEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentGenerationCancelledEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentGenerationCancelledEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentGenerationCancelledEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatus.g.cs deleted file mode 100644 index eddfb64..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMCPActionStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMCPActionStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMCPActionStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMCPActionStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMCPActionStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMCPActionStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMCPActionStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatusNullable.g.cs deleted file mode 100644 index fd9349f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMCPActionStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMCPActionStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMCPActionStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMCPActionStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMCPActionStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMCPActionStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMCPActionStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMCPActionStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventType.g.cs deleted file mode 100644 index 56a684a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageConsumptionUpdatedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageConsumptionUpdatedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageConsumptionUpdatedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageConsumptionUpdatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageConsumptionUpdatedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageConsumptionUpdatedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeNullable.g.cs deleted file mode 100644 index 12f384d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageConsumptionUpdatedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageConsumptionUpdatedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageConsumptionUpdatedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageConsumptionUpdatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageConsumptionUpdatedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageConsumptionUpdatedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatus.g.cs deleted file mode 100644 index 8d71122..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageDoneEventStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageDoneEventStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageDoneEventStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageDoneEventStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageDoneEventStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageDoneEventStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageDoneEventStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatusNullable.g.cs deleted file mode 100644 index 31e8ca1..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageDoneEventStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageDoneEventStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageDoneEventStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageDoneEventStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageDoneEventStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageDoneEventStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageDoneEventStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventType.g.cs deleted file mode 100644 index 6ff228a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageDoneEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageDoneEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageDoneEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageDoneEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageDoneEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageDoneEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageDoneEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventTypeNullable.g.cs deleted file mode 100644 index 5ca7b6b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageDoneEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageDoneEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageDoneEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageDoneEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageDoneEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageDoneEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageDoneEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageDoneEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEvent.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEvent.g.cs deleted file mode 100644 index 22f0fd6..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEvent.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Dust.JsonConverters -{ - /// - public class PrivateAgentMessageEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageEvent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentMessageEventDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Dust.PrivateGenerationTokensEvent? generationTokens = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.GenerationTokens) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateGenerationTokensEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateGenerationTokensEvent)}"); - generationTokens = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolCallStartedEvent? toolCallStarted = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolCallStarted) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolCallStartedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolCallStartedEvent)}"); - toolCallStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentActionSuccessEvent? agentActionSuccess = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.AgentActionSuccess) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentActionSuccessEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentActionSuccessEvent)}"); - agentActionSuccess = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentMessageSuccessEvent? agentMessageSuccess = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.AgentMessageSuccess) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageSuccessEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentMessageSuccessEvent)}"); - agentMessageSuccess = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentErrorEvent? agentError = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.AgentError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentErrorEvent)}"); - agentError = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentGenerationCancelledEvent? agentGenerationCancelled = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.AgentGenerationCancelled) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentGenerationCancelledEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentGenerationCancelledEvent)}"); - agentGenerationCancelled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolErrorEvent? toolError = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolErrorEvent)}"); - toolError = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolParamsEvent? toolParams = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolParams) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolParamsEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolParamsEvent)}"); - toolParams = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolApproveExecutionEvent? toolApproveExecution = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolApproveExecution) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolApproveExecutionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolApproveExecutionEvent)}"); - toolApproveExecution = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolNotificationEvent? toolNotification = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolNotification) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolNotificationEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolNotificationEvent)}"); - toolNotification = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolPersonalAuthRequiredEvent? toolPersonalAuthRequired = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolPersonalAuthRequired) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolPersonalAuthRequiredEvent)}"); - toolPersonalAuthRequired = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateToolFileAuthRequiredEvent? toolFileAuthRequired = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.ToolFileAuthRequired) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolFileAuthRequiredEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateToolFileAuthRequiredEvent)}"); - toolFileAuthRequired = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentContextPrunedEvent? agentContextPruned = default; - if (discriminator?.Type == global::Dust.PrivateAgentMessageEventDiscriminatorType.AgentContextPruned) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentContextPrunedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentContextPrunedEvent)}"); - agentContextPruned = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Dust.PrivateAgentMessageEvent( - discriminator?.Type, - generationTokens, - - toolCallStarted, - - agentActionSuccess, - - agentMessageSuccess, - - agentError, - - agentGenerationCancelled, - - toolError, - - toolParams, - - toolApproveExecution, - - toolNotification, - - toolPersonalAuthRequired, - - toolFileAuthRequired, - - agentContextPruned - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageEvent value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsGenerationTokens) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateGenerationTokensEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateGenerationTokensEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GenerationTokens!, typeInfo); - } - else if (value.IsToolCallStarted) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolCallStartedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolCallStartedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolCallStarted!, typeInfo); - } - else if (value.IsAgentActionSuccess) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentActionSuccessEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentActionSuccessEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentActionSuccess!, typeInfo); - } - else if (value.IsAgentMessageSuccess) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageSuccessEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentMessageSuccessEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageSuccess!, typeInfo); - } - else if (value.IsAgentError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentError!, typeInfo); - } - else if (value.IsAgentGenerationCancelled) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentGenerationCancelledEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentGenerationCancelledEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentGenerationCancelled!, typeInfo); - } - else if (value.IsToolError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolError!, typeInfo); - } - else if (value.IsToolParams) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolParamsEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolParamsEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolParams!, typeInfo); - } - else if (value.IsToolApproveExecution) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolApproveExecutionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolApproveExecutionEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolApproveExecution!, typeInfo); - } - else if (value.IsToolNotification) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolNotificationEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolNotificationEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolNotification!, typeInfo); - } - else if (value.IsToolPersonalAuthRequired) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolPersonalAuthRequired!, typeInfo); - } - else if (value.IsToolFileAuthRequired) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateToolFileAuthRequiredEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateToolFileAuthRequiredEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolFileAuthRequired!, typeInfo); - } - else if (value.IsAgentContextPruned) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentContextPrunedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentContextPrunedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentContextPruned!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorType.g.cs deleted file mode 100644 index 9e3a7dc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageEventDiscriminatorType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageEventDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageEventDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageEventDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeNullable.g.cs deleted file mode 100644 index 5259388..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageEventDiscriminatorType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageEventDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageEventDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageEventDiscriminatorType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageEventDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethod.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethod.g.cs deleted file mode 100644 index c97737d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethod.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageModelResolutionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageModelResolutionMethod Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageModelResolutionMethodExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageModelResolutionMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageModelResolutionMethod); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageModelResolutionMethod value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageModelResolutionMethodExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodNullable.g.cs deleted file mode 100644 index 39a204e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageModelResolutionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageModelResolutionMethod? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageModelResolutionMethodExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageModelResolutionMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageModelResolutionMethod?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageModelResolutionMethod? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageModelResolutionMethodExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventType.g.cs deleted file mode 100644 index de7646a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageNewEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageNewEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageNewEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageNewEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageNewEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageNewEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventTypeNullable.g.cs deleted file mode 100644 index c6d67c4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageNewEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageNewEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageNewEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageNewEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageNewEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageNewEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageNewEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatus.g.cs deleted file mode 100644 index 94f16bc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatusNullable.g.cs deleted file mode 100644 index 3346123..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventType.g.cs deleted file mode 100644 index 1604dad..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageSuccessEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageSuccessEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageSuccessEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageSuccessEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageSuccessEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageSuccessEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageSuccessEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeNullable.g.cs deleted file mode 100644 index 281602f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageSuccessEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageSuccessEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageSuccessEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageSuccessEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageSuccessEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageSuccessEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageSuccessEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageType.g.cs deleted file mode 100644 index 2c5a105..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageTypeNullable.g.cs deleted file mode 100644 index 2bb2966..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibility.g.cs deleted file mode 100644 index 0090a9f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateAgentMessageVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibilityNullable.g.cs deleted file mode 100644 index fdb777f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateAgentMessageVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateAgentMessageVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateAgentMessageVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateAgentMessageVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateAgentMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateAgentMessageVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateAgentMessageVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateAgentMessageVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventType.g.cs deleted file mode 100644 index 82a843a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageDoneEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageDoneEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageDoneEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageDoneEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageDoneEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageDoneEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateCompactionMessageDoneEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeNullable.g.cs deleted file mode 100644 index f1a8773..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageDoneEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageDoneEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageDoneEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageDoneEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageDoneEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageDoneEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateCompactionMessageDoneEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventType.g.cs deleted file mode 100644 index f9bd938..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageNewEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageNewEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageNewEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageNewEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageNewEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateCompactionMessageNewEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventTypeNullable.g.cs deleted file mode 100644 index 1200d9e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageNewEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageNewEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageNewEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageNewEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageNewEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageNewEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateCompactionMessageNewEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatus.g.cs deleted file mode 100644 index 8ca941e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateCompactionMessageStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatusNullable.g.cs deleted file mode 100644 index 375dae5..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateCompactionMessageStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageType.g.cs deleted file mode 100644 index 1c600e7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateCompactionMessageTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageTypeNullable.g.cs deleted file mode 100644 index 66dee3b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateCompactionMessageTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibility.g.cs deleted file mode 100644 index 62211c3..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateCompactionMessageVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibilityNullable.g.cs deleted file mode 100644 index cf56527..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateCompactionMessageVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateCompactionMessageVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateCompactionMessageVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateCompactionMessageVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateCompactionMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateCompactionMessageVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateCompactionMessageVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateCompactionMessageVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScope.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScope.g.cs deleted file mode 100644 index b6f1d69..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScope.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConsumptionFacetScopeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConsumptionFacetScope Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConsumptionFacetScopeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConsumptionFacetScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConsumptionFacetScope); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConsumptionFacetScope value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConsumptionFacetScopeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScopeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScopeNullable.g.cs deleted file mode 100644 index eb9d9b4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetScopeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConsumptionFacetScopeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConsumptionFacetScope? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConsumptionFacetScopeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConsumptionFacetScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConsumptionFacetScope?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConsumptionFacetScope? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConsumptionFacetScopeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTier.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTier.g.cs deleted file mode 100644 index ea73c99..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTier.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConsumptionFacetTierJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConsumptionFacetTier Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConsumptionFacetTierExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConsumptionFacetTier)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConsumptionFacetTier); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConsumptionFacetTier value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConsumptionFacetTierExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTierNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTierNullable.g.cs deleted file mode 100644 index 4d5c79d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConsumptionFacetTierNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConsumptionFacetTierNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConsumptionFacetTier? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConsumptionFacetTierExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConsumptionFacetTier)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConsumptionFacetTier?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConsumptionFacetTier? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConsumptionFacetTierExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentType.g.cs deleted file mode 100644 index 95e9038..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentContentFragmentTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentContentFragmentType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentContentFragmentTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentContentFragmentType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentContentFragmentType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentContentFragmentType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateContentFragmentContentFragmentTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeNullable.g.cs deleted file mode 100644 index fe1ff28..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentContentFragmentTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentContentFragmentType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentContentFragmentTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentContentFragmentType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentContentFragmentType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentContentFragmentType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateContentFragmentContentFragmentTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersion.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersion.g.cs deleted file mode 100644 index 7e71571..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersion.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentContentFragmentVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentContentFragmentVersion Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentContentFragmentVersionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentContentFragmentVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentContentFragmentVersion); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentContentFragmentVersion value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateContentFragmentContentFragmentVersionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionNullable.g.cs deleted file mode 100644 index 50790e1..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentContentFragmentVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentContentFragmentVersion? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentContentFragmentVersionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentContentFragmentVersion)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentContentFragmentVersion?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentContentFragmentVersion? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateContentFragmentContentFragmentVersionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReason.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReason.g.cs deleted file mode 100644 index 44ef35e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentExpiredReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentExpiredReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentExpiredReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentExpiredReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentExpiredReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentExpiredReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateContentFragmentExpiredReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReasonNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReasonNullable.g.cs deleted file mode 100644 index aff9686..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentExpiredReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentExpiredReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentExpiredReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentExpiredReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentExpiredReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentExpiredReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentExpiredReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateContentFragmentExpiredReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentType.g.cs deleted file mode 100644 index eedaa4f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateContentFragmentTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentTypeNullable.g.cs deleted file mode 100644 index 1d2a9a7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateContentFragmentTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibility.g.cs deleted file mode 100644 index fe5d738..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateContentFragmentVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibilityNullable.g.cs deleted file mode 100644 index 38aa44b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateContentFragmentVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateContentFragmentVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateContentFragmentVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateContentFragmentVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateContentFragmentVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateContentFragmentVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateContentFragmentVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateContentFragmentVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEvent.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEvent.g.cs deleted file mode 100644 index 4333001..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEvent.g.cs +++ /dev/null @@ -1,177 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Dust.JsonConverters -{ - /// - public class PrivateConversationEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationEvent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversationEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateConversationEventDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Dust.PrivateUserMessageNewEvent? userMessageNew = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.UserMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateUserMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateUserMessageNewEvent)}"); - userMessageNew = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentMessageNewEvent? agentMessageNew = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.AgentMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentMessageNewEvent)}"); - agentMessageNew = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? agentMessageConsumptionUpdated = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.AgentMessageConsumptionUpdated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent)}"); - agentMessageConsumptionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateAgentMessageDoneEvent? agentMessageDone = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.AgentMessageDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateAgentMessageDoneEvent)}"); - agentMessageDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateCompactionMessageNewEvent? compactionMessageNew = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.CompactionMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateCompactionMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateCompactionMessageNewEvent)}"); - compactionMessageNew = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateCompactionMessageDoneEvent? compactionMessageDone = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.CompactionMessageDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateCompactionMessageDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateCompactionMessageDoneEvent)}"); - compactionMessageDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateConversationForkPreparedEvent? conversationForkPrepared = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.ConversationForkPrepared) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversationForkPreparedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateConversationForkPreparedEvent)}"); - conversationForkPrepared = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateConversationTitleEvent? conversationTitle = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.ConversationTitle) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversationTitleEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateConversationTitleEvent)}"); - conversationTitle = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateWakeUpUpdatedEvent? wakeUpUpdated = default; - if (discriminator?.Type == global::Dust.PrivateConversationEventDiscriminatorType.WakeUpUpdated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateWakeUpUpdatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateWakeUpUpdatedEvent)}"); - wakeUpUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Dust.PrivateConversationEvent( - discriminator?.Type, - userMessageNew, - - agentMessageNew, - - agentMessageConsumptionUpdated, - - agentMessageDone, - - compactionMessageNew, - - compactionMessageDone, - - conversationForkPrepared, - - conversationTitle, - - wakeUpUpdated - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationEvent value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsUserMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateUserMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateUserMessageNewEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UserMessageNew!, typeInfo); - } - else if (value.IsAgentMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentMessageNewEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageNew!, typeInfo); - } - else if (value.IsAgentMessageConsumptionUpdated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageConsumptionUpdated!, typeInfo); - } - else if (value.IsAgentMessageDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateAgentMessageDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateAgentMessageDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessageDone!, typeInfo); - } - else if (value.IsCompactionMessageNew) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateCompactionMessageNewEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateCompactionMessageNewEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompactionMessageNew!, typeInfo); - } - else if (value.IsCompactionMessageDone) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateCompactionMessageDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateCompactionMessageDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompactionMessageDone!, typeInfo); - } - else if (value.IsConversationForkPrepared) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversationForkPreparedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateConversationForkPreparedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationForkPrepared!, typeInfo); - } - else if (value.IsConversationTitle) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversationTitleEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateConversationTitleEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationTitle!, typeInfo); - } - else if (value.IsWakeUpUpdated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateWakeUpUpdatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateWakeUpUpdatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WakeUpUpdated!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorType.g.cs deleted file mode 100644 index 0335b46..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationEventDiscriminatorType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationEventDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationEventDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConversationEventDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeNullable.g.cs deleted file mode 100644 index ca55ec6..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationEventDiscriminatorType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationEventDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationEventDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationEventDiscriminatorType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConversationEventDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventType.g.cs deleted file mode 100644 index c6071fd..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkPreparedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkPreparedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkPreparedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkPreparedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkPreparedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkPreparedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConversationForkPreparedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventTypeNullable.g.cs deleted file mode 100644 index d7a174b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkPreparedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkPreparedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkPreparedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkPreparedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkPreparedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkPreparedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkPreparedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConversationForkPreparedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProvider.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProvider.g.cs deleted file mode 100644 index 7042638..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProvider.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkUserProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkUserProvider Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkUserProviderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkUserProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkUserProvider); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkUserProvider value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConversationForkUserProviderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProviderNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProviderNullable.g.cs deleted file mode 100644 index eb4e440..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkUserProviderNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkUserProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkUserProvider? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkUserProviderExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkUserProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkUserProvider?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkUserProvider? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConversationForkUserProviderExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatus.g.cs deleted file mode 100644 index 4433d3f..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkedFromFileCopyStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkedFromFileCopyStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkedFromFileCopyStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkedFromFileCopyStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkedFromFileCopyStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkedFromFileCopyStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConversationForkedFromFileCopyStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusNullable.g.cs deleted file mode 100644 index 5e22f50..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationForkedFromFileCopyStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationForkedFromFileCopyStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationForkedFromFileCopyStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationForkedFromFileCopyStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationForkedFromFileCopyStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationForkedFromFileCopyStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConversationForkedFromFileCopyStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventType.g.cs deleted file mode 100644 index c656742..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationTitleEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationTitleEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationTitleEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationTitleEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationTitleEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationTitleEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateConversationTitleEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventTypeNullable.g.cs deleted file mode 100644 index 7094e82..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateConversationTitleEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateConversationTitleEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateConversationTitleEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateConversationTitleEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateConversationTitleEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateConversationTitleEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateConversationTitleEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateConversationTitleEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategory.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategory.g.cs deleted file mode 100644 index 1e79314..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategory.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateDataSourceViewCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateDataSourceViewCategory Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateDataSourceViewCategoryExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateDataSourceViewCategory)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateDataSourceViewCategory); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateDataSourceViewCategory value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateDataSourceViewCategoryExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategoryNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategoryNullable.g.cs deleted file mode 100644 index 2710dd2..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewCategoryNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateDataSourceViewCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateDataSourceViewCategory? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateDataSourceViewCategoryExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateDataSourceViewCategory)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateDataSourceViewCategory?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateDataSourceViewCategory? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateDataSourceViewCategoryExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKind.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKind.g.cs deleted file mode 100644 index e360897..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKind.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateDataSourceViewKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateDataSourceViewKind Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateDataSourceViewKindExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateDataSourceViewKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateDataSourceViewKind); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateDataSourceViewKind value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateDataSourceViewKindExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKindNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKindNullable.g.cs deleted file mode 100644 index 80d1c24..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateDataSourceViewKindNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateDataSourceViewKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateDataSourceViewKind? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateDataSourceViewKindExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateDataSourceViewKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateDataSourceViewKind?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateDataSourceViewKind? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateDataSourceViewKindExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirection.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirection.g.cs deleted file mode 100644 index ae44a92..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirection.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFeedbackThumbDirectionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFeedbackThumbDirection Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFeedbackThumbDirectionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFeedbackThumbDirection)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFeedbackThumbDirection); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFeedbackThumbDirection value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateFeedbackThumbDirectionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirectionNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirectionNullable.g.cs deleted file mode 100644 index 577e7d2..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFeedbackThumbDirectionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFeedbackThumbDirectionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFeedbackThumbDirection? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFeedbackThumbDirectionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFeedbackThumbDirection)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFeedbackThumbDirection?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFeedbackThumbDirection? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateFeedbackThumbDirectionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatus.g.cs deleted file mode 100644 index 6585c25..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFileWithUploadUrlStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFileWithUploadUrlStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFileWithUploadUrlStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFileWithUploadUrlStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFileWithUploadUrlStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFileWithUploadUrlStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateFileWithUploadUrlStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatusNullable.g.cs deleted file mode 100644 index cc127be..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFileWithUploadUrlStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFileWithUploadUrlStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFileWithUploadUrlStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFileWithUploadUrlStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFileWithUploadUrlStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFileWithUploadUrlStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateFileWithUploadUrlStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCase.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCase.g.cs deleted file mode 100644 index c5885e6..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCase.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFileWithUploadUrlUseCaseJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFileWithUploadUrlUseCase Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFileWithUploadUrlUseCaseExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFileWithUploadUrlUseCase)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFileWithUploadUrlUseCase); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFileWithUploadUrlUseCase value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateFileWithUploadUrlUseCaseExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseNullable.g.cs deleted file mode 100644 index 00b75bf..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFileWithUploadUrlUseCaseNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFileWithUploadUrlUseCase? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFileWithUploadUrlUseCaseExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFileWithUploadUrlUseCase)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFileWithUploadUrlUseCase?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFileWithUploadUrlUseCase? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateFileWithUploadUrlUseCaseExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversation.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversation.g.cs deleted file mode 100644 index da4f2ba..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversation.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Dust.JsonConverters -{ - /// - public class PrivateFullConversationJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFullConversation Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - - global::Dust.PrivateConversation? privateConversation = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateConversation).Name}"); - privateConversation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - global::Dust.PrivateFullConversationVariant2? privateFullConversationVariant2 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateFullConversationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateFullConversationVariant2).Name}"); - privateFullConversationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - var __value = new global::Dust.PrivateFullConversation( - privateConversation, - - privateFullConversationVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFullConversation value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - writer.WriteStartObject(); - var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); - if (value.IsPrivateConversation) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateConversation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateConversation).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PrivateConversation!, typeInfo); - if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element0.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - if (value.IsPrivateFullConversationVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateFullConversationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateFullConversationVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PrivateFullConversationVariant2!, typeInfo); - if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element1.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2Visibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2Visibility.g.cs deleted file mode 100644 index eb5d5d2..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2Visibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFullConversationVariant2VisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFullConversationVariant2Visibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFullConversationVariant2VisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFullConversationVariant2Visibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFullConversationVariant2Visibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFullConversationVariant2Visibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateFullConversationVariant2VisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2VisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2VisibilityNullable.g.cs deleted file mode 100644 index f68c059..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateFullConversationVariant2VisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateFullConversationVariant2VisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateFullConversationVariant2Visibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateFullConversationVariant2VisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateFullConversationVariant2Visibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateFullConversationVariant2Visibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateFullConversationVariant2Visibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateFullConversationVariant2VisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassification.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassification.g.cs deleted file mode 100644 index d961fd8..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassification.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateGenerationTokensEventClassificationJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateGenerationTokensEventClassification Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateGenerationTokensEventClassificationExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateGenerationTokensEventClassification)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateGenerationTokensEventClassification); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateGenerationTokensEventClassification value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateGenerationTokensEventClassificationExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassificationNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassificationNullable.g.cs deleted file mode 100644 index 5307f6a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventClassificationNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateGenerationTokensEventClassificationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateGenerationTokensEventClassification? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateGenerationTokensEventClassificationExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateGenerationTokensEventClassification)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateGenerationTokensEventClassification?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateGenerationTokensEventClassification? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateGenerationTokensEventClassificationExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventType.g.cs deleted file mode 100644 index cf8e69c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateGenerationTokensEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateGenerationTokensEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateGenerationTokensEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateGenerationTokensEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateGenerationTokensEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateGenerationTokensEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateGenerationTokensEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventTypeNullable.g.cs deleted file mode 100644 index 0b02958..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateGenerationTokensEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateGenerationTokensEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateGenerationTokensEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateGenerationTokensEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateGenerationTokensEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateGenerationTokensEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateGenerationTokensEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateGenerationTokensEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffort.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffort.g.cs deleted file mode 100644 index cbef5c7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffort.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationModelReasoningEffortJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationModelReasoningEffort Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationModelReasoningEffortExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationModelReasoningEffort)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationModelReasoningEffort value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationModelReasoningEffortExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortNullable.g.cs deleted file mode 100644 index c33aab3..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationModelReasoningEffortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationModelReasoningEffort? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationModelReasoningEffortExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationModelReasoningEffort)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationModelReasoningEffort? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationModelReasoningEffortExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScope.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScope.g.cs deleted file mode 100644 index 9247320..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScope.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationScopeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationScope Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationScopeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationScope); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationScope value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationScopeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScopeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScopeNullable.g.cs deleted file mode 100644 index 9db591d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationScopeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationScopeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationScope? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationScopeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationScope)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationScope?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationScope? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationScopeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatus.g.cs deleted file mode 100644 index eaf28cc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatusNullable.g.cs deleted file mode 100644 index c2c1189..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentConfigurationStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentConfigurationStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentConfigurationStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentConfigurationStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentConfigurationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentConfigurationStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentConfigurationStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentConfigurationStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepType.g.cs deleted file mode 100644 index 43b40ed..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageActivityStepTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageActivityStepType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageActivityStepTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageActivityStepType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageActivityStepType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageActivityStepType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageActivityStepTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeNullable.g.cs deleted file mode 100644 index c2fb904..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageActivityStepTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageActivityStepType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageActivityStepTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageActivityStepType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageActivityStepType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageActivityStepType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageActivityStepTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethod.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethod.g.cs deleted file mode 100644 index 0616df7..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethod.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageModelResolutionMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageModelResolutionMethod Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageModelResolutionMethodExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageModelResolutionMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageModelResolutionMethod); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageModelResolutionMethod value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageModelResolutionMethodExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodNullable.g.cs deleted file mode 100644 index d6b224d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageModelResolutionMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageModelResolutionMethod? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageModelResolutionMethodExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageModelResolutionMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageModelResolutionMethod?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageModelResolutionMethod? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageModelResolutionMethodExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatus.g.cs deleted file mode 100644 index 6d6628b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatusNullable.g.cs deleted file mode 100644 index c96d771..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageType.g.cs deleted file mode 100644 index 93fadce..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageTypeNullable.g.cs deleted file mode 100644 index 768f8b0..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibility.g.cs deleted file mode 100644 index 1e27c1c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibilityNullable.g.cs deleted file mode 100644 index 3adca4d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateLightAgentMessageVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateLightAgentMessageVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateLightAgentMessageVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateLightAgentMessageVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateLightAgentMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateLightAgentMessageVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateLightAgentMessageVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateLightAgentMessageVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionType.g.cs deleted file mode 100644 index 590e684..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateMentionSuggestionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateMentionSuggestionType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateMentionSuggestionTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateMentionSuggestionType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateMentionSuggestionType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateMentionSuggestionType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateMentionSuggestionTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionTypeNullable.g.cs deleted file mode 100644 index 636de4b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionSuggestionTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateMentionSuggestionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateMentionSuggestionType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateMentionSuggestionTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateMentionSuggestionType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateMentionSuggestionType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateMentionSuggestionType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateMentionSuggestionTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionType.g.cs deleted file mode 100644 index cc12090..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateMentionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateMentionType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateMentionTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateMentionType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateMentionType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateMentionType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateMentionTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionTypeNullable.g.cs deleted file mode 100644 index b82e718..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateMentionTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateMentionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateMentionType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateMentionTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateMentionType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateMentionType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateMentionType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateMentionTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateProject.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateProject.g.cs deleted file mode 100644 index a8a430d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateProject.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Dust.JsonConverters -{ - /// - public class PrivateProjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateProject Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - - global::Dust.PrivateSpace? space = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSpace), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateSpace).Name}"); - space = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - global::Dust.PrivateProjectVariant2? privateProjectVariant2 = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateProjectVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateProjectVariant2).Name}"); - privateProjectVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - var __value = new global::Dust.PrivateProject( - space, - - privateProjectVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateProject value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - writer.WriteStartObject(); - var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); - if (value.IsSpace) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSpace), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateSpace).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Space!, typeInfo); - if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element0.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - if (value.IsPrivateProjectVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateProjectVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateProjectVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PrivateProjectVariant2!, typeInfo); - if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) - { - throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); - } - - foreach (var __property in __element1.EnumerateObject()) - { - if (__writtenPropertyNames.Add(__property.Name)) - { - __property.WriteTo(writer); - } - } - } - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatus.g.cs deleted file mode 100644 index dfad679..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateRichMentionWithStatusStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateRichMentionWithStatusStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateRichMentionWithStatusStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateRichMentionWithStatusStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateRichMentionWithStatusStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateRichMentionWithStatusStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateRichMentionWithStatusStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatusNullable.g.cs deleted file mode 100644 index 704465e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateRichMentionWithStatusStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateRichMentionWithStatusStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateRichMentionWithStatusStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateRichMentionWithStatusStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateRichMentionWithStatusStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateRichMentionWithStatusStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateRichMentionWithStatusStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusType.g.cs deleted file mode 100644 index 0c1a156..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateRichMentionWithStatusTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateRichMentionWithStatusType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateRichMentionWithStatusTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateRichMentionWithStatusType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateRichMentionWithStatusType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateRichMentionWithStatusType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateRichMentionWithStatusTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusTypeNullable.g.cs deleted file mode 100644 index 08083f5..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateRichMentionWithStatusTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateRichMentionWithStatusTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateRichMentionWithStatusType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateRichMentionWithStatusTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateRichMentionWithStatusType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateRichMentionWithStatusType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateRichMentionWithStatusType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateRichMentionWithStatusTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs deleted file mode 100644 index 071b388..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationCreatedEventInvocationStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusNullable.g.cs deleted file mode 100644 index 86b7556..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationCreatedEventInvocationStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventType.g.cs deleted file mode 100644 index 30f8800..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationCreatedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationCreatedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationCreatedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationCreatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationCreatedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeNullable.g.cs deleted file mode 100644 index c7f42e4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationCreatedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationCreatedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationCreatedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationCreatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationCreatedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventType.g.cs deleted file mode 100644 index a6e61ce..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationErrorEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationErrorEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationErrorEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationErrorEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationErrorEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationErrorEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeNullable.g.cs deleted file mode 100644 index 4e51d4c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationErrorEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationErrorEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationErrorEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationErrorEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationErrorEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationErrorEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEvent.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEvent.g.cs deleted file mode 100644 index eb1c620..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEvent.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Dust.JsonConverters -{ - /// - public class PrivateSandboxFunctionInvocationEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationEvent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? sandboxFunctionInvocationCreated = default; - if (discriminator?.Type == global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationCreated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent)}"); - sandboxFunctionInvocationCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateSandboxFunctionInvocationResultEvent? sandboxFunctionInvocationResult = default; - if (discriminator?.Type == global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationResult) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateSandboxFunctionInvocationResultEvent)}"); - sandboxFunctionInvocationResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Dust.PrivateSandboxFunctionInvocationErrorEvent? sandboxFunctionInvocationError = default; - if (discriminator?.Type == global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent)}"); - sandboxFunctionInvocationError = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Dust.PrivateSandboxFunctionInvocationEvent( - discriminator?.Type, - sandboxFunctionInvocationCreated, - - sandboxFunctionInvocationResult, - - sandboxFunctionInvocationError - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationEvent value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsSandboxFunctionInvocationCreated) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SandboxFunctionInvocationCreated!, typeInfo); - } - else if (value.IsSandboxFunctionInvocationResult) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SandboxFunctionInvocationResult!, typeInfo); - } - else if (value.IsSandboxFunctionInvocationError) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SandboxFunctionInvocationError!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs deleted file mode 100644 index 0bbab16..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeNullable.g.cs deleted file mode 100644 index 1a00e0d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventType.g.cs deleted file mode 100644 index 1d5724e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationResultEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationResultEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationResultEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationResultEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationResultEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationResultEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationResultEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeNullable.g.cs deleted file mode 100644 index 1c4f7c3..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSandboxFunctionInvocationResultEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSandboxFunctionInvocationResultEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSandboxFunctionInvocationResultEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSandboxFunctionInvocationResultEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSandboxFunctionInvocationResultEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSandboxFunctionInvocationResultEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSandboxFunctionInvocationResultEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKind.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKind.g.cs deleted file mode 100644 index e2f3696..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKind.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSpaceKindJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSpaceKind Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSpaceKindExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSpaceKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSpaceKind); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSpaceKind value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateSpaceKindExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKindNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKindNullable.g.cs deleted file mode 100644 index ca50a74..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateSpaceKindNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateSpaceKindNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateSpaceKind? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateSpaceKindExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateSpaceKind)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateSpaceKind?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateSpaceKind? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateSpaceKindExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventType.g.cs deleted file mode 100644 index 174ffcf..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolApproveExecutionEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolApproveExecutionEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolApproveExecutionEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolApproveExecutionEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolApproveExecutionEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolApproveExecutionEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolApproveExecutionEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventTypeNullable.g.cs deleted file mode 100644 index c26edef..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolApproveExecutionEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolApproveExecutionEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolApproveExecutionEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolApproveExecutionEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolApproveExecutionEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolApproveExecutionEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolApproveExecutionEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolApproveExecutionEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventType.g.cs deleted file mode 100644 index 6a43aff..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolCallStartedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolCallStartedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolCallStartedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolCallStartedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolCallStartedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolCallStartedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolCallStartedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventTypeNullable.g.cs deleted file mode 100644 index 0a20ee0..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolCallStartedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolCallStartedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolCallStartedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolCallStartedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolCallStartedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolCallStartedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolCallStartedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolCallStartedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventType.g.cs deleted file mode 100644 index 30d0f53..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolErrorEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolErrorEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolErrorEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolErrorEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolErrorEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolErrorEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventTypeNullable.g.cs deleted file mode 100644 index 37aa967..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolErrorEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolErrorEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolErrorEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolErrorEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolErrorEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolErrorEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolErrorEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolErrorEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventType.g.cs deleted file mode 100644 index e0ff34d..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolFileAuthRequiredEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolFileAuthRequiredEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolFileAuthRequiredEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolFileAuthRequiredEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolFileAuthRequiredEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolFileAuthRequiredEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolFileAuthRequiredEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeNullable.g.cs deleted file mode 100644 index cf74907..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolFileAuthRequiredEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolFileAuthRequiredEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolFileAuthRequiredEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolFileAuthRequiredEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolFileAuthRequiredEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolFileAuthRequiredEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolFileAuthRequiredEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventType.g.cs deleted file mode 100644 index 2d12fad..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolNotificationEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolNotificationEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolNotificationEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolNotificationEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolNotificationEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolNotificationEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolNotificationEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventTypeNullable.g.cs deleted file mode 100644 index da7a5dc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolNotificationEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolNotificationEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolNotificationEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolNotificationEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolNotificationEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolNotificationEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolNotificationEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolNotificationEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventType.g.cs deleted file mode 100644 index 9666c91..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolParamsEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolParamsEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolParamsEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolParamsEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolParamsEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolParamsEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolParamsEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventTypeNullable.g.cs deleted file mode 100644 index 1e36adc..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolParamsEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolParamsEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolParamsEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolParamsEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolParamsEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolParamsEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolParamsEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolParamsEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventType.g.cs deleted file mode 100644 index 81d6bfe..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolPersonalAuthRequiredEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolPersonalAuthRequiredEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolPersonalAuthRequiredEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolPersonalAuthRequiredEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolPersonalAuthRequiredEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolPersonalAuthRequiredEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateToolPersonalAuthRequiredEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeNullable.g.cs deleted file mode 100644 index 6d270b1..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateToolPersonalAuthRequiredEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateToolPersonalAuthRequiredEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateToolPersonalAuthRequiredEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateToolPersonalAuthRequiredEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateToolPersonalAuthRequiredEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateToolPersonalAuthRequiredEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateToolPersonalAuthRequiredEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOrigin.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOrigin.g.cs deleted file mode 100644 index 08986a4..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOrigin.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageContextOriginJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageContextOrigin Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageContextOriginExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageContextOrigin)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageContextOrigin); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageContextOrigin value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateUserMessageContextOriginExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOriginNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOriginNullable.g.cs deleted file mode 100644 index 93aa5dd..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageContextOriginNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageContextOriginNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageContextOrigin? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageContextOriginExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageContextOrigin)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageContextOrigin?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageContextOrigin? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateUserMessageContextOriginExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventType.g.cs deleted file mode 100644 index fcd8c51..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageNewEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageNewEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageNewEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageNewEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageNewEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateUserMessageNewEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventTypeNullable.g.cs deleted file mode 100644 index a7c9697..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageNewEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageNewEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageNewEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageNewEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageNewEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageNewEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageNewEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateUserMessageNewEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageType.g.cs deleted file mode 100644 index 346cb8c..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateUserMessageTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageTypeNullable.g.cs deleted file mode 100644 index 671a7e9..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateUserMessageTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibility.g.cs deleted file mode 100644 index ca408cb..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibility.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageVisibility Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageVisibilityExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageVisibility); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageVisibility value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateUserMessageVisibilityExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibilityNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibilityNullable.g.cs deleted file mode 100644 index d3ee287..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserMessageVisibilityNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserMessageVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserMessageVisibility? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserMessageVisibilityExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserMessageVisibility)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserMessageVisibility?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserMessageVisibility? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateUserMessageVisibilityExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProvider.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProvider.g.cs deleted file mode 100644 index dc666c9..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProvider.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserProvider Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserProviderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserProvider); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserProvider value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateUserProviderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProviderNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProviderNullable.g.cs deleted file mode 100644 index 713941b..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateUserProviderNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateUserProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateUserProvider? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateUserProviderExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateUserProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateUserProvider?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateUserProvider? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateUserProviderExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1Type.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1Type.g.cs deleted file mode 100644 index a8eae91..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpScheduleConfigVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpScheduleConfigVariant1Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpScheduleConfigVariant1TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpScheduleConfigVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpScheduleConfigVariant1Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpScheduleConfigVariant1Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateWakeUpScheduleConfigVariant1TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeNullable.g.cs deleted file mode 100644 index 22485ad..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpScheduleConfigVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpScheduleConfigVariant1Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpScheduleConfigVariant1TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpScheduleConfigVariant1Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpScheduleConfigVariant1Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpScheduleConfigVariant1Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateWakeUpScheduleConfigVariant1TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2Type.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2Type.g.cs deleted file mode 100644 index e9579ec..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpScheduleConfigVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpScheduleConfigVariant2Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpScheduleConfigVariant2TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpScheduleConfigVariant2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpScheduleConfigVariant2Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpScheduleConfigVariant2Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateWakeUpScheduleConfigVariant2TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeNullable.g.cs deleted file mode 100644 index 036142a..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpScheduleConfigVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpScheduleConfigVariant2Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpScheduleConfigVariant2TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpScheduleConfigVariant2Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpScheduleConfigVariant2Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpScheduleConfigVariant2Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateWakeUpScheduleConfigVariant2TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatus.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatus.g.cs deleted file mode 100644 index e4cb27e..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateWakeUpStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatusNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatusNullable.g.cs deleted file mode 100644 index 1831ba8..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateWakeUpStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventType.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventType.g.cs deleted file mode 100644 index 22682d9..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpUpdatedEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpUpdatedEventType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpUpdatedEventTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpUpdatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpUpdatedEventType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpUpdatedEventType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateWakeUpUpdatedEventTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeNullable.g.cs deleted file mode 100644 index 7c01e30..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWakeUpUpdatedEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWakeUpUpdatedEventType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWakeUpUpdatedEventTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWakeUpUpdatedEventType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWakeUpUpdatedEventType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWakeUpUpdatedEventType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateWakeUpUpdatedEventTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRole.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRole.g.cs deleted file mode 100644 index 47bc429..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRole.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWorkspaceRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWorkspaceRole Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWorkspaceRoleExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWorkspaceRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWorkspaceRole); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWorkspaceRole value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Dust.PrivateWorkspaceRoleExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRoleNullable.g.cs b/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRoleNullable.g.cs deleted file mode 100644 index 0f522b9..0000000 --- a/src/libs/Dust/Generated/Dust.JsonConverters.PrivateWorkspaceRoleNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Dust.JsonConverters -{ - /// - public sealed class PrivateWorkspaceRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Dust.PrivateWorkspaceRole? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Dust.PrivateWorkspaceRoleExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Dust.PrivateWorkspaceRole)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Dust.PrivateWorkspaceRole?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Dust.PrivateWorkspaceRole? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Dust.PrivateWorkspaceRoleExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs index 515a222..9874c6f 100644 --- a/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs @@ -13,235 +13,194 @@ namespace Dust DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::Dust.JsonConverters.ContextAgenticMessageDataTypeJsonConverter), + + typeof(global::Dust.JsonConverters.ContextAgenticMessageDataTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.AgentConfigurationTagKindJsonConverter), + + typeof(global::Dust.JsonConverters.AgentConfigurationTagKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.RichMentionTypeJsonConverter), + + typeof(global::Dust.JsonConverters.RichMentionTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.ModelSelectionReasoningEffortJsonConverter), + + typeof(global::Dust.JsonConverters.ModelSelectionReasoningEffortNullableJsonConverter), + + typeof(global::Dust.JsonConverters.SpaceKindJsonConverter), + + typeof(global::Dust.JsonConverters.SpaceKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.TableSchemaItemValueTypeJsonConverter), + + typeof(global::Dust.JsonConverters.TableSchemaItemValueTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.DatasourceViewCategoryJsonConverter), + + typeof(global::Dust.JsonConverters.DatasourceViewCategoryNullableJsonConverter), + + typeof(global::Dust.JsonConverters.DatasourceViewKindJsonConverter), + + typeof(global::Dust.JsonConverters.DatasourceViewKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.SkillStatusJsonConverter), + + typeof(global::Dust.JsonConverters.SkillStatusNullableJsonConverter), + + typeof(global::Dust.JsonConverters.SkillSourceJsonConverter), + + typeof(global::Dust.JsonConverters.SkillSourceNullableJsonConverter), + + typeof(global::Dust.JsonConverters.SkillReinforcementJsonConverter), + + typeof(global::Dust.JsonConverters.SkillReinforcementNullableJsonConverter), + + typeof(global::Dust.JsonConverters.SkillAvailabilityJsonConverter), + + typeof(global::Dust.JsonConverters.SkillAvailabilityNullableJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewServerTypeJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewServerTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewServerAuthorizationSupportedUseCaseJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewServerAuthorizationSupportedUseCaseNullableJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewOAuthUseCaseJsonConverter), + + typeof(global::Dust.JsonConverters.MCPServerViewOAuthUseCaseNullableJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerKindJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerStatusJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerStatusNullableJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerExecutionModeJsonConverter), + + typeof(global::Dust.JsonConverters.TriggerExecutionModeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatNullableJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestAgentScopeJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestAgentScopeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestTagKindJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestTagKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestToolsetItemTypeJsonConverter), + + typeof(global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestToolsetItemTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestAgentScopeJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestAgentScopeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestTagKindJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestTagKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestToolsetItemTypeJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestToolsetItemTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirectionJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirectionNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSkillsRequestOnConflictJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSkillsRequestOnConflictNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSkillsRequestAvailabilityJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSkillsRequestAvailabilityNullableJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSpacesDataSourcesTablesRowsRequestRowValueTypeJsonConverter), + + typeof(global::Dust.JsonConverters.CreateWSpacesDataSourcesTablesRowsRequestRowValueTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAnalyticsExportTableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAnalyticsExportTableNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAnalyticsExportFormatJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAnalyticsExportFormatNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsViewJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsViewNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthorsJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthorsNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsVariantJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantAgentConfigurationsVariantNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantConversationsMentionsSuggestionsSelectItemJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantConversationsMentionsSuggestionsSelectItemNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectItemJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectItemNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSearchViewTypeJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSearchViewTypeNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSkillsStatusJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSkillsStatusNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSkillsAvailabilityItemJsonConverter), + + typeof(global::Dust.JsonConverters.GetWSkillsAvailabilityItemNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWTriggersKindJsonConverter), + + typeof(global::Dust.JsonConverters.GetWTriggersKindNullableJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirectionJsonConverter), + + typeof(global::Dust.JsonConverters.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirectionNullableJsonConverter), + + typeof(global::Dust.JsonConverters.OneOfJsonConverter), + + typeof(global::Dust.JsonConverters.OneOfJsonConverter), + + typeof(global::Dust.JsonConverters.OneOfJsonConverter), + + typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "PatchWAssistantConversationsRequestVariant4_c4fb3fa444308b4c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "PatchWAssistantConversationsRequestVariant4_2edd0c100c08755a")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConsumptionFacet))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConsumptionFacetScope), TypeInfoPropertyName = "PrivateConsumptionFacetScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConsumptionFacetTier), TypeInfoPropertyName = "PrivateConsumptionFacetTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserProvider), TypeInfoPropertyName = "PrivateUserProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWorkspace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWorkspaceRole), TypeInfoPropertyName = "PrivateWorkspaceRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationConsumptionToolDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationConsumptionModelDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationConsumptionAgentDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationConsumptionDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkingData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkUserProvider), TypeInfoPropertyName = "PrivateConversationForkUserProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkedFrom))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus), TypeInfoPropertyName = "PrivateConversationForkedFromFileCopyStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkedChild))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFullConversation), TypeInfoPropertyName = "PrivateFullConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFullConversationVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFullConversationVariant2Visibility), TypeInfoPropertyName = "PrivateFullConversationVariant2Visibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "OneOfPrivateUserMessagePrivateAgentMessagePrivateContentFragmentPrivateCompactionMessage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageType), TypeInfoPropertyName = "PrivateUserMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageVisibility), TypeInfoPropertyName = "PrivateUserMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMention))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateRichMentionWithStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateReaction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageType), TypeInfoPropertyName = "PrivateAgentMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageVisibility), TypeInfoPropertyName = "PrivateAgentMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageStatus), TypeInfoPropertyName = "PrivateAgentMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfiguration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageResolvedModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageModelResolutionMethod), TypeInfoPropertyName = "PrivateAgentMessageModelResolutionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageType), TypeInfoPropertyName = "PrivateLightAgentMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageVisibility), TypeInfoPropertyName = "PrivateLightAgentMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageStatus), TypeInfoPropertyName = "PrivateLightAgentMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageConfiguration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCitation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageGeneratedFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageResolvedModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod), TypeInfoPropertyName = "PrivateLightAgentMessageModelResolutionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageActivityStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageActivityStepType), TypeInfoPropertyName = "PrivateLightAgentMessageActivityStepType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentType), TypeInfoPropertyName = "PrivateContentFragmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentVisibility), TypeInfoPropertyName = "PrivateContentFragmentVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentContentFragmentVersion), TypeInfoPropertyName = "PrivateContentFragmentContentFragmentVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentContentFragmentType), TypeInfoPropertyName = "PrivateContentFragmentContentFragmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentExpiredReason), TypeInfoPropertyName = "PrivateContentFragmentExpiredReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageType), TypeInfoPropertyName = "PrivateCompactionMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageVisibility), TypeInfoPropertyName = "PrivateCompactionMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageStatus), TypeInfoPropertyName = "PrivateCompactionMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationStatus), TypeInfoPropertyName = "PrivateLightAgentConfigurationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationScope), TypeInfoPropertyName = "PrivateLightAgentConfigurationScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort), TypeInfoPropertyName = "PrivateLightAgentConfigurationModelReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationTag))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationEditor))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationFeedbacks))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetGoTemplateDraftResponseBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachmentError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFileWithUploadUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFileWithUploadUrlStatus), TypeInfoPropertyName = "PrivateFileWithUploadUrlStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFileWithUploadUrlUseCase), TypeInfoPropertyName = "PrivateFileWithUploadUrlUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSpace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSpaceKind), TypeInfoPropertyName = "PrivateSpaceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateProject), TypeInfoPropertyName = "PrivateProject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateProjectVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateProjectVariant2FrameTab))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceView))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewCategory), TypeInfoPropertyName = "PrivateDataSourceViewCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewKind), TypeInfoPropertyName = "PrivateDataSourceViewKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewEditedByUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewUsageAgent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewUsageSkill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMentionSuggestion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMentionSuggestionType), TypeInfoPropertyName = "PrivateMentionSuggestionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFeatureFlags))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateExtensionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFeedback))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFeedbackThumbDirection), TypeInfoPropertyName = "PrivateFeedbackThumbDirection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUp))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "OneOfPrivateWakeUpScheduleConfigVariant1PrivateWakeUpScheduleConfigVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type), TypeInfoPropertyName = "PrivateWakeUpScheduleConfigVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type), TypeInfoPropertyName = "PrivateWakeUpScheduleConfigVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpStatus), TypeInfoPropertyName = "PrivateWakeUpStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMentionType), TypeInfoPropertyName = "PrivateMentionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateRichMentionWithStatusType), TypeInfoPropertyName = "PrivateRichMentionWithStatusType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateRichMentionWithStatusStatus), TypeInfoPropertyName = "PrivateRichMentionWithStatusStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageContextOrigin), TypeInfoPropertyName = "PrivateUserMessageContextOrigin2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateReactionUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationEvent), TypeInfoPropertyName = "PrivateConversationEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageNewEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageNewEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageNewEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkPreparedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationTitleEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpUpdatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationEventDiscriminatorType), TypeInfoPropertyName = "PrivateConversationEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageNewEventType), TypeInfoPropertyName = "PrivateUserMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageNewEventType), TypeInfoPropertyName = "PrivateAgentMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageDoneEventType), TypeInfoPropertyName = "PrivateAgentMessageDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageDoneEventStatus), TypeInfoPropertyName = "PrivateAgentMessageDoneEventStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType), TypeInfoPropertyName = "PrivateAgentMessageConsumptionUpdatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageNewEventType), TypeInfoPropertyName = "PrivateCompactionMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageDoneEventType), TypeInfoPropertyName = "PrivateCompactionMessageDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkPreparedEventType), TypeInfoPropertyName = "PrivateConversationForkPreparedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationTitleEventType), TypeInfoPropertyName = "PrivateConversationTitleEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpUpdatedEventType), TypeInfoPropertyName = "PrivateWakeUpUpdatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationEvent), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationCreatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationCreatedEventInvocationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationResultEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType), TypeInfoPropertyName = "PrivateSandboxFunctionInvocationErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageEvent), TypeInfoPropertyName = "PrivateAgentMessageEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateGenerationTokensEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolCallStartedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentActionSuccessEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageSuccessEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentGenerationCancelledEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolParamsEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolApproveExecutionEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolNotificationEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolFileAuthRequiredEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentContextPrunedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageEventDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType), TypeInfoPropertyName = "PrivateAgentMessageEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateGenerationTokensEventType), TypeInfoPropertyName = "PrivateGenerationTokensEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateGenerationTokensEventClassification), TypeInfoPropertyName = "PrivateGenerationTokensEventClassification2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolCallStartedEventType), TypeInfoPropertyName = "PrivateToolCallStartedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentActionSuccessEventType), TypeInfoPropertyName = "PrivateAgentActionSuccessEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMCPAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMCPActionStatus), TypeInfoPropertyName = "PrivateAgentMCPActionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMCPActionDisplayLabels))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMCPActionGeneratedFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageSuccessEventType), TypeInfoPropertyName = "PrivateAgentMessageSuccessEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentErrorEventType), TypeInfoPropertyName = "PrivateAgentErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentErrorEventError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentGenerationCancelledEventType), TypeInfoPropertyName = "PrivateAgentGenerationCancelledEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolErrorEventType), TypeInfoPropertyName = "PrivateToolErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolErrorEventError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolParamsEventType), TypeInfoPropertyName = "PrivateToolParamsEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolApproveExecutionEventType), TypeInfoPropertyName = "PrivateToolApproveExecutionEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolNotificationEventType), TypeInfoPropertyName = "PrivateToolNotificationEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType), TypeInfoPropertyName = "PrivateToolPersonalAuthRequiredEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolPersonalAuthRequiredEventAuthError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolFileAuthRequiredEventType), TypeInfoPropertyName = "PrivateToolFileAuthRequiredEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolFileAuthRequiredEventFileAuthError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentContextPrunedEventType), TypeInfoPropertyName = "PrivateAgentContextPrunedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Section))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.User))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Workspace))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Context))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ContextAgenticMessageData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ContextAgenticMessageDataType), TypeInfoPropertyName = "ContextAgenticMessageDataType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentConfiguration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentConfigurationModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentSkill))] @@ -290,10 +249,12 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerView))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Run))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.RunStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.RunTraceItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Document))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewServerType), TypeInfoPropertyName = "MCPServerViewServerType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewServer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewServerAuthorization))] @@ -308,7 +269,10 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerStatus), TypeInfoPropertyName = "TriggerStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerExecutionMode), TypeInfoPropertyName = "TriggerExecutionMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerWebhookSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchUserRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionExportRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionExportRequestFormat), TypeInfoPropertyName = "CreateWAnalyticsConsumptionExportRequestFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionExportRequestFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope), TypeInfoPropertyName = "PatchWAssistantAgentConfigurationsRequestAgentScope2")] @@ -343,7 +307,7 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesEditRequestMention))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection), TypeInfoPropertyName = "CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection), TypeInfoPropertyName = "CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesValidateActionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -374,56 +338,10 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValue2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType), TypeInfoPropertyName = "CreateWSpacesDataSourcesTablesRowsRequestRowValueType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod), TypeInfoPropertyName = "CreateWAnalyticsConsumptionFacetsRequestPeriod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope), TypeInfoPropertyName = "CreateWAnalyticsConsumptionFacetsRequestScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension), TypeInfoPropertyName = "CreateWAnalyticsConsumptionFacetsRequestDimension2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCancelRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction), TypeInfoPropertyName = "CreateWAssistantConversationsCancelRequestAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCompactionsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCompactionsRequestModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequestContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant12))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant22))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode), TypeInfoPropertyName = "PatchWAssistantConversationsRequestVariant4AccessMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesEditRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2), TypeInfoPropertyName = "CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesRequestContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode), TypeInfoPropertyName = "CreateWAssistantConversationsSelectedSpacesRequestMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequestVisibility), TypeInfoPropertyName = "CreateWAssistantConversationsRequestVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequestMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequestMessageContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequestMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesRequest3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesRequestUseCase), TypeInfoPropertyName = "CreateWFilesRequestUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesDataSourceViewsRequest2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourceViewsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesRequestContentItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference), TypeInfoPropertyName = "PatchWSpacesProjectNotificationPreferencesRequestPreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesRequestSpaceKind), TypeInfoPropertyName = "CreateWSpacesRequestSpaceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosAuthenticateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType), TypeInfoPropertyName = "CreateWorkosAuthenticateRequestGrantType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosRevokeSessionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAnalyticsExportTable), TypeInfoPropertyName = "GetWAnalyticsExportTable2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAnalyticsExportFormat), TypeInfoPropertyName = "GetWAnalyticsExportFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsView), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsView2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithAuthors2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsView), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsView2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithAuthors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsVariant), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsVariant2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem), TypeInfoPropertyName = "GetWAssistantConversationsMentionsSuggestionsSelectItem2")] @@ -434,25 +352,6 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSkillsAvailabilityItem), TypeInfoPropertyName = "GetWSkillsAvailabilityItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWTriggersKind), TypeInfoPropertyName = "GetWTriggersKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsView2), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsView22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithUsage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithAuthors22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithFeedbacks2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors), TypeInfoPropertyName = "GetWAssistantAgentConfigurationsWithEditors2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect), TypeInfoPropertyName = "GetWAssistantMentionsSuggestionsSelect2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent), TypeInfoPropertyName = "GetWAssistantMentionsSuggestionsCurrent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWFilesVersion), TypeInfoPropertyName = "GetWFilesVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWFilesAction), TypeInfoPropertyName = "GetWFilesAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWSpacesDataSourceViewsForce), TypeInfoPropertyName = "DeleteWSpacesDataSourceViewsForce2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsCategory), TypeInfoPropertyName = "GetWSpacesDataSourceViewsCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails), TypeInfoPropertyName = "GetWSpacesDataSourceViewsWithDetails2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy), TypeInfoPropertyName = "GetWSpacesDataSourceViewsIncludeEditedBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesIncludeAllMembers), TypeInfoPropertyName = "GetWSpacesIncludeAllMembers2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWSpacesForce), TypeInfoPropertyName = "DeleteWSpacesForce2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesKindItem), TypeInfoPropertyName = "GetWSpacesKindItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetUserResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchUserResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsResponse2))] @@ -514,20 +413,6 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourcesSearchResponseDocument))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "PatchWAssistantConversationsRequestVariant4_c4fb3fa444308b4c")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "PatchWAssistantConversationsRequestVariant4_2edd0c100c08755a")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourcesTablesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesResponse))] @@ -538,289 +423,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWTriggersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWTriggersResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCancelResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCompactionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsConsumptionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsContentFragmentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsFeedbacksResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus), TypeInfoPropertyName = "GetWAssistantConversationsMessagesActionsResponseMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesEditResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "OneOfPrivateUserMessagePrivateAgentMessagePrivateContentFragment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWAssistantConversationsMessagesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesRetryResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "OneOfPrivateUserMessagePrivateLightAgentMessagePrivateContentFragment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsParticipantsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipants))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf), TypeInfoPropertyName = "AllOfPrivateSpaceGetWAssistantConversationsSelectableSpacesResponseSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf), TypeInfoPropertyName = "AllOfPrivateSpaceCreateWAssistantConversationsSelectedSpacesResponseSelectedSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWAssistantConversationsWakeupsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsWakeupsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesDataSourceViewsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourceViewsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf), TypeInfoPropertyName = "AllOfPrivateSpaceGetWSpacesResponseSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceCategories2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceCategoriesUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceGroup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceGroupRole), TypeInfoPropertyName = "GetWSpacesResponseSpaceGroupRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceFrameTab))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWSpacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference), TypeInfoPropertyName = "GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference), TypeInfoPropertyName = "PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf), TypeInfoPropertyName = "OneOfPrivateSpacePrivateProject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosAuthenticateResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosRevokeSessionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConsumptionFacetScope?), TypeInfoPropertyName = "NullablePrivateConsumptionFacetScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConsumptionFacetTier?), TypeInfoPropertyName = "NullablePrivateConsumptionFacetTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserProvider?), TypeInfoPropertyName = "NullablePrivateUserProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWorkspaceRole?), TypeInfoPropertyName = "NullablePrivateWorkspaceRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkUserProvider?), TypeInfoPropertyName = "NullablePrivateConversationForkUserProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus?), TypeInfoPropertyName = "NullablePrivateConversationForkedFromFileCopyStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFullConversation?), TypeInfoPropertyName = "NullablePrivateFullConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFullConversationVariant2Visibility?), TypeInfoPropertyName = "NullablePrivateFullConversationVariant2Visibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPrivateUserMessagePrivateAgentMessagePrivateContentFragmentPrivateCompactionMessage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageType?), TypeInfoPropertyName = "NullablePrivateUserMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageVisibility?), TypeInfoPropertyName = "NullablePrivateUserMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageType?), TypeInfoPropertyName = "NullablePrivateAgentMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageVisibility?), TypeInfoPropertyName = "NullablePrivateAgentMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageStatus?), TypeInfoPropertyName = "NullablePrivateAgentMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageModelResolutionMethod?), TypeInfoPropertyName = "NullablePrivateAgentMessageModelResolutionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageType?), TypeInfoPropertyName = "NullablePrivateLightAgentMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageVisibility?), TypeInfoPropertyName = "NullablePrivateLightAgentMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageStatus?), TypeInfoPropertyName = "NullablePrivateLightAgentMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod?), TypeInfoPropertyName = "NullablePrivateLightAgentMessageModelResolutionMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageActivityStepType?), TypeInfoPropertyName = "NullablePrivateLightAgentMessageActivityStepType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentType?), TypeInfoPropertyName = "NullablePrivateContentFragmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentVisibility?), TypeInfoPropertyName = "NullablePrivateContentFragmentVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentContentFragmentVersion?), TypeInfoPropertyName = "NullablePrivateContentFragmentContentFragmentVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentContentFragmentType?), TypeInfoPropertyName = "NullablePrivateContentFragmentContentFragmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateContentFragmentExpiredReason?), TypeInfoPropertyName = "NullablePrivateContentFragmentExpiredReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageType?), TypeInfoPropertyName = "NullablePrivateCompactionMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageVisibility?), TypeInfoPropertyName = "NullablePrivateCompactionMessageVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageStatus?), TypeInfoPropertyName = "NullablePrivateCompactionMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationStatus?), TypeInfoPropertyName = "NullablePrivateLightAgentConfigurationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationScope?), TypeInfoPropertyName = "NullablePrivateLightAgentConfigurationScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort?), TypeInfoPropertyName = "NullablePrivateLightAgentConfigurationModelReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFileWithUploadUrlStatus?), TypeInfoPropertyName = "NullablePrivateFileWithUploadUrlStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFileWithUploadUrlUseCase?), TypeInfoPropertyName = "NullablePrivateFileWithUploadUrlUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSpaceKind?), TypeInfoPropertyName = "NullablePrivateSpaceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateProject?), TypeInfoPropertyName = "NullablePrivateProject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewCategory?), TypeInfoPropertyName = "NullablePrivateDataSourceViewCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateDataSourceViewKind?), TypeInfoPropertyName = "NullablePrivateDataSourceViewKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMentionSuggestionType?), TypeInfoPropertyName = "NullablePrivateMentionSuggestionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateFeedbackThumbDirection?), TypeInfoPropertyName = "NullablePrivateFeedbackThumbDirection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPrivateWakeUpScheduleConfigVariant1PrivateWakeUpScheduleConfigVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type?), TypeInfoPropertyName = "NullablePrivateWakeUpScheduleConfigVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type?), TypeInfoPropertyName = "NullablePrivateWakeUpScheduleConfigVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpStatus?), TypeInfoPropertyName = "NullablePrivateWakeUpStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateMentionType?), TypeInfoPropertyName = "NullablePrivateMentionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateRichMentionWithStatusType?), TypeInfoPropertyName = "NullablePrivateRichMentionWithStatusType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateRichMentionWithStatusStatus?), TypeInfoPropertyName = "NullablePrivateRichMentionWithStatusStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageContextOrigin?), TypeInfoPropertyName = "NullablePrivateUserMessageContextOrigin2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationEvent?), TypeInfoPropertyName = "NullablePrivateConversationEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationEventDiscriminatorType?), TypeInfoPropertyName = "NullablePrivateConversationEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateUserMessageNewEventType?), TypeInfoPropertyName = "NullablePrivateUserMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageNewEventType?), TypeInfoPropertyName = "NullablePrivateAgentMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageDoneEventType?), TypeInfoPropertyName = "NullablePrivateAgentMessageDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageDoneEventStatus?), TypeInfoPropertyName = "NullablePrivateAgentMessageDoneEventStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType?), TypeInfoPropertyName = "NullablePrivateAgentMessageConsumptionUpdatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageNewEventType?), TypeInfoPropertyName = "NullablePrivateCompactionMessageNewEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateCompactionMessageDoneEventType?), TypeInfoPropertyName = "NullablePrivateCompactionMessageDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationForkPreparedEventType?), TypeInfoPropertyName = "NullablePrivateConversationForkPreparedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateConversationTitleEventType?), TypeInfoPropertyName = "NullablePrivateConversationTitleEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateWakeUpUpdatedEventType?), TypeInfoPropertyName = "NullablePrivateWakeUpUpdatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationEvent?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationCreatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationCreatedEventInvocationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationResultEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType?), TypeInfoPropertyName = "NullablePrivateSandboxFunctionInvocationErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageEvent?), TypeInfoPropertyName = "NullablePrivateAgentMessageEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType?), TypeInfoPropertyName = "NullablePrivateAgentMessageEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateGenerationTokensEventType?), TypeInfoPropertyName = "NullablePrivateGenerationTokensEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateGenerationTokensEventClassification?), TypeInfoPropertyName = "NullablePrivateGenerationTokensEventClassification2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolCallStartedEventType?), TypeInfoPropertyName = "NullablePrivateToolCallStartedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentActionSuccessEventType?), TypeInfoPropertyName = "NullablePrivateAgentActionSuccessEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMCPActionStatus?), TypeInfoPropertyName = "NullablePrivateAgentMCPActionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageSuccessEventType?), TypeInfoPropertyName = "NullablePrivateAgentMessageSuccessEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentErrorEventType?), TypeInfoPropertyName = "NullablePrivateAgentErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentGenerationCancelledEventType?), TypeInfoPropertyName = "NullablePrivateAgentGenerationCancelledEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolErrorEventType?), TypeInfoPropertyName = "NullablePrivateToolErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolParamsEventType?), TypeInfoPropertyName = "NullablePrivateToolParamsEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolApproveExecutionEventType?), TypeInfoPropertyName = "NullablePrivateToolApproveExecutionEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolNotificationEventType?), TypeInfoPropertyName = "NullablePrivateToolNotificationEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType?), TypeInfoPropertyName = "NullablePrivateToolPersonalAuthRequiredEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateToolFileAuthRequiredEventType?), TypeInfoPropertyName = "NullablePrivateToolFileAuthRequiredEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentContextPrunedEventType?), TypeInfoPropertyName = "NullablePrivateAgentContextPrunedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ContextAgenticMessageDataType?), TypeInfoPropertyName = "NullableContextAgenticMessageDataType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentConfigurationTagKind?), TypeInfoPropertyName = "NullableAgentConfigurationTagKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.RichMentionType?), TypeInfoPropertyName = "NullableRichMentionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ModelSelectionReasoningEffort?), TypeInfoPropertyName = "NullableModelSelectionReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SpaceKind?), TypeInfoPropertyName = "NullableSpaceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TableSchemaItemValueType?), TypeInfoPropertyName = "NullableTableSchemaItemValueType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DatasourceViewCategory?), TypeInfoPropertyName = "NullableDatasourceViewCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DatasourceViewKind?), TypeInfoPropertyName = "NullableDatasourceViewKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SkillStatus?), TypeInfoPropertyName = "NullableSkillStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SkillSource?), TypeInfoPropertyName = "NullableSkillSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SkillReinforcement?), TypeInfoPropertyName = "NullableSkillReinforcement2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SkillAvailability?), TypeInfoPropertyName = "NullableSkillAvailability2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewServerType?), TypeInfoPropertyName = "NullableMCPServerViewServerType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewServerAuthorizationSupportedUseCase?), TypeInfoPropertyName = "NullableMCPServerViewServerAuthorizationSupportedUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewOAuthUseCase?), TypeInfoPropertyName = "NullableMCPServerViewOAuthUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerKind?), TypeInfoPropertyName = "NullableTriggerKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerStatus?), TypeInfoPropertyName = "NullableTriggerStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TriggerExecutionMode?), TypeInfoPropertyName = "NullableTriggerExecutionMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope?), TypeInfoPropertyName = "NullablePatchWAssistantAgentConfigurationsRequestAgentScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind?), TypeInfoPropertyName = "NullablePatchWAssistantAgentConfigurationsRequestTagKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType?), TypeInfoPropertyName = "NullablePatchWAssistantAgentConfigurationsRequestToolsetItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope?), TypeInfoPropertyName = "NullableCreateWAssistantAgentConfigurationsImportRequestAgentScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind?), TypeInfoPropertyName = "NullableCreateWAssistantAgentConfigurationsImportRequestTagKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType?), TypeInfoPropertyName = "NullableCreateWAssistantAgentConfigurationsImportRequestToolsetItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPatchWAssistantConversationsRequestVariant1PatchWAssistantConversationsRequestVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSkillsRequestOnConflict?), TypeInfoPropertyName = "NullableCreateWSkillsRequestOnConflict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSkillsRequestAvailability?), TypeInfoPropertyName = "NullableCreateWSkillsRequestAvailability2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPatchWSpacesDataSourceViewsRequestVariant1PatchWSpacesDataSourceViewsRequestVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfStringDoubleBooleanCreateWSpacesDataSourcesTablesRowsRequestRowValue22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType?), TypeInfoPropertyName = "NullableCreateWSpacesDataSourcesTablesRowsRequestRowValueType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod?), TypeInfoPropertyName = "NullableCreateWAnalyticsConsumptionFacetsRequestPeriod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope?), TypeInfoPropertyName = "NullableCreateWAnalyticsConsumptionFacetsRequestScope2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension?), TypeInfoPropertyName = "NullableCreateWAnalyticsConsumptionFacetsRequestDimension2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsCancelRequestAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode?), TypeInfoPropertyName = "NullablePatchWAssistantConversationsRequestVariant4AccessMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsSelectedSpacesRequestMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsRequestVisibility?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsRequestVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesRequestUseCase?), TypeInfoPropertyName = "NullableCreateWFilesRequestUseCase2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference?), TypeInfoPropertyName = "NullablePatchWSpacesProjectNotificationPreferencesRequestPreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesRequestSpaceKind?), TypeInfoPropertyName = "NullableCreateWSpacesRequestSpaceKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType?), TypeInfoPropertyName = "NullableCreateWorkosAuthenticateRequestGrantType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAnalyticsExportTable?), TypeInfoPropertyName = "NullableGetWAnalyticsExportTable2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAnalyticsExportFormat?), TypeInfoPropertyName = "NullableGetWAnalyticsExportFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsView?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsView2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsWithAuthors2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsVariant?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsVariant2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem?), TypeInfoPropertyName = "NullableGetWAssistantConversationsMentionsSuggestionsSelectItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsSelectItem?), TypeInfoPropertyName = "NullableGetWAssistantMentionsSuggestionsSelectItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSearchViewType?), TypeInfoPropertyName = "NullableGetWSearchViewType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSkillsStatus?), TypeInfoPropertyName = "NullableGetWSkillsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSkillsAvailabilityItem?), TypeInfoPropertyName = "NullableGetWSkillsAvailabilityItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWTriggersKind?), TypeInfoPropertyName = "NullableGetWTriggersKind2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsView2?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsView22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsWithUsage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsWithAuthors22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsWithFeedbacks2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors?), TypeInfoPropertyName = "NullableGetWAssistantAgentConfigurationsWithEditors2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect?), TypeInfoPropertyName = "NullableGetWAssistantMentionsSuggestionsSelect2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent?), TypeInfoPropertyName = "NullableGetWAssistantMentionsSuggestionsCurrent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWFilesVersion?), TypeInfoPropertyName = "NullableGetWFilesVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWFilesAction?), TypeInfoPropertyName = "NullableGetWFilesAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWSpacesDataSourceViewsForce?), TypeInfoPropertyName = "NullableDeleteWSpacesDataSourceViewsForce2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsCategory?), TypeInfoPropertyName = "NullableGetWSpacesDataSourceViewsCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails?), TypeInfoPropertyName = "NullableGetWSpacesDataSourceViewsWithDetails2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy?), TypeInfoPropertyName = "NullableGetWSpacesDataSourceViewsIncludeEditedBy2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesIncludeAllMembers?), TypeInfoPropertyName = "NullableGetWSpacesIncludeAllMembers2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWSpacesForce?), TypeInfoPropertyName = "NullableDeleteWSpacesForce2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesKindItem?), TypeInfoPropertyName = "NullableGetWSpacesKindItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection?), TypeInfoPropertyName = "NullableGetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus?), TypeInfoPropertyName = "NullableGetWAssistantConversationsMessagesActionsResponseMessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPrivateUserMessagePrivateAgentMessagePrivateContentFragment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPrivateUserMessagePrivateLightAgentMessagePrivateContentFragment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf?), TypeInfoPropertyName = "NullableAllOfPrivateSpaceGetWAssistantConversationsSelectableSpacesResponseSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf?), TypeInfoPropertyName = "NullableAllOfPrivateSpaceCreateWAssistantConversationsSelectedSpacesResponseSelectedSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AllOf?), TypeInfoPropertyName = "NullableAllOfPrivateSpaceGetWSpacesResponseSpace2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponseSpaceGroupRole?), TypeInfoPropertyName = "NullableGetWSpacesResponseSpaceGroupRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?), TypeInfoPropertyName = "NullableGetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?), TypeInfoPropertyName = "NullablePatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPrivateSpacePrivateProject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] @@ -846,12 +450,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -869,2208 +470,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static SourceGenerationContext Default { get; } = new(DefaultOptions); - - private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::Dust.JsonConverters.PrivateFullConversationJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.PrivateProjectJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.PrivateConversationEventJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationEventJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.PrivateAgentMessageEventJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Dust.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::Dust.PrivateConsumptionFacetScope) - - || typeToConvert == typeof(global::Dust.PrivateConsumptionFacetScope?) - - || typeToConvert == typeof(global::Dust.PrivateConsumptionFacetTier) - - || typeToConvert == typeof(global::Dust.PrivateConsumptionFacetTier?) - - || typeToConvert == typeof(global::Dust.PrivateUserProvider) - - || typeToConvert == typeof(global::Dust.PrivateUserProvider?) - - || typeToConvert == typeof(global::Dust.PrivateWorkspaceRole) - - || typeToConvert == typeof(global::Dust.PrivateWorkspaceRole?) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkUserProvider) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkUserProvider?) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus?) - - || typeToConvert == typeof(global::Dust.PrivateFullConversationVariant2Visibility) - - || typeToConvert == typeof(global::Dust.PrivateFullConversationVariant2Visibility?) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageType) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageType?) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageVisibility) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageVisibility?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageVisibility) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageVisibility?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageStatus) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageStatus?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageModelResolutionMethod) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageModelResolutionMethod?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageType) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageType?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageVisibility) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageVisibility?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageStatus) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageStatus?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageActivityStepType) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentMessageActivityStepType?) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentType) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentType?) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentVisibility) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentVisibility?) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentVersion) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentVersion?) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentType) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentType?) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentExpiredReason) - - || typeToConvert == typeof(global::Dust.PrivateContentFragmentExpiredReason?) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageType) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageType?) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageVisibility) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageVisibility?) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageStatus) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageStatus?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationStatus) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationStatus?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationScope) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationScope?) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort) - - || typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort?) - - || typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlStatus) - - || typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlStatus?) - - || typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlUseCase) - - || typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlUseCase?) - - || typeToConvert == typeof(global::Dust.PrivateSpaceKind) - - || typeToConvert == typeof(global::Dust.PrivateSpaceKind?) - - || typeToConvert == typeof(global::Dust.PrivateDataSourceViewCategory) - - || typeToConvert == typeof(global::Dust.PrivateDataSourceViewCategory?) - - || typeToConvert == typeof(global::Dust.PrivateDataSourceViewKind) - - || typeToConvert == typeof(global::Dust.PrivateDataSourceViewKind?) - - || typeToConvert == typeof(global::Dust.PrivateMentionSuggestionType) - - || typeToConvert == typeof(global::Dust.PrivateMentionSuggestionType?) - - || typeToConvert == typeof(global::Dust.PrivateFeedbackThumbDirection) - - || typeToConvert == typeof(global::Dust.PrivateFeedbackThumbDirection?) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type?) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type?) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpStatus) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpStatus?) - - || typeToConvert == typeof(global::Dust.PrivateMentionType) - - || typeToConvert == typeof(global::Dust.PrivateMentionType?) - - || typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusType) - - || typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusType?) - - || typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusStatus) - - || typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusStatus?) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageContextOrigin) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageContextOrigin?) - - || typeToConvert == typeof(global::Dust.PrivateConversationEventDiscriminatorType) - - || typeToConvert == typeof(global::Dust.PrivateConversationEventDiscriminatorType?) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageNewEventType) - - || typeToConvert == typeof(global::Dust.PrivateUserMessageNewEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageNewEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageNewEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventStatus) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventStatus?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType?) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageNewEventType) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageNewEventType?) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageDoneEventType) - - || typeToConvert == typeof(global::Dust.PrivateCompactionMessageDoneEventType?) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkPreparedEventType) - - || typeToConvert == typeof(global::Dust.PrivateConversationForkPreparedEventType?) - - || typeToConvert == typeof(global::Dust.PrivateConversationTitleEventType) - - || typeToConvert == typeof(global::Dust.PrivateConversationTitleEventType?) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpUpdatedEventType) - - || typeToConvert == typeof(global::Dust.PrivateWakeUpUpdatedEventType?) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType?) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType?) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus?) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType?) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType) - - || typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType?) - - || typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventType) - - || typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventType?) - - || typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventClassification) - - || typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventClassification?) - - || typeToConvert == typeof(global::Dust.PrivateToolCallStartedEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolCallStartedEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentActionSuccessEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentActionSuccessEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMCPActionStatus) - - || typeToConvert == typeof(global::Dust.PrivateAgentMCPActionStatus?) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageSuccessEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentMessageSuccessEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentErrorEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentErrorEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentGenerationCancelledEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentGenerationCancelledEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolErrorEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolErrorEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolParamsEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolParamsEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolApproveExecutionEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolApproveExecutionEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolNotificationEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolNotificationEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType?) - - || typeToConvert == typeof(global::Dust.PrivateToolFileAuthRequiredEventType) - - || typeToConvert == typeof(global::Dust.PrivateToolFileAuthRequiredEventType?) - - || typeToConvert == typeof(global::Dust.PrivateAgentContextPrunedEventType) - - || typeToConvert == typeof(global::Dust.PrivateAgentContextPrunedEventType?) - - || typeToConvert == typeof(global::Dust.ContextAgenticMessageDataType) - - || typeToConvert == typeof(global::Dust.ContextAgenticMessageDataType?) - - || typeToConvert == typeof(global::Dust.AgentConfigurationTagKind) - - || typeToConvert == typeof(global::Dust.AgentConfigurationTagKind?) - - || typeToConvert == typeof(global::Dust.RichMentionType) - - || typeToConvert == typeof(global::Dust.RichMentionType?) - - || typeToConvert == typeof(global::Dust.ModelSelectionReasoningEffort) - - || typeToConvert == typeof(global::Dust.ModelSelectionReasoningEffort?) - - || typeToConvert == typeof(global::Dust.SpaceKind) - - || typeToConvert == typeof(global::Dust.SpaceKind?) - - || typeToConvert == typeof(global::Dust.TableSchemaItemValueType) - - || typeToConvert == typeof(global::Dust.TableSchemaItemValueType?) - - || typeToConvert == typeof(global::Dust.DatasourceViewCategory) - - || typeToConvert == typeof(global::Dust.DatasourceViewCategory?) - - || typeToConvert == typeof(global::Dust.DatasourceViewKind) - - || typeToConvert == typeof(global::Dust.DatasourceViewKind?) - - || typeToConvert == typeof(global::Dust.SkillStatus) - - || typeToConvert == typeof(global::Dust.SkillStatus?) - - || typeToConvert == typeof(global::Dust.SkillSource) - - || typeToConvert == typeof(global::Dust.SkillSource?) - - || typeToConvert == typeof(global::Dust.SkillReinforcement) - - || typeToConvert == typeof(global::Dust.SkillReinforcement?) - - || typeToConvert == typeof(global::Dust.SkillAvailability) - - || typeToConvert == typeof(global::Dust.SkillAvailability?) - - || typeToConvert == typeof(global::Dust.MCPServerViewServerType) - - || typeToConvert == typeof(global::Dust.MCPServerViewServerType?) - - || typeToConvert == typeof(global::Dust.MCPServerViewServerAuthorizationSupportedUseCase) - - || typeToConvert == typeof(global::Dust.MCPServerViewServerAuthorizationSupportedUseCase?) - - || typeToConvert == typeof(global::Dust.MCPServerViewOAuthUseCase) - - || typeToConvert == typeof(global::Dust.MCPServerViewOAuthUseCase?) - - || typeToConvert == typeof(global::Dust.TriggerKind) - - || typeToConvert == typeof(global::Dust.TriggerKind?) - - || typeToConvert == typeof(global::Dust.TriggerStatus) - - || typeToConvert == typeof(global::Dust.TriggerStatus?) - - || typeToConvert == typeof(global::Dust.TriggerExecutionMode) - - || typeToConvert == typeof(global::Dust.TriggerExecutionMode?) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope?) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind?) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType) - - || typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType) - - || typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection?) - - || typeToConvert == typeof(global::Dust.CreateWSkillsRequestOnConflict) - - || typeToConvert == typeof(global::Dust.CreateWSkillsRequestOnConflict?) - - || typeToConvert == typeof(global::Dust.CreateWSkillsRequestAvailability) - - || typeToConvert == typeof(global::Dust.CreateWSkillsRequestAvailability?) - - || typeToConvert == typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType) - - || typeToConvert == typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType?) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod?) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope?) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension) - - || typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction?) - - || typeToConvert == typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode) - - || typeToConvert == typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode?) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsRequestVisibility) - - || typeToConvert == typeof(global::Dust.CreateWAssistantConversationsRequestVisibility?) - - || typeToConvert == typeof(global::Dust.CreateWFilesRequestUseCase) - - || typeToConvert == typeof(global::Dust.CreateWFilesRequestUseCase?) - - || typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference) - - || typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference?) - - || typeToConvert == typeof(global::Dust.CreateWSpacesRequestSpaceKind) - - || typeToConvert == typeof(global::Dust.CreateWSpacesRequestSpaceKind?) - - || typeToConvert == typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType) - - || typeToConvert == typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType?) - - || typeToConvert == typeof(global::Dust.GetWAnalyticsExportTable) - - || typeToConvert == typeof(global::Dust.GetWAnalyticsExportTable?) - - || typeToConvert == typeof(global::Dust.GetWAnalyticsExportFormat) - - || typeToConvert == typeof(global::Dust.GetWAnalyticsExportFormat?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsVariant) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsVariant?) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem?) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelectItem) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelectItem?) - - || typeToConvert == typeof(global::Dust.GetWSearchViewType) - - || typeToConvert == typeof(global::Dust.GetWSearchViewType?) - - || typeToConvert == typeof(global::Dust.GetWSkillsStatus) - - || typeToConvert == typeof(global::Dust.GetWSkillsStatus?) - - || typeToConvert == typeof(global::Dust.GetWSkillsAvailabilityItem) - - || typeToConvert == typeof(global::Dust.GetWSkillsAvailabilityItem?) - - || typeToConvert == typeof(global::Dust.GetWTriggersKind) - - || typeToConvert == typeof(global::Dust.GetWTriggersKind?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView2) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView2?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks?) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors) - - || typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors?) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect?) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent) - - || typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent?) - - || typeToConvert == typeof(global::Dust.GetWFilesVersion) - - || typeToConvert == typeof(global::Dust.GetWFilesVersion?) - - || typeToConvert == typeof(global::Dust.GetWFilesAction) - - || typeToConvert == typeof(global::Dust.GetWFilesAction?) - - || typeToConvert == typeof(global::Dust.DeleteWSpacesDataSourceViewsForce) - - || typeToConvert == typeof(global::Dust.DeleteWSpacesDataSourceViewsForce?) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsCategory) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsCategory?) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails?) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy) - - || typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy?) - - || typeToConvert == typeof(global::Dust.GetWSpacesIncludeAllMembers) - - || typeToConvert == typeof(global::Dust.GetWSpacesIncludeAllMembers?) - - || typeToConvert == typeof(global::Dust.DeleteWSpacesForce) - - || typeToConvert == typeof(global::Dust.DeleteWSpacesForce?) - - || typeToConvert == typeof(global::Dust.GetWSpacesKindItem) - - || typeToConvert == typeof(global::Dust.GetWSpacesKindItem?) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection?) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus) - - || typeToConvert == typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus?) - - || typeToConvert == typeof(global::Dust.GetWSpacesResponseSpaceGroupRole) - - || typeToConvert == typeof(global::Dust.GetWSpacesResponseSpaceGroupRole?) - - || typeToConvert == typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference) - - || typeToConvert == typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?) - - || typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference) - - || typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::Dust.PrivateConsumptionFacetScope)) - { - return new global::Dust.JsonConverters.PrivateConsumptionFacetScopeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConsumptionFacetScope?)) - { - return new global::Dust.JsonConverters.PrivateConsumptionFacetScopeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConsumptionFacetTier)) - { - return new global::Dust.JsonConverters.PrivateConsumptionFacetTierJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConsumptionFacetTier?)) - { - return new global::Dust.JsonConverters.PrivateConsumptionFacetTierNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserProvider)) - { - return new global::Dust.JsonConverters.PrivateUserProviderJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserProvider?)) - { - return new global::Dust.JsonConverters.PrivateUserProviderNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWorkspaceRole)) - { - return new global::Dust.JsonConverters.PrivateWorkspaceRoleJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWorkspaceRole?)) - { - return new global::Dust.JsonConverters.PrivateWorkspaceRoleNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkUserProvider)) - { - return new global::Dust.JsonConverters.PrivateConversationForkUserProviderJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkUserProvider?)) - { - return new global::Dust.JsonConverters.PrivateConversationForkUserProviderNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus)) - { - return new global::Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkedFromFileCopyStatus?)) - { - return new global::Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFullConversationVariant2Visibility)) - { - return new global::Dust.JsonConverters.PrivateFullConversationVariant2VisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFullConversationVariant2Visibility?)) - { - return new global::Dust.JsonConverters.PrivateFullConversationVariant2VisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageType)) - { - return new global::Dust.JsonConverters.PrivateUserMessageTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageType?)) - { - return new global::Dust.JsonConverters.PrivateUserMessageTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageVisibility)) - { - return new global::Dust.JsonConverters.PrivateUserMessageVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageVisibility?)) - { - return new global::Dust.JsonConverters.PrivateUserMessageVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageVisibility)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageVisibility?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageStatus)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageStatus?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageModelResolutionMethod)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageModelResolutionMethod?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageType)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageType?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageVisibility)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageVisibility?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageStatus)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageStatus?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageModelResolutionMethod?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageActivityStepType)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentMessageActivityStepType?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentType)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentType?)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentVisibility)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentVisibility?)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentVersion)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentVersion?)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentType)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentContentFragmentType?)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentExpiredReason)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentExpiredReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateContentFragmentExpiredReason?)) - { - return new global::Dust.JsonConverters.PrivateContentFragmentExpiredReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageType)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageType?)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageVisibility)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageVisibility?)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageStatus)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageStatus?)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationStatus)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationStatus?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationScope)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationScopeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationScope?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationScopeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort?)) - { - return new global::Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlStatus)) - { - return new global::Dust.JsonConverters.PrivateFileWithUploadUrlStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlStatus?)) - { - return new global::Dust.JsonConverters.PrivateFileWithUploadUrlStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlUseCase)) - { - return new global::Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFileWithUploadUrlUseCase?)) - { - return new global::Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSpaceKind)) - { - return new global::Dust.JsonConverters.PrivateSpaceKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSpaceKind?)) - { - return new global::Dust.JsonConverters.PrivateSpaceKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateDataSourceViewCategory)) - { - return new global::Dust.JsonConverters.PrivateDataSourceViewCategoryJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateDataSourceViewCategory?)) - { - return new global::Dust.JsonConverters.PrivateDataSourceViewCategoryNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateDataSourceViewKind)) - { - return new global::Dust.JsonConverters.PrivateDataSourceViewKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateDataSourceViewKind?)) - { - return new global::Dust.JsonConverters.PrivateDataSourceViewKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateMentionSuggestionType)) - { - return new global::Dust.JsonConverters.PrivateMentionSuggestionTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateMentionSuggestionType?)) - { - return new global::Dust.JsonConverters.PrivateMentionSuggestionTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFeedbackThumbDirection)) - { - return new global::Dust.JsonConverters.PrivateFeedbackThumbDirectionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateFeedbackThumbDirection?)) - { - return new global::Dust.JsonConverters.PrivateFeedbackThumbDirectionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type)) - { - return new global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1Type?)) - { - return new global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type)) - { - return new global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2Type?)) - { - return new global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpStatus)) - { - return new global::Dust.JsonConverters.PrivateWakeUpStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpStatus?)) - { - return new global::Dust.JsonConverters.PrivateWakeUpStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateMentionType)) - { - return new global::Dust.JsonConverters.PrivateMentionTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateMentionType?)) - { - return new global::Dust.JsonConverters.PrivateMentionTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusType)) - { - return new global::Dust.JsonConverters.PrivateRichMentionWithStatusTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusType?)) - { - return new global::Dust.JsonConverters.PrivateRichMentionWithStatusTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusStatus)) - { - return new global::Dust.JsonConverters.PrivateRichMentionWithStatusStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateRichMentionWithStatusStatus?)) - { - return new global::Dust.JsonConverters.PrivateRichMentionWithStatusStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageContextOrigin)) - { - return new global::Dust.JsonConverters.PrivateUserMessageContextOriginJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageContextOrigin?)) - { - return new global::Dust.JsonConverters.PrivateUserMessageContextOriginNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationEventDiscriminatorType)) - { - return new global::Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationEventDiscriminatorType?)) - { - return new global::Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageNewEventType)) - { - return new global::Dust.JsonConverters.PrivateUserMessageNewEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateUserMessageNewEventType?)) - { - return new global::Dust.JsonConverters.PrivateUserMessageNewEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageNewEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageNewEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageNewEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageNewEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageDoneEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageDoneEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventStatus)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageDoneEventStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageDoneEventStatus?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageDoneEventStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageNewEventType)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageNewEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageNewEventType?)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageNewEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageDoneEventType)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateCompactionMessageDoneEventType?)) - { - return new global::Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkPreparedEventType)) - { - return new global::Dust.JsonConverters.PrivateConversationForkPreparedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationForkPreparedEventType?)) - { - return new global::Dust.JsonConverters.PrivateConversationForkPreparedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationTitleEventType)) - { - return new global::Dust.JsonConverters.PrivateConversationTitleEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateConversationTitleEventType?)) - { - return new global::Dust.JsonConverters.PrivateConversationTitleEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpUpdatedEventType)) - { - return new global::Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateWakeUpUpdatedEventType?)) - { - return new global::Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType?)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventType?)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus?)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventType?)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventType?)) - { - return new global::Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageEventDiscriminatorType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventType)) - { - return new global::Dust.JsonConverters.PrivateGenerationTokensEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventType?)) - { - return new global::Dust.JsonConverters.PrivateGenerationTokensEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventClassification)) - { - return new global::Dust.JsonConverters.PrivateGenerationTokensEventClassificationJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateGenerationTokensEventClassification?)) - { - return new global::Dust.JsonConverters.PrivateGenerationTokensEventClassificationNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolCallStartedEventType)) - { - return new global::Dust.JsonConverters.PrivateToolCallStartedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolCallStartedEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolCallStartedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentActionSuccessEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentActionSuccessEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentActionSuccessEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentActionSuccessEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMCPActionStatus)) - { - return new global::Dust.JsonConverters.PrivateAgentMCPActionStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMCPActionStatus?)) - { - return new global::Dust.JsonConverters.PrivateAgentMCPActionStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageSuccessEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentMessageSuccessEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentErrorEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentErrorEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentErrorEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentErrorEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentGenerationCancelledEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentGenerationCancelledEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolErrorEventType)) - { - return new global::Dust.JsonConverters.PrivateToolErrorEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolErrorEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolErrorEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolParamsEventType)) - { - return new global::Dust.JsonConverters.PrivateToolParamsEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolParamsEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolParamsEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolApproveExecutionEventType)) - { - return new global::Dust.JsonConverters.PrivateToolApproveExecutionEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolApproveExecutionEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolApproveExecutionEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolNotificationEventType)) - { - return new global::Dust.JsonConverters.PrivateToolNotificationEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolNotificationEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolNotificationEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType)) - { - return new global::Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolPersonalAuthRequiredEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolFileAuthRequiredEventType)) - { - return new global::Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateToolFileAuthRequiredEventType?)) - { - return new global::Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentContextPrunedEventType)) - { - return new global::Dust.JsonConverters.PrivateAgentContextPrunedEventTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PrivateAgentContextPrunedEventType?)) - { - return new global::Dust.JsonConverters.PrivateAgentContextPrunedEventTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.ContextAgenticMessageDataType)) - { - return new global::Dust.JsonConverters.ContextAgenticMessageDataTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.ContextAgenticMessageDataType?)) - { - return new global::Dust.JsonConverters.ContextAgenticMessageDataTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.AgentConfigurationTagKind)) - { - return new global::Dust.JsonConverters.AgentConfigurationTagKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.AgentConfigurationTagKind?)) - { - return new global::Dust.JsonConverters.AgentConfigurationTagKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.RichMentionType)) - { - return new global::Dust.JsonConverters.RichMentionTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.RichMentionType?)) - { - return new global::Dust.JsonConverters.RichMentionTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.ModelSelectionReasoningEffort)) - { - return new global::Dust.JsonConverters.ModelSelectionReasoningEffortJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.ModelSelectionReasoningEffort?)) - { - return new global::Dust.JsonConverters.ModelSelectionReasoningEffortNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SpaceKind)) - { - return new global::Dust.JsonConverters.SpaceKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SpaceKind?)) - { - return new global::Dust.JsonConverters.SpaceKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TableSchemaItemValueType)) - { - return new global::Dust.JsonConverters.TableSchemaItemValueTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TableSchemaItemValueType?)) - { - return new global::Dust.JsonConverters.TableSchemaItemValueTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DatasourceViewCategory)) - { - return new global::Dust.JsonConverters.DatasourceViewCategoryJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DatasourceViewCategory?)) - { - return new global::Dust.JsonConverters.DatasourceViewCategoryNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DatasourceViewKind)) - { - return new global::Dust.JsonConverters.DatasourceViewKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DatasourceViewKind?)) - { - return new global::Dust.JsonConverters.DatasourceViewKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillStatus)) - { - return new global::Dust.JsonConverters.SkillStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillStatus?)) - { - return new global::Dust.JsonConverters.SkillStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillSource)) - { - return new global::Dust.JsonConverters.SkillSourceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillSource?)) - { - return new global::Dust.JsonConverters.SkillSourceNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillReinforcement)) - { - return new global::Dust.JsonConverters.SkillReinforcementJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillReinforcement?)) - { - return new global::Dust.JsonConverters.SkillReinforcementNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillAvailability)) - { - return new global::Dust.JsonConverters.SkillAvailabilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.SkillAvailability?)) - { - return new global::Dust.JsonConverters.SkillAvailabilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewServerType)) - { - return new global::Dust.JsonConverters.MCPServerViewServerTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewServerType?)) - { - return new global::Dust.JsonConverters.MCPServerViewServerTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewServerAuthorizationSupportedUseCase)) - { - return new global::Dust.JsonConverters.MCPServerViewServerAuthorizationSupportedUseCaseJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewServerAuthorizationSupportedUseCase?)) - { - return new global::Dust.JsonConverters.MCPServerViewServerAuthorizationSupportedUseCaseNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewOAuthUseCase)) - { - return new global::Dust.JsonConverters.MCPServerViewOAuthUseCaseJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.MCPServerViewOAuthUseCase?)) - { - return new global::Dust.JsonConverters.MCPServerViewOAuthUseCaseNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerKind)) - { - return new global::Dust.JsonConverters.TriggerKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerKind?)) - { - return new global::Dust.JsonConverters.TriggerKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerStatus)) - { - return new global::Dust.JsonConverters.TriggerStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerStatus?)) - { - return new global::Dust.JsonConverters.TriggerStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerExecutionMode)) - { - return new global::Dust.JsonConverters.TriggerExecutionModeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.TriggerExecutionMode?)) - { - return new global::Dust.JsonConverters.TriggerExecutionModeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestAgentScopeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope?)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestAgentScopeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestTagKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind?)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestTagKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestToolsetItemTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType?)) - { - return new global::Dust.JsonConverters.PatchWAssistantAgentConfigurationsRequestToolsetItemTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestAgentScopeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope?)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestAgentScopeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestTagKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind?)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestTagKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestToolsetItemTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType?)) - { - return new global::Dust.JsonConverters.CreateWAssistantAgentConfigurationsImportRequestToolsetItemTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirectionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection?)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirectionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSkillsRequestOnConflict)) - { - return new global::Dust.JsonConverters.CreateWSkillsRequestOnConflictJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSkillsRequestOnConflict?)) - { - return new global::Dust.JsonConverters.CreateWSkillsRequestOnConflictNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSkillsRequestAvailability)) - { - return new global::Dust.JsonConverters.CreateWSkillsRequestAvailabilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSkillsRequestAvailability?)) - { - return new global::Dust.JsonConverters.CreateWSkillsRequestAvailabilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType)) - { - return new global::Dust.JsonConverters.CreateWSpacesDataSourcesTablesRowsRequestRowValueTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType?)) - { - return new global::Dust.JsonConverters.CreateWSpacesDataSourcesTablesRowsRequestRowValueTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod?)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope?)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimensionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension?)) - { - return new global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestDimensionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsCancelRequestAction?)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode)) - { - return new global::Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode?)) - { - return new global::Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2JsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2?)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode?)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsRequestVisibility)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWAssistantConversationsRequestVisibility?)) - { - return new global::Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWFilesRequestUseCase)) - { - return new global::Dust.JsonConverters.CreateWFilesRequestUseCaseJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWFilesRequestUseCase?)) - { - return new global::Dust.JsonConverters.CreateWFilesRequestUseCaseNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference)) - { - return new global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference?)) - { - return new global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSpacesRequestSpaceKind)) - { - return new global::Dust.JsonConverters.CreateWSpacesRequestSpaceKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWSpacesRequestSpaceKind?)) - { - return new global::Dust.JsonConverters.CreateWSpacesRequestSpaceKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType)) - { - return new global::Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.CreateWorkosAuthenticateRequestGrantType?)) - { - return new global::Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAnalyticsExportTable)) - { - return new global::Dust.JsonConverters.GetWAnalyticsExportTableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAnalyticsExportTable?)) - { - return new global::Dust.JsonConverters.GetWAnalyticsExportTableNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAnalyticsExportFormat)) - { - return new global::Dust.JsonConverters.GetWAnalyticsExportFormatJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAnalyticsExportFormat?)) - { - return new global::Dust.JsonConverters.GetWAnalyticsExportFormatNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsViewJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsViewNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthorsJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthorsNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsVariant)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsVariantJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsVariant?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsVariantNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsMentionsSuggestionsSelectItemJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem?)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsMentionsSuggestionsSelectItemNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelectItem)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectItemJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelectItem?)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectItemNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSearchViewType)) - { - return new global::Dust.JsonConverters.GetWSearchViewTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSearchViewType?)) - { - return new global::Dust.JsonConverters.GetWSearchViewTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSkillsStatus)) - { - return new global::Dust.JsonConverters.GetWSkillsStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSkillsStatus?)) - { - return new global::Dust.JsonConverters.GetWSkillsStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSkillsAvailabilityItem)) - { - return new global::Dust.JsonConverters.GetWSkillsAvailabilityItemJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSkillsAvailabilityItem?)) - { - return new global::Dust.JsonConverters.GetWSkillsAvailabilityItemNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWTriggersKind)) - { - return new global::Dust.JsonConverters.GetWTriggersKindJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWTriggersKind?)) - { - return new global::Dust.JsonConverters.GetWTriggersKindNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView2)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsView2JsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsView2?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsView2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsageJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithUsage?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithUsageNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2JsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithAuthors2?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithAuthors2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacksJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithFeedbacksNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditorsJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantAgentConfigurationsWithEditors?)) - { - return new global::Dust.JsonConverters.GetWAssistantAgentConfigurationsWithEditorsNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsSelect?)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsSelectNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrentJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantMentionsSuggestionsCurrent?)) - { - return new global::Dust.JsonConverters.GetWAssistantMentionsSuggestionsCurrentNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWFilesVersion)) - { - return new global::Dust.JsonConverters.GetWFilesVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWFilesVersion?)) - { - return new global::Dust.JsonConverters.GetWFilesVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWFilesAction)) - { - return new global::Dust.JsonConverters.GetWFilesActionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWFilesAction?)) - { - return new global::Dust.JsonConverters.GetWFilesActionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DeleteWSpacesDataSourceViewsForce)) - { - return new global::Dust.JsonConverters.DeleteWSpacesDataSourceViewsForceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DeleteWSpacesDataSourceViewsForce?)) - { - return new global::Dust.JsonConverters.DeleteWSpacesDataSourceViewsForceNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsCategory)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsCategoryJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsCategory?)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsCategoryNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetailsJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsWithDetails?)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsWithDetailsNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedByJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy?)) - { - return new global::Dust.JsonConverters.GetWSpacesDataSourceViewsIncludeEditedByNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesIncludeAllMembers)) - { - return new global::Dust.JsonConverters.GetWSpacesIncludeAllMembersJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesIncludeAllMembers?)) - { - return new global::Dust.JsonConverters.GetWSpacesIncludeAllMembersNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DeleteWSpacesForce)) - { - return new global::Dust.JsonConverters.DeleteWSpacesForceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.DeleteWSpacesForce?)) - { - return new global::Dust.JsonConverters.DeleteWSpacesForceNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesKindItem)) - { - return new global::Dust.JsonConverters.GetWSpacesKindItemJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesKindItem?)) - { - return new global::Dust.JsonConverters.GetWSpacesKindItemNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirectionJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection?)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirectionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus?)) - { - return new global::Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesResponseSpaceGroupRole)) - { - return new global::Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesResponseSpaceGroupRole?)) - { - return new global::Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)) - { - return new global::Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?)) - { - return new global::Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference)) - { - return new global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter(); - } - - if (typeToConvert == typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference?)) - { - return new global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - - 1 => new SourceGenerationContextChunk1(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } } } \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs b/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs index 01f03b3..768a8e8 100644 --- a/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs @@ -33,7 +33,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Dust.PrivateConsumptionFacet? Type0 { get; set; } + public global::Dust.Section? Type0 { get; set; } /// /// /// @@ -41,2372 +41,944 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public int? Type2 { get; set; } + public global::System.Collections.Generic.IList? Type2 { get; set; } /// /// /// - public bool? Type3 { get; set; } + public global::Dust.User? Type3 { get; set; } /// /// /// - public global::Dust.PrivateConsumptionFacetScope? Type4 { get; set; } + public int? Type4 { get; set; } /// /// /// - public global::Dust.PrivateConsumptionFacetTier? Type5 { get; set; } + public global::Dust.Workspace? Type5 { get; set; } /// /// /// - public global::Dust.PrivateUser? Type6 { get; set; } + public global::System.Collections.Generic.IList? Type6 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type7 { get; set; } + public bool? Type7 { get; set; } /// /// /// - public global::Dust.PrivateUserProvider? Type8 { get; set; } + public global::Dust.Context? Type8 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type9 { get; set; } + public global::Dust.ContextAgenticMessageData? Type9 { get; set; } /// /// /// - public global::Dust.PrivateWorkspace? Type10 { get; set; } + public global::Dust.ContextAgenticMessageDataType? Type10 { get; set; } /// /// /// - public global::Dust.PrivateWorkspaceRole? Type11 { get; set; } + public global::Dust.AgentConfiguration? Type11 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type12 { get; set; } + public global::Dust.AgentConfigurationModel? Type12 { get; set; } /// /// /// - public object? Type13 { get; set; } + public double? Type13 { get; set; } /// /// /// - public global::Dust.PrivateConversationConsumptionToolDetails? Type14 { get; set; } + public byte[]? Type14 { get; set; } /// /// /// - public double? Type15 { get; set; } + public global::System.Collections.Generic.IList? Type15 { get; set; } /// /// /// - public global::Dust.PrivateConversationConsumptionModelDetails? Type16 { get; set; } + public global::Dust.AgentSkill? Type16 { get; set; } /// /// /// - public global::Dust.PrivateConversationConsumptionAgentDetails? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type18 { get; set; } + public global::Dust.AgentConfigurationTag? Type18 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type19 { get; set; } + public global::Dust.AgentConfigurationTagKind? Type19 { get; set; } /// /// /// - public global::Dust.PrivateConversationConsumptionDetails? Type20 { get; set; } + public global::Dust.Conversation? Type20 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type21 { get; set; } + public global::Dust.ConversationConversation1? Type21 { get; set; } /// /// /// - public global::Dust.PrivateConversation? Type22 { get; set; } + public global::System.Collections.Generic.IList>? Type22 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkingData? Type23 { get; set; } + public global::System.Collections.Generic.IList? Type23 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkUser? Type24 { get; set; } + public global::Dust.ConversationConversation1ContentItemItem? Type24 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkUserProvider? Type25 { get; set; } + public global::System.Collections.Generic.IList? Type25 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkedFrom? Type26 { get; set; } + public global::Dust.Mention? Type26 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkedFromFileCopyStatus? Type27 { get; set; } + public global::System.Collections.Generic.IList? Type27 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkedChild? Type28 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemAction? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public global::System.Collections.Generic.IList? Type29 { get; set; } /// /// /// - public global::Dust.PrivateFullConversation? Type30 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemActionGeneratedFile? Type30 { get; set; } /// /// /// - public global::Dust.PrivateFullConversationVariant2? Type31 { get; set; } + public global::System.Collections.Generic.IList? Type31 { get; set; } /// /// /// - public global::Dust.PrivateFullConversationVariant2Visibility? Type32 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemRawContent? Type32 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>>? Type33 { get; set; } + public global::Dust.RichMention? Type33 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type34 { get; set; } + public global::Dust.RichMentionType? Type34 { get; set; } /// /// /// - public global::Dust.OneOf? Type35 { get; set; } + public global::Dust.Message? Type35 { get; set; } /// /// /// - public global::Dust.PrivateUserMessage? Type36 { get; set; } + public global::Dust.ModelSelection? Type36 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessage? Type37 { get; set; } + public global::Dust.ModelSelectionReasoningEffort? Type37 { get; set; } /// /// /// - public global::Dust.PrivateContentFragment? Type38 { get; set; } + public global::Dust.ContentFragment? Type38 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessage? Type39 { get; set; } + public global::Dust.Space? Type39 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageType? Type40 { get; set; } + public global::Dust.SpaceKind? Type40 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageVisibility? Type41 { get; set; } + public global::Dust.Datasource? Type41 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageUser? Type42 { get; set; } + public global::Dust.Table? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::System.Collections.Generic.IList? Type43 { get; set; } /// /// /// - public global::Dust.PrivateMention? Type44 { get; set; } + public global::Dust.TableSchemaItem? Type44 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::Dust.TableSchemaItemValueType? Type45 { get; set; } /// /// /// - public global::Dust.PrivateRichMentionWithStatus? Type46 { get; set; } + public global::Dust.DatasourceView? Type46 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageContext? Type47 { get; set; } + public global::Dust.DatasourceViewCategory? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Dust.DatasourceViewEditedByUser? Type48 { get; set; } /// /// /// - public global::Dust.PrivateReaction? Type49 { get; set; } + public global::Dust.DatasourceViewKind? Type49 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageType? Type50 { get; set; } + public global::Dust.SkillSourceMetadata? Type50 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageVisibility? Type51 { get; set; } + public global::Dust.Skill? Type51 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageStatus? Type52 { get; set; } + public global::Dust.SkillStatus? Type52 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageError? Type53 { get; set; } + public global::Dust.SkillSource? Type53 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfiguration? Type54 { get; set; } + public global::Dust.SkillReinforcement? Type54 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type55 { get; set; } + public global::System.Collections.Generic.IList? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::Dust.SkillFileAttachment? Type56 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageContent? Type57 { get; set; } + public global::Dust.SkillAvailability? Type57 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageResolvedModel? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageModelResolutionMethod? Type59 { get; set; } + public global::Dust.MCPServerView? Type59 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessage? Type60 { get; set; } + public global::Dust.Run? Type60 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageType? Type61 { get; set; } + public global::Dust.RunStatus? Type61 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageVisibility? Type62 { get; set; } + public object? Type62 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageStatus? Type63 { get; set; } + public global::System.Collections.Generic.IList>? Type63 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageError? Type64 { get; set; } + public global::System.Collections.Generic.IList? Type64 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageConfiguration? Type65 { get; set; } + public global::Dust.RunTraceItem? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type66 { get; set; } + public global::Dust.Document? Type66 { get; set; } /// /// /// - public global::Dust.PrivateCitation? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type68 { get; set; } + public global::Dust.MCPServerViewServerType? Type68 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageGeneratedFile? Type69 { get; set; } + public global::Dust.MCPServerViewServer? Type69 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageResolvedModel? Type70 { get; set; } + public global::Dust.MCPServerViewServerAuthorization? Type70 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageModelResolutionMethod? Type71 { get; set; } + public global::System.Collections.Generic.IList? Type71 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type72 { get; set; } + public global::Dust.MCPServerViewServerAuthorizationSupportedUseCase? Type72 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageActivityStep? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentMessageActivityStepType? Type74 { get; set; } + public global::Dust.MCPServerViewServerTool? Type74 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentType? Type75 { get; set; } + public global::Dust.MCPServerViewOAuthUseCase? Type75 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentVisibility? Type76 { get; set; } + public global::Dust.MCPServerViewEditedByUser? Type76 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentContext? Type77 { get; set; } + public global::Dust.Trigger? Type77 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentContentFragmentVersion? Type78 { get; set; } + public global::Dust.TriggerKind? Type78 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentContentFragmentType? Type79 { get; set; } + public global::Dust.TriggerStatus? Type79 { get; set; } /// /// /// - public global::Dust.PrivateContentFragmentExpiredReason? Type80 { get; set; } + public global::Dust.TriggerExecutionMode? Type80 { get; set; } /// /// /// - public long? Type81 { get; set; } + public global::Dust.TriggerWebhookSource? Type81 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageType? Type82 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequest? Type82 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageVisibility? Type83 { get; set; } + public global::System.DateTime? Type83 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageStatus? Type84 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? Type84 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationStatus? Type85 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? Type85 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationScope? Type86 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequest? Type86 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationModel? Type87 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestAgent? Type87 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationModelReasoningEffort? Type88 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestGenerationSettings? Type89 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationTag? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type91 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestTag? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind? Type92 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationEditor? Type93 { get; set; } + public global::System.Collections.Generic.IList? Type93 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationUsage? Type94 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestSkill? Type94 { get; set; } /// /// /// - public global::Dust.PrivateLightAgentConfigurationFeedbacks? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::Dust.GetGoTemplateDraftResponseBody? Type96 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItem? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType? Type97 { get; set; } /// /// /// - public global::Dust.GetGoTemplateDraftResponseBodyAttachment? Type98 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemConfiguration? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequest? Type99 { get; set; } /// /// /// - public global::Dust.GetGoTemplateDraftResponseBodyAttachmentError? Type100 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgent? Type100 { get; set; } /// /// /// - public global::Dust.PrivateFileWithUploadUrl? Type101 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope? Type101 { get; set; } /// /// /// - public global::Dust.PrivateFileWithUploadUrlStatus? Type102 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestGenerationSettings? Type102 { get; set; } /// /// /// - public global::Dust.PrivateFileWithUploadUrlUseCase? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::Dust.PrivateSpace? Type104 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTag? Type104 { get; set; } /// /// /// - public global::Dust.PrivateSpaceKind? Type105 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind? Type105 { get; set; } /// /// /// - public global::Dust.PrivateProject? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::Dust.PrivateProjectVariant2? Type107 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItem? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType? Type108 { get; set; } /// /// /// - public global::Dust.PrivateProjectVariant2FrameTab? Type109 { get; set; } + public global::Dust.CreateWAssistantConversationsCancelRequest? Type109 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceView? Type110 { get; set; } + public global::Dust.OneOf? Type110 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewCategory? Type111 { get; set; } + public global::Dust.PatchWAssistantConversationsRequestVariant1? Type111 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewKind? Type112 { get; set; } + public global::Dust.PatchWAssistantConversationsRequestVariant2? Type112 { get; set; } /// /// /// - public global::Dust.PrivateDataSource? Type113 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequest? Type113 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewEditedByUser? Type114 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequestAnswer? Type114 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewUsage? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditRequest? Type116 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewUsageAgent? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditRequestMention? Type118 { get; set; } /// /// /// - public global::Dust.PrivateDataSourceViewUsageSkill? Type119 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest? Type119 { get; set; } /// /// /// - public global::Dust.PrivateMentionSuggestion? Type120 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection? Type120 { get; set; } /// /// /// - public global::Dust.PrivateMentionSuggestionType? Type121 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesValidateActionRequest? Type121 { get; set; } /// /// /// - public global::Dust.PrivateFeatureFlags? Type122 { get; set; } + public global::Dust.CreateWAssistantConversationsRequest? Type122 { get; set; } /// /// /// - public global::Dust.PrivateExtensionConfig? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::Dust.PrivateFeedback? Type124 { get; set; } + public global::Dust.CreateWAssistantMentionsParseRequest? Type124 { get; set; } /// /// /// - public global::Dust.PrivateFeedbackThumbDirection? Type125 { get; set; } + public global::Dust.CreateWFilesRequest? Type125 { get; set; } /// /// /// - public global::System.DateTime? Type126 { get; set; } + public global::Dust.CreateWMcpDeregisterRequest? Type126 { get; set; } /// /// /// - public global::Dust.PrivateWakeUp? Type127 { get; set; } + public global::Dust.CreateWMcpHeartbeatRequest? Type127 { get; set; } /// /// /// - public global::Dust.OneOf? Type128 { get; set; } + public global::Dust.CreateWMcpRegisterRequest? Type128 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpScheduleConfigVariant1? Type129 { get; set; } + public global::Dust.CreateWMcpResultsRequest? Type129 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpScheduleConfigVariant1Type? Type130 { get; set; } + public global::Dust.CreateWSearchRequest? Type130 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpScheduleConfigVariant2? Type131 { get; set; } + public global::Dust.CreateWSearchToolsUploadRequest? Type131 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpScheduleConfigVariant2Type? Type132 { get; set; } + public global::Dust.CreateWSkillsRequest? Type132 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpStatus? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::Dust.PrivateMentionType? Type134 { get; set; } + public global::Dust.CreateWSkillsRequestOnConflict? Type134 { get; set; } /// /// /// - public global::Dust.PrivateRichMentionWithStatusType? Type135 { get; set; } + public global::Dust.CreateWSkillsRequestAvailability? Type135 { get; set; } /// /// /// - public global::Dust.PrivateRichMentionWithStatusStatus? Type136 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequest? Type136 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageContextOrigin? Type137 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequestConfig? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequestConfigModel? Type138 { get; set; } /// /// /// - public global::Dust.PrivateReactionUser? Type139 { get; set; } + public global::Dust.OneOf? Type139 { get; set; } /// /// /// - public global::Dust.PrivateConversationEvent? Type140 { get; set; } + public global::Dust.PatchWSpacesDataSourceViewsRequestVariant1? Type140 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageNewEvent? Type141 { get; set; } + public global::Dust.PatchWSpacesDataSourceViewsRequestVariant2? Type141 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageNewEvent? Type142 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsRequest? Type142 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? Type143 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsParentsRequest? Type143 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageDoneEvent? Type144 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequest? Type144 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageNewEvent? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageDoneEvent? Type146 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRow? Type146 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkPreparedEvent? Type147 { get; set; } + public global::Dust.OneOf? Type147 { get; set; } /// /// /// - public global::Dust.PrivateConversationTitleEvent? Type148 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValue2? Type148 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpUpdatedEvent? Type149 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType? Type149 { get; set; } /// /// /// - public global::Dust.PrivateConversationEventDiscriminator? Type150 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRequest? Type150 { get; set; } /// /// /// - public global::Dust.PrivateConversationEventDiscriminatorType? Type151 { get; set; } + public global::Dust.GetWAnalyticsExportTable? Type151 { get; set; } /// /// /// - public global::Dust.PrivateUserMessageNewEventType? Type152 { get; set; } + public global::Dust.GetWAnalyticsExportFormat? Type152 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageNewEventType? Type153 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsView? Type153 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageDoneEventType? Type154 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsWithAuthors? Type154 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageDoneEventStatus? Type155 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsVariant? Type155 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageConsumptionUpdatedEventType? Type156 { get; set; } + public global::System.Collections.Generic.IList? Type156 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageNewEventType? Type157 { get; set; } + public global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem? Type157 { get; set; } /// /// /// - public global::Dust.PrivateCompactionMessageDoneEventType? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::Dust.PrivateConversationForkPreparedEventType? Type159 { get; set; } + public global::Dust.GetWAssistantMentionsSuggestionsSelectItem? Type159 { get; set; } /// /// /// - public global::Dust.PrivateConversationTitleEventType? Type160 { get; set; } + public global::Dust.GetWSearchViewType? Type160 { get; set; } /// /// /// - public global::Dust.PrivateWakeUpUpdatedEventType? Type161 { get; set; } + public global::Dust.GetWSkillsStatus? Type161 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationEvent? Type162 { get; set; } + public global::System.Collections.Generic.IList? Type162 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? Type163 { get; set; } + public global::Dust.GetWSkillsAvailabilityItem? Type163 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationResultEvent? Type164 { get; set; } + public global::Dust.GetWTriggersKind? Type164 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationErrorEvent? Type165 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsResponse? Type165 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator? Type166 { get; set; } + public global::System.Collections.Generic.IList? Type166 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? Type167 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsResponse2? Type167 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationCreatedEventType? Type168 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsResponse? Type168 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus? Type170 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsResponseSkippedAction? Type170 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationResultEventType? Type171 { get; set; } + public global::Dust.DeleteWAssistantAgentConfigurationsResponse? Type171 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationErrorEventType? Type172 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportResponse? Type172 { get; set; } /// /// /// - public global::Dust.PrivateSandboxFunctionInvocationErrorEventError? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageEvent? Type174 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportResponseSkippedAction? Type174 { get; set; } /// /// /// - public global::Dust.PrivateGenerationTokensEvent? Type175 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsSearchResponse? Type175 { get; set; } /// /// /// - public global::Dust.PrivateToolCallStartedEvent? Type176 { get; set; } + public global::Dust.CreateWAssistantConversationsCancelResponse? Type176 { get; set; } /// /// /// - public global::Dust.PrivateAgentActionSuccessEvent? Type177 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponse? Type177 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageSuccessEvent? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Dust.PrivateAgentErrorEvent? Type179 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedback? Type179 { get; set; } /// /// /// - public global::Dust.PrivateAgentGenerationCancelledEvent? Type180 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection? Type180 { get; set; } /// /// /// - public global::Dust.PrivateToolErrorEvent? Type181 { get; set; } + public global::Dust.PatchWAssistantConversationsResponse? Type181 { get; set; } /// /// /// - public global::Dust.PrivateToolParamsEvent? Type182 { get; set; } + public global::Dust.GetWAssistantConversationsMentionsSuggestionsResponse? Type182 { get; set; } /// /// /// - public global::Dust.PrivateToolApproveExecutionEvent? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Dust.PrivateToolNotificationEvent? Type184 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionResponse? Type184 { get; set; } /// /// /// - public global::Dust.PrivateToolPersonalAuthRequiredEvent? Type185 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditResponse? Type185 { get; set; } /// /// /// - public global::Dust.PrivateToolFileAuthRequiredEvent? Type186 { get; set; } + public global::Dust.GetWAssistantConversationsMessagesEventsResponse? Type186 { get; set; } /// /// /// - public global::Dust.PrivateAgentContextPrunedEvent? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageEventDiscriminator? Type188 { get; set; } + public global::Dust.GetWAssistantConversationsMessagesEventsResponseEvent? Type188 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageEventDiscriminatorType? Type189 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse? Type189 { get; set; } /// /// /// - public global::Dust.PrivateGenerationTokensEventType? Type190 { get; set; } + public global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse? Type190 { get; set; } /// /// /// - public global::Dust.PrivateGenerationTokensEventClassification? Type191 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesValidateActionResponse? Type191 { get; set; } /// /// /// - public global::Dust.PrivateToolCallStartedEventType? Type192 { get; set; } + public global::Dust.CreateWAssistantMentionsParseResponse? Type192 { get; set; } /// /// /// - public global::Dust.PrivateAgentActionSuccessEventType? Type193 { get; set; } + public global::Dust.GetWAssistantMentionsSuggestionsResponse? Type193 { get; set; } /// /// /// - public global::Dust.PrivateAgentMCPAction? Type194 { get; set; } + public global::Dust.CreateWFilesResponse? Type194 { get; set; } /// /// /// - public global::Dust.PrivateAgentMCPActionStatus? Type195 { get; set; } + public global::Dust.CreateWFilesResponseFile? Type195 { get; set; } /// /// /// - public global::Dust.PrivateAgentMCPActionDisplayLabels? Type196 { get; set; } + public global::Dust.CreateWMcpHeartbeatResponse? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::Dust.CreateWMcpRegisterResponse? Type197 { get; set; } /// /// /// - public global::Dust.PrivateAgentMCPActionGeneratedFile? Type198 { get; set; } + public global::Dust.GetWMcpRequestsResponse? Type198 { get; set; } /// /// /// - public global::Dust.PrivateAgentMessageSuccessEventType? Type199 { get; set; } + public global::Dust.DeleteWSkillsResponse? Type199 { get; set; } /// /// /// - public global::Dust.PrivateAgentErrorEventType? Type200 { get; set; } + public global::Dust.GetWSkillsResponse? Type200 { get; set; } /// /// /// - public global::Dust.PrivateAgentErrorEventError? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Dust.PrivateAgentGenerationCancelledEventType? Type202 { get; set; } + public global::Dust.CreateWSkillsResponse? Type202 { get; set; } /// /// /// - public global::Dust.PrivateToolErrorEventType? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::Dust.PrivateToolErrorEventError? Type204 { get; set; } + public global::Dust.CreateWSkillsResponseSkippedItem? Type204 { get; set; } /// /// /// - public global::Dust.PrivateToolParamsEventType? Type205 { get; set; } + public global::Dust.GetWSpacesAppsRunsResponse? Type205 { get; set; } /// /// /// - public global::Dust.PrivateToolApproveExecutionEventType? Type206 { get; set; } + public global::Dust.CreateWSpacesAppsRunsResponse? Type206 { get; set; } /// /// /// - public global::Dust.PrivateToolNotificationEventType? Type207 { get; set; } + public global::Dust.GetWSpacesAppsResponse? Type207 { get; set; } /// /// /// - public global::Dust.PrivateToolPersonalAuthRequiredEventType? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Dust.PrivateToolPersonalAuthRequiredEventAuthError? Type209 { get; set; } + public global::Dust.GetWSpacesAppsResponseApp? Type209 { get; set; } /// /// /// - public global::Dust.PrivateToolFileAuthRequiredEventType? Type210 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsSearchResponse? Type210 { get; set; } /// /// /// - public global::Dust.PrivateToolFileAuthRequiredEventFileAuthError? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::Dust.PrivateAgentContextPrunedEventType? Type212 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsSearchResponseDocument? Type212 { get; set; } /// /// /// - public global::Dust.Section? Type213 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsResponse? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::Dust.User? Type215 { get; set; } + public global::Dust.GetWSpacesDataSourcesCheckUpsertQueueResponse? Type215 { get; set; } /// /// /// - public global::Dust.Workspace? Type216 { get; set; } + public global::Dust.GetWSpacesDataSourcesDocumentsResponse? Type216 { get; set; } /// /// /// - public global::Dust.Context? Type217 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsResponse? Type217 { get; set; } /// /// /// - public global::Dust.ContextAgenticMessageData? Type218 { get; set; } + public global::Dust.DeleteWSpacesDataSourcesDocumentsResponse? Type218 { get; set; } /// /// /// - public global::Dust.ContextAgenticMessageDataType? Type219 { get; set; } + public global::Dust.DeleteWSpacesDataSourcesDocumentsResponseDocument? Type219 { get; set; } /// /// /// - public global::Dust.AgentConfiguration? Type220 { get; set; } + public global::Dust.GetWSpacesDataSourcesDocumentsResponse2? Type220 { get; set; } /// /// /// - public global::Dust.AgentConfigurationModel? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public byte[]? Type222 { get; set; } + public global::Dust.GetWSpacesDataSourcesSearchResponse? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Dust.AgentSkill? Type224 { get; set; } + public global::Dust.GetWSpacesDataSourcesSearchResponseDocument? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::Dust.AgentConfigurationTag? Type226 { get; set; } + public global::Dust.GetWSpacesDataSourcesTablesResponse? Type226 { get; set; } /// /// /// - public global::Dust.AgentConfigurationTagKind? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::Dust.Conversation? Type228 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesResponse? Type228 { get; set; } /// /// /// - public global::Dust.ConversationConversation1? Type229 { get; set; } + public global::Dust.GetWSpacesDataSourcesResponse? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type230 { get; set; } + public global::Dust.GetWSpacesMcpServerViewsResponse? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Dust.GetWSpacesResponse? Type231 { get; set; } /// /// /// - public global::Dust.ConversationConversation1ContentItemItem? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Dust.GetWTriggersResponse? Type233 { get; set; } /// /// /// - public global::Dust.Mention? Type234 { get; set; } + public global::Dust.GetWTriggersResponse2? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } - /// - /// - /// - public global::Dust.ConversationConversation1ContentItemItemAction? Type236 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type237 { get; set; } - /// - /// - /// - public global::Dust.ConversationConversation1ContentItemItemActionGeneratedFile? Type238 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type239 { get; set; } - /// - /// - /// - public global::Dust.ConversationConversation1ContentItemItemRawContent? Type240 { get; set; } - /// - /// - /// - public global::Dust.RichMention? Type241 { get; set; } - /// - /// - /// - public global::Dust.RichMentionType? Type242 { get; set; } - /// - /// - /// - public global::Dust.Message? Type243 { get; set; } - /// - /// - /// - public global::Dust.ModelSelection? Type244 { get; set; } - /// - /// - /// - public global::Dust.ModelSelectionReasoningEffort? Type245 { get; set; } - /// - /// - /// - public global::Dust.ContentFragment? Type246 { get; set; } - /// - /// - /// - public global::Dust.Space? Type247 { get; set; } - /// - /// - /// - public global::Dust.SpaceKind? Type248 { get; set; } - /// - /// - /// - public global::Dust.Datasource? Type249 { get; set; } - /// - /// - /// - public global::Dust.Table? Type250 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type251 { get; set; } - /// - /// - /// - public global::Dust.TableSchemaItem? Type252 { get; set; } - /// - /// - /// - public global::Dust.TableSchemaItemValueType? Type253 { get; set; } - /// - /// - /// - public global::Dust.DatasourceView? Type254 { get; set; } - /// - /// - /// - public global::Dust.DatasourceViewCategory? Type255 { get; set; } - /// - /// - /// - public global::Dust.DatasourceViewEditedByUser? Type256 { get; set; } - /// - /// - /// - public global::Dust.DatasourceViewKind? Type257 { get; set; } - /// - /// - /// - public global::Dust.SkillSourceMetadata? Type258 { get; set; } - /// - /// - /// - public global::Dust.Skill? Type259 { get; set; } - /// - /// - /// - public global::Dust.SkillStatus? Type260 { get; set; } - /// - /// - /// - public global::Dust.SkillSource? Type261 { get; set; } - /// - /// - /// - public global::Dust.SkillReinforcement? Type262 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type263 { get; set; } - /// - /// - /// - public global::Dust.SkillFileAttachment? Type264 { get; set; } - /// - /// - /// - public global::Dust.SkillAvailability? Type265 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type266 { get; set; } - /// - /// - /// - public global::Dust.MCPServerView? Type267 { get; set; } - /// - /// - /// - public global::Dust.Run? Type268 { get; set; } - /// - /// - /// - public global::Dust.RunStatus? Type269 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type270 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type271 { get; set; } - /// - /// - /// - public global::Dust.RunTraceItem? Type272 { get; set; } - /// - /// - /// - public global::Dust.Document? Type273 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewServerType? Type274 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewServer? Type275 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewServerAuthorization? Type276 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type277 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewServerAuthorizationSupportedUseCase? Type278 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type279 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewServerTool? Type280 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewOAuthUseCase? Type281 { get; set; } - /// - /// - /// - public global::Dust.MCPServerViewEditedByUser? Type282 { get; set; } - /// - /// - /// - public global::Dust.Trigger? Type283 { get; set; } - /// - /// - /// - public global::Dust.TriggerKind? Type284 { get; set; } - /// - /// - /// - public global::Dust.TriggerStatus? Type285 { get; set; } - /// - /// - /// - public global::Dust.TriggerExecutionMode? Type286 { get; set; } - /// - /// - /// - public global::Dust.TriggerWebhookSource? Type287 { get; set; } - /// - /// - /// - public global::Dust.PatchUserRequest? Type288 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequest? Type289 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestAgent? Type290 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope? Type291 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestGenerationSettings? Type292 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type293 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestTag? Type294 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind? Type295 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type296 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestSkill? Type297 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type298 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItem? Type299 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType? Type300 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemConfiguration? Type301 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequest? Type302 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgent? Type303 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope? Type304 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestGenerationSettings? Type305 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type306 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTag? Type307 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind? Type308 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type309 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItem? Type310 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType? Type311 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCancelRequest? Type312 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type313 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant1? Type314 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant2? Type315 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequest? Type316 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequestAnswer? Type317 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type318 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesEditRequest? Type319 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type320 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesEditRequestMention? Type321 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest? Type322 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection? Type323 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesValidateActionRequest? Type324 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequest? Type325 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type326 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantMentionsParseRequest? Type327 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesRequest? Type328 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpDeregisterRequest? Type329 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpHeartbeatRequest? Type330 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpRegisterRequest? Type331 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpResultsRequest? Type332 { get; set; } - /// - /// - /// - public global::Dust.CreateWSearchRequest? Type333 { get; set; } - /// - /// - /// - public global::Dust.CreateWSearchToolsUploadRequest? Type334 { get; set; } - /// - /// - /// - public global::Dust.CreateWSkillsRequest? Type335 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type336 { get; set; } - /// - /// - /// - public global::Dust.CreateWSkillsRequestOnConflict? Type337 { get; set; } - /// - /// - /// - public global::Dust.CreateWSkillsRequestAvailability? Type338 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesAppsRunsRequest? Type339 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesAppsRunsRequestConfig? Type340 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesAppsRunsRequestConfigModel? Type341 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type342 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesDataSourceViewsRequestVariant1? Type343 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesDataSourceViewsRequestVariant2? Type344 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesDocumentsRequest? Type345 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesDocumentsParentsRequest? Type346 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequest? Type347 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type348 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRow? Type349 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type350 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValue2? Type351 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType? Type352 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesRequest? Type353 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsRequest? Type354 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? Type355 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? Type356 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type357 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestDimension? Type358 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? Type359 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsRequest? Type360 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCancelRequest2? Type361 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCancelRequestAction? Type362 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCompactionsRequest? Type363 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCompactionsRequestModel? Type364 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsContentFragmentRequest? Type365 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsContentFragmentRequestContext? Type366 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant12? Type367 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant22? Type368 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant3? Type369 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant4? Type370 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode? Type371 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesEditRequest2? Type372 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2? Type373 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2? Type374 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesRequest? Type375 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesRequestContext? Type376 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? Type377 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsSelectedSpacesRequest? Type378 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode? Type379 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequest2? Type380 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequestVisibility? Type381 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequestMessage? Type382 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequestMessageContext? Type383 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsRequestMetadata? Type384 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesRequest2? Type385 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesRequest3? Type386 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesRequestUseCase? Type387 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesDataSourceViewsRequest2? Type388 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourceViewsRequest? Type389 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesRequest? Type390 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type391 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesRequestContentItem? Type392 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesProjectNotificationPreferencesRequest? Type393 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference? Type394 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesRequest? Type395 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesRequestSpaceKind? Type396 { get; set; } - /// - /// - /// - public global::Dust.CreateWorkosAuthenticateRequest? Type397 { get; set; } - /// - /// - /// - public global::Dust.CreateWorkosAuthenticateRequestGrantType? Type398 { get; set; } - /// - /// - /// - public global::Dust.CreateWorkosRevokeSessionRequest? Type399 { get; set; } - /// - /// - /// - public global::Dust.GetWAnalyticsExportTable? Type400 { get; set; } - /// - /// - /// - public global::Dust.GetWAnalyticsExportFormat? Type401 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsView? Type402 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsWithAuthors? Type403 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsVariant? Type404 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type405 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem? Type406 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type407 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantMentionsSuggestionsSelectItem? Type408 { get; set; } - /// - /// - /// - public global::Dust.GetWSearchViewType? Type409 { get; set; } - /// - /// - /// - public global::Dust.GetWSkillsStatus? Type410 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type411 { get; set; } - /// - /// - /// - public global::Dust.GetWSkillsAvailabilityItem? Type412 { get; set; } - /// - /// - /// - public global::Dust.GetWTriggersKind? Type413 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsView2? Type414 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsWithUsage? Type415 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? Type416 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? Type417 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsWithEditors? Type418 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantMentionsSuggestionsSelect? Type419 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantMentionsSuggestionsCurrent? Type420 { get; set; } - /// - /// - /// - public global::Dust.GetWFilesVersion? Type421 { get; set; } - /// - /// - /// - public global::Dust.GetWFilesAction? Type422 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSpacesDataSourceViewsForce? Type423 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsCategory? Type424 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsWithDetails? Type425 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? Type426 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesIncludeAllMembers? Type427 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSpacesForce? Type428 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type429 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesKindItem? Type430 { get; set; } - /// - /// - /// - public global::Dust.GetUserResponse? Type431 { get; set; } - /// - /// - /// - public global::Dust.PatchUserResponse? Type432 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsResponse? Type433 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type434 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsResponse2? Type435 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsResponse? Type436 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type437 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantAgentConfigurationsResponseSkippedAction? Type438 { get; set; } - /// - /// - /// - public global::Dust.DeleteWAssistantAgentConfigurationsResponse? Type439 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportResponse? Type440 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type441 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsImportResponseSkippedAction? Type442 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsSearchResponse? Type443 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCancelResponse? Type444 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsFeedbacksResponse? Type445 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type446 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedback? Type447 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection? Type448 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsResponse? Type449 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMentionsSuggestionsResponse? Type450 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type451 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionResponse? Type452 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesEditResponse? Type453 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesEventsResponse? Type454 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type455 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesEventsResponseEvent? Type456 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse? Type457 { get; set; } - /// - /// - /// - public global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse? Type458 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesValidateActionResponse? Type459 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantMentionsParseResponse? Type460 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantMentionsSuggestionsResponse? Type461 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesResponse? Type462 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesResponseFile? Type463 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpHeartbeatResponse? Type464 { get; set; } - /// - /// - /// - public global::Dust.CreateWMcpRegisterResponse? Type465 { get; set; } - /// - /// - /// - public global::Dust.GetWMcpRequestsResponse? Type466 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSkillsResponse? Type467 { get; set; } - /// - /// - /// - public global::Dust.GetWSkillsResponse? Type468 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type469 { get; set; } - /// - /// - /// - public global::Dust.CreateWSkillsResponse? Type470 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type471 { get; set; } - /// - /// - /// - public global::Dust.CreateWSkillsResponseSkippedItem? Type472 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesAppsRunsResponse? Type473 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesAppsRunsResponse? Type474 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesAppsResponse? Type475 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type476 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesAppsResponseApp? Type477 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsSearchResponse? Type478 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type479 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsSearchResponseDocument? Type480 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsResponse? Type481 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type482 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesCheckUpsertQueueResponse? Type483 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesDocumentsResponse? Type484 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesDocumentsResponse? Type485 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSpacesDataSourcesDocumentsResponse? Type486 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSpacesDataSourcesDocumentsResponseDocument? Type487 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesDocumentsResponse2? Type488 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type489 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesSearchResponse? Type490 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type491 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesSearchResponseDocument? Type492 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type493 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesTablesResponse? Type494 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type495 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourcesTablesResponse? Type496 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourcesResponse? Type497 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesMcpServerViewsResponse? Type498 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponse? Type499 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type500 { get; set; } - /// - /// - /// - public global::Dust.GetWTriggersResponse? Type501 { get; set; } - /// - /// - /// - public global::Dust.GetWTriggersResponse2? Type502 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type503 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsResponse? Type504 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod? Type505 { get; set; } - /// - /// - /// - public global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets? Type506 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type507 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantAgentConfigurationsResponse3? Type508 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type509 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantAgentConfigurationsResponse? Type510 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCancelResponse2? Type511 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsCompactionsResponse? Type512 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsConsumptionResponse? Type513 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsContentFragmentResponse? Type514 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsFeedbacksResponse2? Type515 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type516 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsResponse? Type517 { get; set; } - /// - /// - /// - public global::Dust.PatchWAssistantConversationsResponse2? Type518 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesActionsResponse? Type519 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus? Type520 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesConsumptionResponse? Type521 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? Type522 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type523 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool? Type524 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesEditResponse2? Type525 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2? Type526 { get; set; } - /// - /// - /// - public global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2? Type527 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesResponse? Type528 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type529 { get; set; } - /// - /// - /// - public global::Dust.DeleteWAssistantConversationsMessagesResponse? Type530 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesRetryResponse? Type531 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsMessagesResponse2? Type532 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type533 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type534 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsMessagesResponse? Type535 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type536 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type537 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsParticipantsResponse? Type538 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? Type539 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type540 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent? Type541 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type542 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser? Type543 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsSelectableSpacesResponse? Type544 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type545 { get; set; } - /// - /// - /// - public global::Dust.AllOf? Type546 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace? Type547 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsSelectedSpacesResponse? Type548 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type549 { get; set; } - /// - /// - /// - public global::Dust.AllOf? Type550 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace? Type551 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? Type552 { get; set; } - /// - /// - /// - public global::Dust.DeleteWAssistantConversationsWakeupsResponse? Type553 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsWakeupsResponse? Type554 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type555 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantConversationsResponse2? Type556 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type557 { get; set; } - /// - /// - /// - public global::Dust.CreateWAssistantConversationsResponse? Type558 { get; set; } - /// - /// - /// - public global::Dust.GetWAssistantMentionsSuggestionsResponse2? Type559 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type560 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesResponse2? Type561 { get; set; } - /// - /// - /// - public global::Dust.CreateWFilesResponse3? Type562 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsResponse2? Type563 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesDataSourceViewsResponse? Type564 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesDataSourceViewsResponse3? Type565 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type566 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesDataSourceViewsResponse? Type567 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponse2? Type568 { get; set; } - /// - /// - /// - public global::Dust.AllOf? Type569 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpace? Type570 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type571 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpaceCategories2? Type572 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpaceCategoriesUsage? Type573 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type574 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpaceGroup? Type575 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpaceGroupRole? Type576 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type577 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponseSpaceFrameTab? Type578 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesResponse? Type579 { get; set; } - /// - /// - /// - public global::Dust.DeleteWSpacesResponse? Type580 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesProjectNotificationPreferencesResponse? Type581 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? Type582 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Type583 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesProjectNotificationPreferencesResponse? Type584 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? Type585 { get; set; } - /// - /// - /// - public global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Type586 { get; set; } - /// - /// - /// - public global::Dust.GetWSpacesResponse3? Type587 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type588 { get; set; } - /// - /// - /// - public global::Dust.OneOf? Type589 { get; set; } - /// - /// - /// - public global::Dust.CreateWSpacesResponse? Type590 { get; set; } - /// - /// - /// - public global::Dust.CreateWorkosAuthenticateResponse? Type591 { get; set; } - /// - /// - /// - public global::Dust.CreateWorkosRevokeSessionResponse? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// @@ -2414,362 +986,186 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>>? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType13 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType20 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType21 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType23 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType24 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType25 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType26 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType27 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType28 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType29 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType30 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType31 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType32 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType33 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType34 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType35 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType36 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType37 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType38 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType39 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType40 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType41 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType42 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType43 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType44 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType45 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List>? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List>? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.Json.g.cs similarity index 87% rename from src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.Json.g.cs rename to src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.Json.g.cs index 517798b..e96ab98 100644 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.Json.g.cs +++ b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Dust { - public sealed partial class CreateWAnalyticsConsumptionFacetsRequest + public sealed partial class CreateWAnalyticsConsumptionExportRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequest? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequest), - jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionFacetsRequest; + typeof(global::Dust.CreateWAnalyticsConsumptionExportRequest), + jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionExportRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequest? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequest? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Dust.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionFacetsRequest; + typeof(global::Dust.CreateWAnalyticsConsumptionExportRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionExportRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Dust.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.g.cs new file mode 100644 index 0000000..5389c4e --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequest.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace Dust +{ + /// + /// + /// + public sealed partial class CreateWAnalyticsConsumptionExportRequest + { + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z + ///
+ /// 2026-01-01T00:00:00Z + [global::System.Text.Json.Serialization.JsonPropertyName("startDate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime StartDate { get; set; } + + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z + ///
+ /// 2026-01-15T00:00:00Z + [global::System.Text.Json.Serialization.JsonPropertyName("endDate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime EndDate { get; set; } + + /// + /// Output format (defaults to csv) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAnalyticsConsumptionExportRequestFormatJsonConverter))] + public global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? Format { get; set; } + + /// + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("filter")] + public global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? Filter { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Start of the time range (inclusive), ISO 8601 datetime
+ /// Example: 2026-01-01T00:00:00Z + /// + /// + /// End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.
+ /// Example: 2026-01-15T00:00:00Z + /// + /// + /// Output format (defaults to csv) + /// + /// + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateWAnalyticsConsumptionExportRequest( + global::System.DateTime startDate, + global::System.DateTime endDate, + global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? format, + global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? filter) + { + this.StartDate = startDate; + this.EndDate = endDate; + this.Format = format; + this.Filter = filter; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateWAnalyticsConsumptionExportRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.Json.g.cs similarity index 86% rename from src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.Json.g.cs rename to src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.Json.g.cs index 151f976..02dd2a3 100644 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.Json.g.cs +++ b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.Json.g.cs @@ -2,7 +2,7 @@ namespace Dust { - public sealed partial class CreateWAnalyticsConsumptionFacetsRequestFilter + public sealed partial class CreateWAnalyticsConsumptionExportRequestFilter { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter), - jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter; + typeof(global::Dust.CreateWAnalyticsConsumptionExportRequestFilter), + jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionExportRequestFilter; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? FromJson( + public static global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Dust.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter; + typeof(global::Dust.CreateWAnalyticsConsumptionExportRequestFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionExportRequestFilter; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Dust.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.g.cs similarity index 61% rename from src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.g.cs rename to src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.g.cs index ef9b7d1..b967c78 100644 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestFilter.g.cs +++ b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFilter.g.cs @@ -4,58 +4,65 @@ namespace Dust { /// - /// Map of consumption dimensions to selected values. + /// Optional dimension filters. Each key maps to an array of string identifiers to include.
+ /// Each value must be at most 256 characters. The total number of values across all dimensions must not exceed 500. ///
- public sealed partial class CreateWAnalyticsConsumptionFacetsRequestFilter + public sealed partial class CreateWAnalyticsConsumptionExportRequestFilter { /// - /// + /// Agent sIds to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("agents")] public global::System.Collections.Generic.IList? Agents { get; set; } /// - /// + /// User IDs to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("users")] public global::System.Collections.Generic.IList? Users { get; set; } /// - /// + /// API key names to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("api_keys")] public global::System.Collections.Generic.IList? ApiKeys { get; set; } /// - /// + /// Group IDs to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("groups")] public global::System.Collections.Generic.IList? Groups { get; set; } /// - /// + /// Model IDs to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("models")] public global::System.Collections.Generic.IList? Models { get; set; } /// - /// + /// Tool server names to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// + /// Skill IDs to filter on /// [global::System.Text.Json.Serialization.JsonPropertyName("skills")] public global::System.Collections.Generic.IList? Skills { get; set; } /// - /// + /// Context origins to filter on (e.g. "web", "slack", "api") /// [global::System.Text.Json.Serialization.JsonPropertyName("sources")] public global::System.Collections.Generic.IList? Sources { get; set; } + /// + /// Agent tag IDs to filter on + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tags")] + public global::System.Collections.Generic.IList? Tags { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -63,20 +70,39 @@ public sealed partial class CreateWAnalyticsConsumptionFacetsRequestFilter public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// - /// - /// - /// - /// - /// - /// + /// + /// Agent sIds to filter on + /// + /// + /// User IDs to filter on + /// + /// + /// API key names to filter on + /// + /// + /// Group IDs to filter on + /// + /// + /// Model IDs to filter on + /// + /// + /// Tool server names to filter on + /// + /// + /// Skill IDs to filter on + /// + /// + /// Context origins to filter on (e.g. "web", "slack", "api") + /// + /// + /// Agent tag IDs to filter on + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateWAnalyticsConsumptionFacetsRequestFilter( + public CreateWAnalyticsConsumptionExportRequestFilter( global::System.Collections.Generic.IList? agents, global::System.Collections.Generic.IList? users, global::System.Collections.Generic.IList? apiKeys, @@ -84,7 +110,8 @@ public CreateWAnalyticsConsumptionFacetsRequestFilter( global::System.Collections.Generic.IList? models, global::System.Collections.Generic.IList? tools, global::System.Collections.Generic.IList? skills, - global::System.Collections.Generic.IList? sources) + global::System.Collections.Generic.IList? sources, + global::System.Collections.Generic.IList? tags) { this.Agents = agents; this.Users = users; @@ -94,12 +121,13 @@ public CreateWAnalyticsConsumptionFacetsRequestFilter( this.Tools = tools; this.Skills = skills; this.Sources = sources; + this.Tags = tags; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateWAnalyticsConsumptionFacetsRequestFilter() + public CreateWAnalyticsConsumptionExportRequestFilter() { } diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFormat.g.cs similarity index 56% rename from src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs rename to src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFormat.g.cs index 8a97e59..908ad3f 100644 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestPeriod.g.cs +++ b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionExportRequestFormat.g.cs @@ -4,46 +4,46 @@ namespace Dust { /// - /// Default Value: cycle + /// Output format (defaults to csv) /// - public enum CreateWAnalyticsConsumptionFacetsRequestPeriod + public enum CreateWAnalyticsConsumptionExportRequestFormat { /// /// /// - Cycle, + Csv, /// /// /// - Days, + Ndjson, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateWAnalyticsConsumptionFacetsRequestPeriodExtensions + public static class CreateWAnalyticsConsumptionExportRequestFormatExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateWAnalyticsConsumptionFacetsRequestPeriod value) + public static string ToValueString(this CreateWAnalyticsConsumptionExportRequestFormat value) { return value switch { - CreateWAnalyticsConsumptionFacetsRequestPeriod.Cycle => "cycle", - CreateWAnalyticsConsumptionFacetsRequestPeriod.Days => "days", + CreateWAnalyticsConsumptionExportRequestFormat.Csv => "csv", + CreateWAnalyticsConsumptionExportRequestFormat.Ndjson => "ndjson", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateWAnalyticsConsumptionFacetsRequestPeriod? ToEnum(string value) + public static CreateWAnalyticsConsumptionExportRequestFormat? ToEnum(string value) { return value switch { - "cycle" => CreateWAnalyticsConsumptionFacetsRequestPeriod.Cycle, - "days" => CreateWAnalyticsConsumptionFacetsRequestPeriod.Days, + "csv" => CreateWAnalyticsConsumptionExportRequestFormat.Csv, + "ndjson" => CreateWAnalyticsConsumptionExportRequestFormat.Ndjson, _ => null, }; } diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.g.cs deleted file mode 100644 index d263727..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequest.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAnalyticsConsumptionFacetsRequest - { - /// - /// Default Value: cycle - /// - [global::System.Text.Json.Serialization.JsonPropertyName("period")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestPeriodJsonConverter))] - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? Period { get; set; } - - /// - /// Default Value: 30 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("days")] - public int? Days { get; set; } - - /// - /// Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs.
- /// Default Value: all - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("scope")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAnalyticsConsumptionFacetsRequestScopeJsonConverter))] - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? Scope { get; set; } - - /// - /// Dimensions to compute facets for. Defaults to every dimension. Omitted dimensions come back as empty arrays. The personal route omits user and group dimensions, and the agent route omits the agent dimension. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dimensions")] - public global::System.Collections.Generic.IList? Dimensions { get; set; } - - /// - /// Map of consumption dimensions to selected values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter")] - public global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? Filter { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Default Value: cycle - /// - /// - /// Default Value: 30 - /// - /// - /// Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs.
- /// Default Value: all - /// - /// - /// Dimensions to compute facets for. Defaults to every dimension. Omitted dimensions come back as empty arrays. The personal route omits user and group dimensions, and the agent route omits the agent dimension. - /// - /// - /// Map of consumption dimensions to selected values. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAnalyticsConsumptionFacetsRequest( - global::Dust.CreateWAnalyticsConsumptionFacetsRequestPeriod? period, - int? days, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestScope? scope, - global::System.Collections.Generic.IList? dimensions, - global::Dust.CreateWAnalyticsConsumptionFacetsRequestFilter? filter) - { - this.Period = period; - this.Days = days; - this.Scope = scope; - this.Dimensions = dimensions; - this.Filter = filter; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAnalyticsConsumptionFacetsRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs deleted file mode 100644 index 216936c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestDimension.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWAnalyticsConsumptionFacetsRequestDimension - { - /// - /// - /// - Agent, - /// - /// - /// - ApiKey, - /// - /// - /// - Group, - /// - /// - /// - Model, - /// - /// - /// - Skill, - /// - /// - /// - Source, - /// - /// - /// - Tool, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAnalyticsConsumptionFacetsRequestDimensionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAnalyticsConsumptionFacetsRequestDimension value) - { - return value switch - { - CreateWAnalyticsConsumptionFacetsRequestDimension.Agent => "agent", - CreateWAnalyticsConsumptionFacetsRequestDimension.ApiKey => "api_key", - CreateWAnalyticsConsumptionFacetsRequestDimension.Group => "group", - CreateWAnalyticsConsumptionFacetsRequestDimension.Model => "model", - CreateWAnalyticsConsumptionFacetsRequestDimension.Skill => "skill", - CreateWAnalyticsConsumptionFacetsRequestDimension.Source => "source", - CreateWAnalyticsConsumptionFacetsRequestDimension.Tool => "tool", - CreateWAnalyticsConsumptionFacetsRequestDimension.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAnalyticsConsumptionFacetsRequestDimension? ToEnum(string value) - { - return value switch - { - "agent" => CreateWAnalyticsConsumptionFacetsRequestDimension.Agent, - "api_key" => CreateWAnalyticsConsumptionFacetsRequestDimension.ApiKey, - "group" => CreateWAnalyticsConsumptionFacetsRequestDimension.Group, - "model" => CreateWAnalyticsConsumptionFacetsRequestDimension.Model, - "skill" => CreateWAnalyticsConsumptionFacetsRequestDimension.Skill, - "source" => CreateWAnalyticsConsumptionFacetsRequestDimension.Source, - "tool" => CreateWAnalyticsConsumptionFacetsRequestDimension.Tool, - "user" => CreateWAnalyticsConsumptionFacetsRequestDimension.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs deleted file mode 100644 index 8ee363e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsRequestScope.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs.
- /// Default Value: all - ///
- public enum CreateWAnalyticsConsumptionFacetsRequestScope - { - /// - /// - /// - All, - /// - /// - /// - Automations, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAnalyticsConsumptionFacetsRequestScopeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAnalyticsConsumptionFacetsRequestScope value) - { - return value switch - { - CreateWAnalyticsConsumptionFacetsRequestScope.All => "all", - CreateWAnalyticsConsumptionFacetsRequestScope.Automations => "automations", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAnalyticsConsumptionFacetsRequestScope? ToEnum(string value) - { - return value switch - { - "all" => CreateWAnalyticsConsumptionFacetsRequestScope.All, - "automations" => CreateWAnalyticsConsumptionFacetsRequestScope.Automations, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.Json.g.cs deleted file mode 100644 index b517816..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAnalyticsConsumptionFacetsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponse), - jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionFacetsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionFacetsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.g.cs deleted file mode 100644 index 30fc7a7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAnalyticsConsumptionFacetsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("period")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod Period { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("facets")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets Facets { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAnalyticsConsumptionFacetsResponse( - global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod period, - global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets facets) - { - this.Period = period ?? throw new global::System.ArgumentNullException(nameof(period)); - this.Facets = facets ?? throw new global::System.ArgumentNullException(nameof(facets)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAnalyticsConsumptionFacetsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.Json.g.cs deleted file mode 100644 index 7170fbd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAnalyticsConsumptionFacetsResponseFacets - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets), - jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionFacetsResponseFacets; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.g.cs deleted file mode 100644 index a17ff07..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponseFacets.g.cs +++ /dev/null @@ -1,115 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAnalyticsConsumptionFacetsResponseFacets - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agent")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Agent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList User { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList ApiKey { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("group")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Group { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Model { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tool { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skill")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Skill { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Source { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAnalyticsConsumptionFacetsResponseFacets( - global::System.Collections.Generic.IList agent, - global::System.Collections.Generic.IList user, - global::System.Collections.Generic.IList apiKey, - global::System.Collections.Generic.IList group, - global::System.Collections.Generic.IList model, - global::System.Collections.Generic.IList tool, - global::System.Collections.Generic.IList skill, - global::System.Collections.Generic.IList source) - { - this.Agent = agent ?? throw new global::System.ArgumentNullException(nameof(agent)); - this.User = user ?? throw new global::System.ArgumentNullException(nameof(user)); - this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - this.Group = group ?? throw new global::System.ArgumentNullException(nameof(group)); - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Tool = tool ?? throw new global::System.ArgumentNullException(nameof(tool)); - this.Skill = skill ?? throw new global::System.ArgumentNullException(nameof(skill)); - this.Source = source ?? throw new global::System.ArgumentNullException(nameof(source)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAnalyticsConsumptionFacetsResponseFacets() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.Json.g.cs deleted file mode 100644 index 0b91d02..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAnalyticsConsumptionFacetsResponsePeriod - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod), - jsonSerializerContext) as global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAnalyticsConsumptionFacetsResponsePeriod; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.g.cs deleted file mode 100644 index cffed92..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAnalyticsConsumptionFacetsResponsePeriod.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAnalyticsConsumptionFacetsResponsePeriod - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startDate")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTime StartDate { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endDate")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTime EndDate { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAnalyticsConsumptionFacetsResponsePeriod( - global::System.DateTime startDate, - global::System.DateTime endDate) - { - this.StartDate = startDate; - this.EndDate = endDate; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAnalyticsConsumptionFacetsResponsePeriod() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.Json.g.cs deleted file mode 100644 index a4c0ca1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantAgentConfigurationsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantAgentConfigurationsRequest), - jsonSerializerContext) as global::Dust.CreateWAssistantAgentConfigurationsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantAgentConfigurationsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantAgentConfigurationsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantAgentConfigurationsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.g.cs deleted file mode 100644 index 6b5d158..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequest.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantAgentConfigurationsRequest - { - /// - /// Agent configuration to create - /// - [global::System.Text.Json.Serialization.JsonPropertyName("assistant")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Assistant { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Agent configuration to create - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantAgentConfigurationsRequest( - object assistant) - { - this.Assistant = assistant ?? throw new global::System.ArgumentNullException(nameof(assistant)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantAgentConfigurationsRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.Json.g.cs deleted file mode 100644 index d008de0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantAgentConfigurationsRequestAssistant - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant), - jsonSerializerContext) as global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantAgentConfigurationsRequestAssistant; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.g.cs deleted file mode 100644 index 78e4bcf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsRequestAssistant.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Agent configuration to create - /// - public sealed partial class CreateWAssistantAgentConfigurationsRequestAssistant - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.Json.g.cs deleted file mode 100644 index 04f1d9e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantAgentConfigurationsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantAgentConfigurationsResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantAgentConfigurationsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantAgentConfigurationsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantAgentConfigurationsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantAgentConfigurationsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantAgentConfigurationsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.g.cs deleted file mode 100644 index 962330e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantAgentConfigurationsResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantAgentConfigurationsResponse - { - /// - /// Agent configuration as returned by the private list endpoint. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentConfiguration")] - public global::Dust.PrivateLightAgentConfiguration? AgentConfiguration { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Agent configuration as returned by the private list endpoint. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantAgentConfigurationsResponse( - global::Dust.PrivateLightAgentConfiguration? agentConfiguration) - { - this.AgentConfiguration = agentConfiguration; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantAgentConfigurationsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.Json.g.cs deleted file mode 100644 index 184ab3e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsCancelRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCancelRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsCancelRequest2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsCancelRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCancelRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsCancelRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsCancelRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsCancelRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.g.cs deleted file mode 100644 index 8474eeb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequest2.g.cs +++ /dev/null @@ -1,56 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsCancelRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAssistantConversationsCancelRequestActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAssistantConversationsCancelRequestAction Action { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageIds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList MessageIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsCancelRequest2( - global::Dust.CreateWAssistantConversationsCancelRequestAction action, - global::System.Collections.Generic.IList messageIds) - { - this.Action = action; - this.MessageIds = messageIds ?? throw new global::System.ArgumentNullException(nameof(messageIds)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsCancelRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequestAction.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequestAction.g.cs deleted file mode 100644 index b56e4b6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelRequestAction.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWAssistantConversationsCancelRequestAction - { - /// - /// - /// - Cancel, - /// - /// - /// - GracefullyStop, - /// - /// - /// - Interrupt, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAssistantConversationsCancelRequestActionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAssistantConversationsCancelRequestAction value) - { - return value switch - { - CreateWAssistantConversationsCancelRequestAction.Cancel => "cancel", - CreateWAssistantConversationsCancelRequestAction.GracefullyStop => "gracefully_stop", - CreateWAssistantConversationsCancelRequestAction.Interrupt => "interrupt", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAssistantConversationsCancelRequestAction? ToEnum(string value) - { - return value switch - { - "cancel" => CreateWAssistantConversationsCancelRequestAction.Cancel, - "gracefully_stop" => CreateWAssistantConversationsCancelRequestAction.GracefullyStop, - "interrupt" => CreateWAssistantConversationsCancelRequestAction.Interrupt, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.Json.g.cs deleted file mode 100644 index c9b8e2b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsCancelResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCancelResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsCancelResponse2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsCancelResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCancelResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsCancelResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsCancelResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsCancelResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.g.cs deleted file mode 100644 index d4cfaaa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCancelResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsCancelResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsCancelResponse2( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsCancelResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.Json.g.cs deleted file mode 100644 index 399854b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsCompactionsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsCompactionsRequest), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsCompactionsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsCompactionsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsCompactionsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsCompactionsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.g.cs deleted file mode 100644 index 6ac1e60..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequest.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsCompactionsRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAssistantConversationsCompactionsRequestModel Model { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsCompactionsRequest( - global::Dust.CreateWAssistantConversationsCompactionsRequestModel model) - { - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsCompactionsRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.Json.g.cs deleted file mode 100644 index 8b83e2c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsCompactionsRequestModel - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsRequestModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsCompactionsRequestModel), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsCompactionsRequestModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsRequestModel? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsCompactionsRequestModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsCompactionsRequestModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsCompactionsRequestModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.g.cs deleted file mode 100644 index d637e3d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsRequestModel.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsCompactionsRequestModel - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ModelId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsCompactionsRequestModel( - string providerId, - string modelId) - { - this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); - this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsCompactionsRequestModel() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.Json.g.cs deleted file mode 100644 index 335e123..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsCompactionsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsCompactionsResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsCompactionsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsCompactionsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsCompactionsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsCompactionsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsCompactionsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.g.cs deleted file mode 100644 index 644b1cd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsCompactionsResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsCompactionsResponse - { - /// - /// A compaction message summarizing earlier conversation content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("compactionMessage")] - public global::Dust.PrivateCompactionMessage? CompactionMessage { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A compaction message summarizing earlier conversation content. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsCompactionsResponse( - global::Dust.PrivateCompactionMessage? compactionMessage) - { - this.CompactionMessage = compactionMessage; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsCompactionsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.Json.g.cs deleted file mode 100644 index d0d8f90..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsContentFragmentRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequest), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsContentFragmentRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsContentFragmentRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsContentFragmentRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.g.cs deleted file mode 100644 index abf55af..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequest.g.cs +++ /dev/null @@ -1,95 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsContentFragmentRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - - /// - /// MIME type of the content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAssistantConversationsContentFragmentRequestContext Context { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - public string? FileId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// MIME type of the content - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsContentFragmentRequest( - string title, - string content, - string contentType, - global::Dust.CreateWAssistantConversationsContentFragmentRequestContext context, - string? url, - string? fileId) - { - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - this.Url = url; - this.Context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - this.FileId = fileId; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsContentFragmentRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.Json.g.cs deleted file mode 100644 index d29f770..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsContentFragmentRequestContext - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentRequestContext? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequestContext), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsContentFragmentRequestContext; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentRequestContext? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsContentFragmentRequestContext? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentRequestContext), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsContentFragmentRequestContext; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.g.cs deleted file mode 100644 index a34d7b6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentRequestContext.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsContentFragmentRequestContext - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("profilePictureUrl")] - public string? ProfilePictureUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsContentFragmentRequestContext( - string? profilePictureUrl) - { - this.ProfilePictureUrl = profilePictureUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsContentFragmentRequestContext() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.Json.g.cs deleted file mode 100644 index 2508ce4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsContentFragmentResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsContentFragmentResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsContentFragmentResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsContentFragmentResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsContentFragmentResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsContentFragmentResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.g.cs deleted file mode 100644 index 5befca0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsContentFragmentResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsContentFragmentResponse - { - /// - /// A content fragment (file or content node attachment) in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragment")] - public global::Dust.PrivateContentFragment? ContentFragment { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A content fragment (file or content node attachment) in a conversation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsContentFragmentResponse( - global::Dust.PrivateContentFragment? contentFragment) - { - this.ContentFragment = contentFragment; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsContentFragmentResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.Json.g.cs deleted file mode 100644 index de88fcd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesEditRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesEditRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesEditRequest2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesEditRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesEditRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesEditRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesEditRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesEditRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.g.cs deleted file mode 100644 index 36e6568..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditRequest2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesEditRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mentions")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Mentions { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesEditRequest2( - string content, - global::System.Collections.Generic.IList mentions) - { - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.Mentions = mentions ?? throw new global::System.ArgumentNullException(nameof(mentions)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesEditRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.Json.g.cs deleted file mode 100644 index e77822f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesEditResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesEditResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesEditResponse2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesEditResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesEditResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesEditResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesEditResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesEditResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.g.cs deleted file mode 100644 index fbe52ba..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesEditResponse2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesEditResponse2 - { - /// - /// A user message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Dust.PrivateUserMessage? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A user message in a conversation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesEditResponse2( - global::Dust.PrivateUserMessage? message) - { - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesEditResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.Json.g.cs deleted file mode 100644 index b108278..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesFeedbacksRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.g.cs deleted file mode 100644 index e188c4f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequest2.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesFeedbacksRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("thumbDirection")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 ThumbDirection { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("feedbackContent")] - public string? FeedbackContent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isConversationShared")] - public bool? IsConversationShared { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesFeedbacksRequest2( - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 thumbDirection, - string? feedbackContent, - bool? isConversationShared) - { - this.ThumbDirection = thumbDirection; - this.FeedbackContent = feedbackContent; - this.IsConversationShared = isConversationShared; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesFeedbacksRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs deleted file mode 100644 index 40c6c09..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 - { - /// - /// - /// - Down, - /// - /// - /// - Up, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 value) - { - return value switch - { - CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.Down => "down", - CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.Up => "up", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2? ToEnum(string value) - { - return value switch - { - "down" => CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.Down, - "up" => CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2.Up, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs deleted file mode 100644 index 9740006..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesFeedbacksResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.g.cs deleted file mode 100644 index fbbba82..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesFeedbacksResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesFeedbacksResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesFeedbacksResponse2( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesFeedbacksResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.Json.g.cs deleted file mode 100644 index 0860306..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequest), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.g.cs deleted file mode 100644 index 39e6b26..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequest.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mentions")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Mentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWAssistantConversationsMessagesRequestContext Context { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skipToolsValidation")] - public bool? SkipToolsValidation { get; set; } - - /// - /// Optional per-message model override from the input-bar model picker (an explicit model pick). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelSelection")] - public global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? ModelSelection { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// Optional per-message model override from the input-bar model picker (an explicit model pick). - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesRequest( - string content, - global::System.Collections.Generic.IList mentions, - global::Dust.CreateWAssistantConversationsMessagesRequestContext context, - bool? skipToolsValidation, - global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? modelSelection) - { - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.Mentions = mentions ?? throw new global::System.ArgumentNullException(nameof(mentions)); - this.Context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - this.SkipToolsValidation = skipToolsValidation; - this.ModelSelection = modelSelection; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.Json.g.cs deleted file mode 100644 index aca25d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesRequestContext - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequestContext? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequestContext), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesRequestContext; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequestContext? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesRequestContext? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequestContext), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesRequestContext; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.g.cs deleted file mode 100644 index e5dddc8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestContext.g.cs +++ /dev/null @@ -1,89 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesRequestContext - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - public string? Timezone { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("profilePictureUrl")] - public string? ProfilePictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("origin")] - public string? Origin { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("clientSideMCPServerIds")] - public global::System.Collections.Generic.IList? ClientSideMCPServerIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedMCPServerViewIds")] - public global::System.Collections.Generic.IList? SelectedMCPServerViewIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedSpaceIds")] - public global::System.Collections.Generic.IList? SelectedSpaceIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesRequestContext( - string? timezone, - string? profilePictureUrl, - string? origin, - global::System.Collections.Generic.IList? clientSideMCPServerIds, - global::System.Collections.Generic.IList? selectedMCPServerViewIds, - global::System.Collections.Generic.IList? selectedSpaceIds) - { - this.Timezone = timezone; - this.ProfilePictureUrl = profilePictureUrl; - this.Origin = origin; - this.ClientSideMCPServerIds = clientSideMCPServerIds; - this.SelectedMCPServerViewIds = selectedMCPServerViewIds; - this.SelectedSpaceIds = selectedSpaceIds; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesRequestContext() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.Json.g.cs deleted file mode 100644 index c04f97f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesRequestModelSelection - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.g.cs deleted file mode 100644 index 3e12a03..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRequestModelSelection.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Optional per-message model override from the input-bar model picker (an explicit model pick). - /// - public sealed partial class CreateWAssistantConversationsMessagesRequestModelSelection - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ModelId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoningEffort")] - public string? ReasoningEffort { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesRequestModelSelection( - string providerId, - string modelId, - string? reasoningEffort) - { - this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); - this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); - this.ReasoningEffort = reasoningEffort; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesRequestModelSelection() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.Json.g.cs deleted file mode 100644 index de5204d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.g.cs deleted file mode 100644 index b38976c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesResponse.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesResponse - { - /// - /// A user message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Dust.PrivateUserMessage? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragments")] - public global::System.Collections.Generic.IList? ContentFragments { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentMessages")] - public global::System.Collections.Generic.IList? AgentMessages { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A user message in a conversation. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesResponse( - global::Dust.PrivateUserMessage? message, - global::System.Collections.Generic.IList? contentFragments, - global::System.Collections.Generic.IList? agentMessages) - { - this.Message = message; - this.ContentFragments = contentFragments; - this.AgentMessages = agentMessages; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.Json.g.cs deleted file mode 100644 index d0c7229..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsMessagesRetryResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRetryResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsMessagesRetryResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsMessagesRetryResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsMessagesRetryResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsMessagesRetryResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsMessagesRetryResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsMessagesRetryResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.g.cs deleted file mode 100644 index a7e8c17..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsMessagesRetryResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsMessagesRetryResponse - { - /// - /// An agent message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Dust.PrivateAgentMessage? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// An agent message in a conversation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsMessagesRetryResponse( - global::Dust.PrivateAgentMessage? message) - { - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsMessagesRetryResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.Json.g.cs deleted file mode 100644 index a0c065f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsRequest2), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.g.cs deleted file mode 100644 index 2525a22..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequest2.g.cs +++ /dev/null @@ -1,108 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAssistantConversationsRequestVisibilityJsonConverter))] - public global::Dust.CreateWAssistantConversationsRequestVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - public string? SpaceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Dust.CreateWAssistantConversationsRequestMessage? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragments")] - public global::System.Collections.Generic.IList? ContentFragments { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public global::Dust.CreateWAssistantConversationsRequestMetadata? Metadata { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedSpaceIds")] - public global::System.Collections.Generic.IList? SelectedSpaceIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skipToolsValidation")] - public bool? SkipToolsValidation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsRequest2( - string? title, - global::Dust.CreateWAssistantConversationsRequestVisibility? visibility, - string? spaceId, - global::Dust.CreateWAssistantConversationsRequestMessage? message, - global::System.Collections.Generic.IList? contentFragments, - global::Dust.CreateWAssistantConversationsRequestMetadata? metadata, - global::System.Collections.Generic.IList? selectedSpaceIds, - bool? skipToolsValidation) - { - this.Title = title; - this.Visibility = visibility; - this.SpaceId = spaceId; - this.Message = message; - this.ContentFragments = contentFragments; - this.Metadata = metadata; - this.SelectedSpaceIds = selectedSpaceIds; - this.SkipToolsValidation = skipToolsValidation; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.Json.g.cs deleted file mode 100644 index 3460f9e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsRequestContentFragment - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestContentFragment? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsRequestContentFragment), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsRequestContentFragment; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestContentFragment? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsRequestContentFragment? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsRequestContentFragment), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsRequestContentFragment; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.g.cs deleted file mode 100644 index 023cde0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestContentFragment.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsRequestContentFragment - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.Json.g.cs deleted file mode 100644 index 2b3b475..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsRequestMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsRequestMessage), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsRequestMessage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMessage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsRequestMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsRequestMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsRequestMessage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.g.cs deleted file mode 100644 index 9a94632..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessage.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsRequestMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mentions")] - public global::System.Collections.Generic.IList? Mentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context")] - public global::Dust.CreateWAssistantConversationsRequestMessageContext? Context { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsRequestMessage( - string? content, - global::System.Collections.Generic.IList? mentions, - global::Dust.CreateWAssistantConversationsRequestMessageContext? context) - { - this.Content = content; - this.Mentions = mentions; - this.Context = context; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsRequestMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.Json.g.cs deleted file mode 100644 index f920925..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsRequestMessageContext - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMessageContext? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsRequestMessageContext), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsRequestMessageContext; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMessageContext? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsRequestMessageContext? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsRequestMessageContext), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsRequestMessageContext; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.g.cs deleted file mode 100644 index 5950939..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMessageContext.g.cs +++ /dev/null @@ -1,89 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsRequestMessageContext - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - public string? Timezone { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("profilePictureUrl")] - public string? ProfilePictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("origin")] - public string? Origin { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("clientSideMCPServerIds")] - public global::System.Collections.Generic.IList? ClientSideMCPServerIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedMCPServerViewIds")] - public global::System.Collections.Generic.IList? SelectedMCPServerViewIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedSpaceIds")] - public global::System.Collections.Generic.IList? SelectedSpaceIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsRequestMessageContext( - string? timezone, - string? profilePictureUrl, - string? origin, - global::System.Collections.Generic.IList? clientSideMCPServerIds, - global::System.Collections.Generic.IList? selectedMCPServerViewIds, - global::System.Collections.Generic.IList? selectedSpaceIds) - { - this.Timezone = timezone; - this.ProfilePictureUrl = profilePictureUrl; - this.Origin = origin; - this.ClientSideMCPServerIds = clientSideMCPServerIds; - this.SelectedMCPServerViewIds = selectedMCPServerViewIds; - this.SelectedSpaceIds = selectedSpaceIds; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsRequestMessageContext() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.Json.g.cs deleted file mode 100644 index e2c3981..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsRequestMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsRequestMetadata), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsRequestMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsRequestMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsRequestMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsRequestMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsRequestMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.g.cs deleted file mode 100644 index bc2a734..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestMetadata.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsRequestMetadata - { - /// - /// Use the database-backed filesystem for a fresh standalone conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("useDatabaseFileSystem")] - public bool? UseDatabaseFileSystem { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Use the database-backed filesystem for a fresh standalone conversation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsRequestMetadata( - bool? useDatabaseFileSystem) - { - this.UseDatabaseFileSystem = useDatabaseFileSystem; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsRequestMetadata() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestVisibility.g.cs deleted file mode 100644 index ed44c12..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsRequestVisibility.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWAssistantConversationsRequestVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Test, - /// - /// - /// - Unlisted, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAssistantConversationsRequestVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAssistantConversationsRequestVisibility value) - { - return value switch - { - CreateWAssistantConversationsRequestVisibility.Deleted => "deleted", - CreateWAssistantConversationsRequestVisibility.Test => "test", - CreateWAssistantConversationsRequestVisibility.Unlisted => "unlisted", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAssistantConversationsRequestVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => CreateWAssistantConversationsRequestVisibility.Deleted, - "test" => CreateWAssistantConversationsRequestVisibility.Test, - "unlisted" => CreateWAssistantConversationsRequestVisibility.Unlisted, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.Json.g.cs deleted file mode 100644 index 3e03d55..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.g.cs deleted file mode 100644 index 591eeb7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsResponse.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsResponse - { - /// - /// Full conversation including content, owner, and visibility. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversation")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateFullConversationJsonConverter))] - public global::Dust.PrivateFullConversation? Conversation { get; set; } - - /// - /// A user message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Dust.PrivateUserMessage? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragments")] - public global::System.Collections.Generic.IList? ContentFragments { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Full conversation including content, owner, and visibility. - /// - /// - /// A user message in a conversation. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsResponse( - global::Dust.PrivateFullConversation? conversation, - global::Dust.PrivateUserMessage? message, - global::System.Collections.Generic.IList? contentFragments) - { - this.Conversation = conversation; - this.Message = message; - this.ContentFragments = contentFragments; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.Json.g.cs deleted file mode 100644 index ccf62eb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsSelectedSpacesRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequest), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsSelectedSpacesRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsSelectedSpacesRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsSelectedSpacesRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.g.cs deleted file mode 100644 index 5b3dfe9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequest.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsSelectedSpacesRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWAssistantConversationsSelectedSpacesRequestModeJsonConverter))] - public global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode Mode { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceIds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList SpaceIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsSelectedSpacesRequest( - global::System.Collections.Generic.IList spaceIds, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode mode) - { - this.Mode = mode; - this.SpaceIds = spaceIds ?? throw new global::System.ArgumentNullException(nameof(spaceIds)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsSelectedSpacesRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs deleted file mode 100644 index 1cfad83..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesRequestMode.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWAssistantConversationsSelectedSpacesRequestMode - { - /// - /// - /// - Add, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWAssistantConversationsSelectedSpacesRequestModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWAssistantConversationsSelectedSpacesRequestMode value) - { - return value switch - { - CreateWAssistantConversationsSelectedSpacesRequestMode.Add => "add", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWAssistantConversationsSelectedSpacesRequestMode? ToEnum(string value) - { - return value switch - { - "add" => CreateWAssistantConversationsSelectedSpacesRequestMode.Add, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.Json.g.cs deleted file mode 100644 index fd41bf0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponse), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.g.cs deleted file mode 100644 index d012a20..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponse.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedSpaces")] - public global::System.Collections.Generic.IList>? SelectedSpaces { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("effectiveAcl")] - public global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? EffectiveAcl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsSelectedSpacesResponse( - global::System.Collections.Generic.IList>? selectedSpaces, - global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? effectiveAcl) - { - this.SelectedSpaces = selectedSpaces; - this.EffectiveAcl = effectiveAcl; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsSelectedSpacesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.Json.g.cs deleted file mode 100644 index e015622..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.g.cs deleted file mode 100644 index 7edd537..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceIds")] - public global::System.Collections.Generic.IList? SpaceIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("viewerMustHaveAll")] - public bool? ViewerMustHaveAll { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl( - global::System.Collections.Generic.IList? spaceIds, - bool? viewerMustHaveAll) - { - this.SpaceIds = spaceIds; - this.ViewerMustHaveAll = viewerMustHaveAll; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsSelectedSpacesResponseEffectiveAcl() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.Json.g.cs deleted file mode 100644 index 2162805..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace), - jsonSerializerContext) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.g.cs deleted file mode 100644 index 18a803e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selected")] - public bool? Selected { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace( - bool? selected) - { - this.Selected = selected; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWAssistantConversationsSelectedSpacesResponseSelectedSpace() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.Json.g.cs deleted file mode 100644 index 0f29eb2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWFilesRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWFilesRequest2), - jsonSerializerContext) as global::Dust.CreateWFilesRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWFilesRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWFilesRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWFilesRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.g.cs deleted file mode 100644 index f7f550c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWFilesRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file")] - public byte[]? File { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filename")] - public string? Filename { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWFilesRequest2( - byte[]? file, - string? filename) - { - this.File = file; - this.Filename = filename; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWFilesRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.Json.g.cs deleted file mode 100644 index 4d788ba..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWFilesRequest3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequest3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWFilesRequest3), - jsonSerializerContext) as global::Dust.CreateWFilesRequest3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequest3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWFilesRequest3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWFilesRequest3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWFilesRequest3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.g.cs deleted file mode 100644 index e0fecd9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequest3.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWFilesRequest3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FileName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSize")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double FileSize { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("useCase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWFilesRequestUseCaseJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWFilesRequestUseCase UseCase { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("useCaseMetadata")] - public object? UseCaseMetadata { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWFilesRequest3( - string contentType, - string fileName, - double fileSize, - global::Dust.CreateWFilesRequestUseCase useCase, - object? useCaseMetadata) - { - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - this.FileName = fileName ?? throw new global::System.ArgumentNullException(nameof(fileName)); - this.FileSize = fileSize; - this.UseCase = useCase; - this.UseCaseMetadata = useCaseMetadata; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWFilesRequest3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCase.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCase.g.cs deleted file mode 100644 index a7b6109..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCase.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWFilesRequestUseCase - { - /// - /// - /// - Avatar, - /// - /// - /// - Conversation, - /// - /// - /// - FoldersDocument, - /// - /// - /// - ProjectContext, - /// - /// - /// - SkillAttachment, - /// - /// - /// - UpsertDocument, - /// - /// - /// - UpsertTable, - /// - /// - /// - WorkspaceBranding, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWFilesRequestUseCaseExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWFilesRequestUseCase value) - { - return value switch - { - CreateWFilesRequestUseCase.Avatar => "avatar", - CreateWFilesRequestUseCase.Conversation => "conversation", - CreateWFilesRequestUseCase.FoldersDocument => "folders_document", - CreateWFilesRequestUseCase.ProjectContext => "project_context", - CreateWFilesRequestUseCase.SkillAttachment => "skill_attachment", - CreateWFilesRequestUseCase.UpsertDocument => "upsert_document", - CreateWFilesRequestUseCase.UpsertTable => "upsert_table", - CreateWFilesRequestUseCase.WorkspaceBranding => "workspace_branding", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWFilesRequestUseCase? ToEnum(string value) - { - return value switch - { - "avatar" => CreateWFilesRequestUseCase.Avatar, - "conversation" => CreateWFilesRequestUseCase.Conversation, - "folders_document" => CreateWFilesRequestUseCase.FoldersDocument, - "project_context" => CreateWFilesRequestUseCase.ProjectContext, - "skill_attachment" => CreateWFilesRequestUseCase.SkillAttachment, - "upsert_document" => CreateWFilesRequestUseCase.UpsertDocument, - "upsert_table" => CreateWFilesRequestUseCase.UpsertTable, - "workspace_branding" => CreateWFilesRequestUseCase.WorkspaceBranding, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.Json.g.cs deleted file mode 100644 index b9bb223..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWFilesRequestUseCaseMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequestUseCaseMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWFilesRequestUseCaseMetadata), - jsonSerializerContext) as global::Dust.CreateWFilesRequestUseCaseMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWFilesRequestUseCaseMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWFilesRequestUseCaseMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWFilesRequestUseCaseMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWFilesRequestUseCaseMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.g.cs deleted file mode 100644 index 328c0a2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesRequestUseCaseMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWFilesRequestUseCaseMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.Json.g.cs deleted file mode 100644 index f6fc314..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWFilesResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWFilesResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWFilesResponse2), - jsonSerializerContext) as global::Dust.CreateWFilesResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWFilesResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWFilesResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWFilesResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWFilesResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.g.cs deleted file mode 100644 index 8cbe822..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWFilesResponse2 - { - /// - /// File record with a pre-signed upload URL. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file")] - public global::Dust.PrivateFileWithUploadUrl? File { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// File record with a pre-signed upload URL. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWFilesResponse2( - global::Dust.PrivateFileWithUploadUrl? file) - { - this.File = file; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWFilesResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.Json.g.cs deleted file mode 100644 index b7383b7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWFilesResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWFilesResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWFilesResponse3), - jsonSerializerContext) as global::Dust.CreateWFilesResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWFilesResponse3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWFilesResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWFilesResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWFilesResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.g.cs deleted file mode 100644 index 701c61c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWFilesResponse3.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWFilesResponse3 - { - /// - /// File record with a pre-signed upload URL. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file")] - public global::Dust.PrivateFileWithUploadUrl? File { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// File record with a pre-signed upload URL. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWFilesResponse3( - global::Dust.PrivateFileWithUploadUrl? file) - { - this.File = file; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWFilesResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.Json.g.cs deleted file mode 100644 index 4f10cf7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWSpacesDataSourceViewsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesDataSourceViewsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWSpacesDataSourceViewsRequest), - jsonSerializerContext) as global::Dust.CreateWSpacesDataSourceViewsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesDataSourceViewsRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWSpacesDataSourceViewsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWSpacesDataSourceViewsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWSpacesDataSourceViewsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.g.cs deleted file mode 100644 index 923f55a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsRequest.g.cs +++ /dev/null @@ -1,54 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWSpacesDataSourceViewsRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string DataSourceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentsIn")] - public global::System.Collections.Generic.IList? ParentsIn { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWSpacesDataSourceViewsRequest( - string dataSourceId, - global::System.Collections.Generic.IList? parentsIn) - { - this.DataSourceId = dataSourceId ?? throw new global::System.ArgumentNullException(nameof(dataSourceId)); - this.ParentsIn = parentsIn; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWSpacesDataSourceViewsRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.Json.g.cs deleted file mode 100644 index cab100d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWSpacesDataSourceViewsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesDataSourceViewsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWSpacesDataSourceViewsResponse), - jsonSerializerContext) as global::Dust.CreateWSpacesDataSourceViewsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesDataSourceViewsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWSpacesDataSourceViewsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWSpacesDataSourceViewsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWSpacesDataSourceViewsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.g.cs deleted file mode 100644 index 3865e57..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesDataSourceViewsResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWSpacesDataSourceViewsResponse - { - /// - /// A view on a data source within a space. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceView")] - public global::Dust.PrivateDataSourceView? DataSourceView { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A view on a data source within a space. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWSpacesDataSourceViewsResponse( - global::Dust.PrivateDataSourceView? dataSourceView) - { - this.DataSourceView = dataSourceView; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWSpacesDataSourceViewsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.Json.g.cs deleted file mode 100644 index d0d22de..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWSpacesRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWSpacesRequest), - jsonSerializerContext) as global::Dust.CreateWSpacesRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWSpacesRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWSpacesRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWSpacesRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.g.cs deleted file mode 100644 index aa9a570..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequest.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWSpacesRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isRestricted")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsRestricted { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceKind")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWSpacesRequestSpaceKindJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.CreateWSpacesRequestSpaceKind SpaceKind { get; set; } - - /// - /// The space's manual member list. Omitted or empty means the space starts with no manual member. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("memberIds")] - public global::System.Collections.Generic.IList? MemberIds { get; set; } - - /// - /// The groups given access to the space. Omitted or empty means no group has access to it. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groupIds")] - public global::System.Collections.Generic.IList? GroupIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// The space's manual member list. Omitted or empty means the space starts with no manual member. - /// - /// - /// The groups given access to the space. Omitted or empty means no group has access to it. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWSpacesRequest( - bool isRestricted, - string name, - global::Dust.CreateWSpacesRequestSpaceKind spaceKind, - global::System.Collections.Generic.IList? memberIds, - global::System.Collections.Generic.IList? groupIds) - { - this.IsRestricted = isRestricted; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.SpaceKind = spaceKind; - this.MemberIds = memberIds; - this.GroupIds = groupIds; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWSpacesRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequestSpaceKind.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequestSpaceKind.g.cs deleted file mode 100644 index dd945d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesRequestSpaceKind.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWSpacesRequestSpaceKind - { - /// - /// - /// - Project, - /// - /// - /// - Regular, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWSpacesRequestSpaceKindExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWSpacesRequestSpaceKind value) - { - return value switch - { - CreateWSpacesRequestSpaceKind.Project => "project", - CreateWSpacesRequestSpaceKind.Regular => "regular", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWSpacesRequestSpaceKind? ToEnum(string value) - { - return value switch - { - "project" => CreateWSpacesRequestSpaceKind.Project, - "regular" => CreateWSpacesRequestSpaceKind.Regular, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.Json.g.cs deleted file mode 100644 index 81660b9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWSpacesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWSpacesResponse), - jsonSerializerContext) as global::Dust.CreateWSpacesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWSpacesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWSpacesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWSpacesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWSpacesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.g.cs deleted file mode 100644 index c808177..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWSpacesResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWSpacesResponse - { - /// - /// A space in the workspace. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("space")] - public global::Dust.PrivateSpace? Space { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A space in the workspace. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWSpacesResponse( - global::Dust.PrivateSpace? space) - { - this.Space = space; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWSpacesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.Json.g.cs deleted file mode 100644 index 1c1808f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWorkosAuthenticateRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWorkosAuthenticateRequest), - jsonSerializerContext) as global::Dust.CreateWorkosAuthenticateRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWorkosAuthenticateRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWorkosAuthenticateRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWorkosAuthenticateRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.g.cs deleted file mode 100644 index b7be3a2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWorkosAuthenticateRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("grant_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.CreateWorkosAuthenticateRequestGrantTypeJsonConverter))] - public global::Dust.CreateWorkosAuthenticateRequestGrantType? GrantType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code_verifier")] - public string? CodeVerifier { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWorkosAuthenticateRequest( - string? code, - global::Dust.CreateWorkosAuthenticateRequestGrantType? grantType, - string? refreshToken, - string? codeVerifier) - { - this.Code = code; - this.GrantType = grantType; - this.RefreshToken = refreshToken; - this.CodeVerifier = codeVerifier; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWorkosAuthenticateRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequestGrantType.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequestGrantType.g.cs deleted file mode 100644 index 5acacac..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateRequestGrantType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum CreateWorkosAuthenticateRequestGrantType - { - /// - /// - /// - RefreshToken, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateWorkosAuthenticateRequestGrantTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateWorkosAuthenticateRequestGrantType value) - { - return value switch - { - CreateWorkosAuthenticateRequestGrantType.RefreshToken => "refresh_token", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateWorkosAuthenticateRequestGrantType? ToEnum(string value) - { - return value switch - { - "refresh_token" => CreateWorkosAuthenticateRequestGrantType.RefreshToken, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.Json.g.cs deleted file mode 100644 index 27e818a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWorkosAuthenticateResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWorkosAuthenticateResponse), - jsonSerializerContext) as global::Dust.CreateWorkosAuthenticateResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWorkosAuthenticateResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWorkosAuthenticateResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWorkosAuthenticateResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.g.cs deleted file mode 100644 index 6e2d8fb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponse.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWorkosAuthenticateResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("accessToken")] - public string? AccessToken { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("refreshToken")] - public string? RefreshToken { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public object? User { get; set; } - - /// - /// Token expiry in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expiresIn")] - public int? ExpiresIn { get; set; } - - /// - /// Token expiry date in milliseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expirationDate")] - public int? ExpirationDate { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Token expiry in seconds - /// - /// - /// Token expiry date in milliseconds - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWorkosAuthenticateResponse( - string? accessToken, - string? refreshToken, - object? user, - int? expiresIn, - int? expirationDate) - { - this.AccessToken = accessToken; - this.RefreshToken = refreshToken; - this.User = user; - this.ExpiresIn = expiresIn; - this.ExpirationDate = expirationDate; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWorkosAuthenticateResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.Json.g.cs deleted file mode 100644 index 7c54835..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWorkosAuthenticateResponseUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateResponseUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWorkosAuthenticateResponseUser), - jsonSerializerContext) as global::Dust.CreateWorkosAuthenticateResponseUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWorkosAuthenticateResponseUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWorkosAuthenticateResponseUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWorkosAuthenticateResponseUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWorkosAuthenticateResponseUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.g.cs deleted file mode 100644 index aabc60d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosAuthenticateResponseUser.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWorkosAuthenticateResponseUser - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.Json.g.cs deleted file mode 100644 index 84cd8f8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWorkosRevokeSessionRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWorkosRevokeSessionRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWorkosRevokeSessionRequest), - jsonSerializerContext) as global::Dust.CreateWorkosRevokeSessionRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWorkosRevokeSessionRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWorkosRevokeSessionRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWorkosRevokeSessionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWorkosRevokeSessionRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.g.cs deleted file mode 100644 index ab26ca1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionRequest.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWorkosRevokeSessionRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("session_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SessionId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWorkosRevokeSessionRequest( - string sessionId) - { - this.SessionId = sessionId ?? throw new global::System.ArgumentNullException(nameof(sessionId)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWorkosRevokeSessionRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.Json.g.cs deleted file mode 100644 index 538f3c2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class CreateWorkosRevokeSessionResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.CreateWorkosRevokeSessionResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.CreateWorkosRevokeSessionResponse), - jsonSerializerContext) as global::Dust.CreateWorkosRevokeSessionResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.CreateWorkosRevokeSessionResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.CreateWorkosRevokeSessionResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.CreateWorkosRevokeSessionResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.CreateWorkosRevokeSessionResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.g.cs deleted file mode 100644 index 07e705f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.CreateWorkosRevokeSessionResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class CreateWorkosRevokeSessionResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateWorkosRevokeSessionResponse( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateWorkosRevokeSessionResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs deleted file mode 100644 index 23e6400..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class DeleteWAssistantConversationsMessagesFeedbacksResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2), - jsonSerializerContext) as global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.g.cs deleted file mode 100644 index bf4b3ac..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesFeedbacksResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class DeleteWAssistantConversationsMessagesFeedbacksResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DeleteWAssistantConversationsMessagesFeedbacksResponse2( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public DeleteWAssistantConversationsMessagesFeedbacksResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.Json.g.cs deleted file mode 100644 index b5b9b7b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class DeleteWAssistantConversationsMessagesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.DeleteWAssistantConversationsMessagesResponse), - jsonSerializerContext) as global::Dust.DeleteWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsMessagesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.DeleteWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.DeleteWAssistantConversationsMessagesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.DeleteWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.g.cs deleted file mode 100644 index ad12def..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsMessagesResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class DeleteWAssistantConversationsMessagesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DeleteWAssistantConversationsMessagesResponse( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public DeleteWAssistantConversationsMessagesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.Json.g.cs deleted file mode 100644 index e0960fa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class DeleteWAssistantConversationsWakeupsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsWakeupsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.DeleteWAssistantConversationsWakeupsResponse), - jsonSerializerContext) as global::Dust.DeleteWAssistantConversationsWakeupsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.DeleteWAssistantConversationsWakeupsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.DeleteWAssistantConversationsWakeupsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.DeleteWAssistantConversationsWakeupsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.DeleteWAssistantConversationsWakeupsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.g.cs deleted file mode 100644 index 1b4e3a6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWAssistantConversationsWakeupsResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class DeleteWAssistantConversationsWakeupsResponse - { - /// - /// A wake-up scheduled in a conversation to re-invoke the agent at a later time. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wakeUp")] - public global::Dust.PrivateWakeUp? WakeUp { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A wake-up scheduled in a conversation to re-invoke the agent at a later time. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DeleteWAssistantConversationsWakeupsResponse( - global::Dust.PrivateWakeUp? wakeUp) - { - this.WakeUp = wakeUp; - } - - /// - /// Initializes a new instance of the class. - /// - public DeleteWAssistantConversationsWakeupsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesDataSourceViewsForce.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesDataSourceViewsForce.g.cs deleted file mode 100644 index 481e838..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesDataSourceViewsForce.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum DeleteWSpacesDataSourceViewsForce - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeleteWSpacesDataSourceViewsForceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeleteWSpacesDataSourceViewsForce value) - { - return value switch - { - DeleteWSpacesDataSourceViewsForce.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeleteWSpacesDataSourceViewsForce? ToEnum(string value) - { - return value switch - { - "true" => DeleteWSpacesDataSourceViewsForce.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesForce.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesForce.g.cs deleted file mode 100644 index 3f3338b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesForce.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum DeleteWSpacesForce - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeleteWSpacesForceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeleteWSpacesForce value) - { - return value switch - { - DeleteWSpacesForce.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeleteWSpacesForce? ToEnum(string value) - { - return value switch - { - "true" => DeleteWSpacesForce.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.Json.g.cs deleted file mode 100644 index 9effd47..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class DeleteWSpacesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.DeleteWSpacesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.DeleteWSpacesResponse), - jsonSerializerContext) as global::Dust.DeleteWSpacesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.DeleteWSpacesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.DeleteWSpacesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.DeleteWSpacesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.DeleteWSpacesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.g.cs deleted file mode 100644 index 0daa1f9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.DeleteWSpacesResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class DeleteWSpacesResponse - { - /// - /// A space in the workspace. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("space")] - public global::Dust.PrivateSpace? Space { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A space in the workspace. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DeleteWSpacesResponse( - global::Dust.PrivateSpace? space) - { - this.Space = space; - } - - /// - /// Initializes a new instance of the class. - /// - public DeleteWSpacesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.Json.g.cs deleted file mode 100644 index b47f4d5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetGoTemplateDraftResponseBody - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBody? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetGoTemplateDraftResponseBody), - jsonSerializerContext) as global::Dust.GetGoTemplateDraftResponseBody; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBody? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetGoTemplateDraftResponseBody? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetGoTemplateDraftResponseBody), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetGoTemplateDraftResponseBody; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.g.cs deleted file mode 100644 index 856af09..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBody.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Composer draft resolved from a Contentful conversation go template. - /// - public sealed partial class GetGoTemplateDraftResponseBody - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attachments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Attachments { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attachmentErrors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList AttachmentErrors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetGoTemplateDraftResponseBody( - string title, - string prompt, - global::System.Collections.Generic.IList attachments, - global::System.Collections.Generic.IList attachmentErrors) - { - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.Attachments = attachments ?? throw new global::System.ArgumentNullException(nameof(attachments)); - this.AttachmentErrors = attachmentErrors ?? throw new global::System.ArgumentNullException(nameof(attachmentErrors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetGoTemplateDraftResponseBody() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.Json.g.cs deleted file mode 100644 index 4f54202..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetGoTemplateDraftResponseBodyAttachment - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBodyAttachment? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachment), - jsonSerializerContext) as global::Dust.GetGoTemplateDraftResponseBodyAttachment; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBodyAttachment? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetGoTemplateDraftResponseBodyAttachment? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachment), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetGoTemplateDraftResponseBodyAttachment; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.g.cs deleted file mode 100644 index 178a2d2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachment.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetGoTemplateDraftResponseBodyAttachment - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FileId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("size")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Size { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Url { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetGoTemplateDraftResponseBodyAttachment( - string fileId, - string name, - string contentType, - int size, - string url) - { - this.FileId = fileId ?? throw new global::System.ArgumentNullException(nameof(fileId)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - this.Size = size; - this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetGoTemplateDraftResponseBodyAttachment() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.Json.g.cs deleted file mode 100644 index 541e8bd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetGoTemplateDraftResponseBodyAttachmentError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBodyAttachmentError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachmentError), - jsonSerializerContext) as global::Dust.GetGoTemplateDraftResponseBodyAttachmentError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetGoTemplateDraftResponseBodyAttachmentError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetGoTemplateDraftResponseBodyAttachmentError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetGoTemplateDraftResponseBodyAttachmentError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetGoTemplateDraftResponseBodyAttachmentError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.g.cs b/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.g.cs deleted file mode 100644 index 9d6fe3f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetGoTemplateDraftResponseBodyAttachmentError.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetGoTemplateDraftResponseBodyAttachmentError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Url { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetGoTemplateDraftResponseBodyAttachmentError( - string url, - string message) - { - this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetGoTemplateDraftResponseBodyAttachmentError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetUserResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetUserResponse.Json.g.cs deleted file mode 100644 index b9569ab..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetUserResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetUserResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetUserResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetUserResponse), - jsonSerializerContext) as global::Dust.GetUserResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetUserResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetUserResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetUserResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetUserResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetUserResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetUserResponse.g.cs deleted file mode 100644 index 76073aa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetUserResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetUserResponse - { - /// - /// Authenticated user with their workspaces and subscriber hash. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public global::Dust.PrivateUser? User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Authenticated user with their workspaces and subscriber hash. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetUserResponse( - global::Dust.PrivateUser? user) - { - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public GetUserResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.Json.g.cs deleted file mode 100644 index 6060b84..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantAgentConfigurationsResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantAgentConfigurationsResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantAgentConfigurationsResponse3), - jsonSerializerContext) as global::Dust.GetWAssistantAgentConfigurationsResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantAgentConfigurationsResponse3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantAgentConfigurationsResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantAgentConfigurationsResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantAgentConfigurationsResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.g.cs deleted file mode 100644 index 9e33593..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsResponse3.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantAgentConfigurationsResponse3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentConfigurations")] - public global::System.Collections.Generic.IList? AgentConfigurations { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantAgentConfigurationsResponse3( - global::System.Collections.Generic.IList? agentConfigurations) - { - this.AgentConfigurations = agentConfigurations; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantAgentConfigurationsResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsView2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsView2.g.cs deleted file mode 100644 index 2ce27bb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsView2.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantAgentConfigurationsView2 - { - /// - /// - /// - AdminInternal, - /// - /// - /// - All, - /// - /// - /// - Analytics, - /// - /// - /// - Favorites, - /// - /// - /// - Global, - /// - /// - /// - List, - /// - /// - /// - ManageUnrestricted, - /// - /// - /// - Published, - /// - /// - /// - Workspace, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantAgentConfigurationsView2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantAgentConfigurationsView2 value) - { - return value switch - { - GetWAssistantAgentConfigurationsView2.AdminInternal => "admin_internal", - GetWAssistantAgentConfigurationsView2.All => "all", - GetWAssistantAgentConfigurationsView2.Analytics => "analytics", - GetWAssistantAgentConfigurationsView2.Favorites => "favorites", - GetWAssistantAgentConfigurationsView2.Global => "global", - GetWAssistantAgentConfigurationsView2.List => "list", - GetWAssistantAgentConfigurationsView2.ManageUnrestricted => "manage_unrestricted", - GetWAssistantAgentConfigurationsView2.Published => "published", - GetWAssistantAgentConfigurationsView2.Workspace => "workspace", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantAgentConfigurationsView2? ToEnum(string value) - { - return value switch - { - "admin_internal" => GetWAssistantAgentConfigurationsView2.AdminInternal, - "all" => GetWAssistantAgentConfigurationsView2.All, - "analytics" => GetWAssistantAgentConfigurationsView2.Analytics, - "favorites" => GetWAssistantAgentConfigurationsView2.Favorites, - "global" => GetWAssistantAgentConfigurationsView2.Global, - "list" => GetWAssistantAgentConfigurationsView2.List, - "manage_unrestricted" => GetWAssistantAgentConfigurationsView2.ManageUnrestricted, - "published" => GetWAssistantAgentConfigurationsView2.Published, - "workspace" => GetWAssistantAgentConfigurationsView2.Workspace, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithAuthors2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithAuthors2.g.cs deleted file mode 100644 index a11acb9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithAuthors2.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantAgentConfigurationsWithAuthors2 - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantAgentConfigurationsWithAuthors2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantAgentConfigurationsWithAuthors2 value) - { - return value switch - { - GetWAssistantAgentConfigurationsWithAuthors2.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantAgentConfigurationsWithAuthors2? ToEnum(string value) - { - return value switch - { - "true" => GetWAssistantAgentConfigurationsWithAuthors2.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithEditors.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithEditors.g.cs deleted file mode 100644 index 1c65f1f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithEditors.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantAgentConfigurationsWithEditors - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantAgentConfigurationsWithEditorsExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantAgentConfigurationsWithEditors value) - { - return value switch - { - GetWAssistantAgentConfigurationsWithEditors.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantAgentConfigurationsWithEditors? ToEnum(string value) - { - return value switch - { - "true" => GetWAssistantAgentConfigurationsWithEditors.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs deleted file mode 100644 index 4ed8e1c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithFeedbacks.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantAgentConfigurationsWithFeedbacks - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantAgentConfigurationsWithFeedbacksExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantAgentConfigurationsWithFeedbacks value) - { - return value switch - { - GetWAssistantAgentConfigurationsWithFeedbacks.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantAgentConfigurationsWithFeedbacks? ToEnum(string value) - { - return value switch - { - "true" => GetWAssistantAgentConfigurationsWithFeedbacks.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithUsage.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithUsage.g.cs deleted file mode 100644 index ba820e5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantAgentConfigurationsWithUsage.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantAgentConfigurationsWithUsage - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantAgentConfigurationsWithUsageExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantAgentConfigurationsWithUsage value) - { - return value switch - { - GetWAssistantAgentConfigurationsWithUsage.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantAgentConfigurationsWithUsage? ToEnum(string value) - { - return value switch - { - "true" => GetWAssistantAgentConfigurationsWithUsage.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.Json.g.cs deleted file mode 100644 index 7f5e591..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsConsumptionResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsConsumptionResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsConsumptionResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsConsumptionResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsConsumptionResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsConsumptionResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsConsumptionResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsConsumptionResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.g.cs deleted file mode 100644 index e29e84a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsConsumptionResponse.g.cs +++ /dev/null @@ -1,56 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsConsumptionResponse - { - /// - /// Latest stable credits billed across completed messages belonging directly to the conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("billedCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double BilledCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("details")] - public global::Dust.PrivateConversationConsumptionDetails? Details { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Latest stable credits billed across completed messages belonging directly to the conversation. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsConsumptionResponse( - double billedCredits, - global::Dust.PrivateConversationConsumptionDetails? details) - { - this.BilledCredits = billedCredits; - this.Details = details; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsConsumptionResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.Json.g.cs deleted file mode 100644 index 18dfe5f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsFeedbacksResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsFeedbacksResponse2), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsFeedbacksResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsFeedbacksResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsFeedbacksResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsFeedbacksResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsFeedbacksResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.g.cs deleted file mode 100644 index daee7de..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsFeedbacksResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsFeedbacksResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("feedbacks")] - public global::System.Collections.Generic.IList? Feedbacks { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsFeedbacksResponse2( - global::System.Collections.Generic.IList? feedbacks) - { - this.Feedbacks = feedbacks; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsFeedbacksResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.Json.g.cs deleted file mode 100644 index 67633e6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesActionsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesActionsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesActionsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesActionsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesActionsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesActionsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesActionsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.g.cs deleted file mode 100644 index 27c31ba..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponse.g.cs +++ /dev/null @@ -1,56 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsMessagesActionsResponse - { - /// - /// An MCP action with its output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - public global::Dust.PrivateAgentMCPAction? Action { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageStatus")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.GetWAssistantConversationsMessagesActionsResponseMessageStatusJsonConverter))] - public global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus? MessageStatus { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// An MCP action with its output. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesActionsResponse( - global::Dust.PrivateAgentMCPAction? action, - global::Dust.GetWAssistantConversationsMessagesActionsResponseMessageStatus? messageStatus) - { - this.Action = action; - this.MessageStatus = messageStatus; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesActionsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs deleted file mode 100644 index 443894f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesActionsResponseMessageStatus.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantConversationsMessagesActionsResponseMessageStatus - { - /// - /// - /// - Cancelled, - /// - /// - /// - Created, - /// - /// - /// - Failed, - /// - /// - /// - GracefullyStopped, - /// - /// - /// - Succeeded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantConversationsMessagesActionsResponseMessageStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantConversationsMessagesActionsResponseMessageStatus value) - { - return value switch - { - GetWAssistantConversationsMessagesActionsResponseMessageStatus.Cancelled => "cancelled", - GetWAssistantConversationsMessagesActionsResponseMessageStatus.Created => "created", - GetWAssistantConversationsMessagesActionsResponseMessageStatus.Failed => "failed", - GetWAssistantConversationsMessagesActionsResponseMessageStatus.GracefullyStopped => "gracefully_stopped", - GetWAssistantConversationsMessagesActionsResponseMessageStatus.Succeeded => "succeeded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantConversationsMessagesActionsResponseMessageStatus? ToEnum(string value) - { - return value switch - { - "cancelled" => GetWAssistantConversationsMessagesActionsResponseMessageStatus.Cancelled, - "created" => GetWAssistantConversationsMessagesActionsResponseMessageStatus.Created, - "failed" => GetWAssistantConversationsMessagesActionsResponseMessageStatus.Failed, - "gracefully_stopped" => GetWAssistantConversationsMessagesActionsResponseMessageStatus.GracefullyStopped, - "succeeded" => GetWAssistantConversationsMessagesActionsResponseMessageStatus.Succeeded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.Json.g.cs deleted file mode 100644 index c8c1544..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.g.cs deleted file mode 100644 index 00f87de..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponse.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponse - { - /// - /// Authoritative credits billed directly for this agent message, excluding sub-agents. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("billedCredits")] - public double? BilledCredits { get; set; } - - /// - /// Total credits billed by this message and its recursively spawned sub-agents. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("totalBilledCredits")] - public double? TotalBilledCredits { get; set; } - - /// - /// Additive attribution reconciled to totalBilledCredits through model input rows. Each run-agent tool row includes its sub-agent subtree's bill. Null when no stored version is complete. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("details")] - public global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? Details { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Authoritative credits billed directly for this agent message, excluding sub-agents. - /// - /// - /// Total credits billed by this message and its recursively spawned sub-agents. - /// - /// - /// Additive attribution reconciled to totalBilledCredits through model input rows. Each run-agent tool row includes its sub-agent subtree's bill. Null when no stored version is complete. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesConsumptionResponse( - double? billedCredits, - double? totalBilledCredits, - global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? details) - { - this.BilledCredits = billedCredits; - this.TotalBilledCredits = totalBilledCredits; - this.Details = details; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesConsumptionResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.Json.g.cs deleted file mode 100644 index 1fc35eb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponseDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.g.cs deleted file mode 100644 index 4cfd266..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetails.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Additive attribution reconciled to totalBilledCredits through model input rows. Each run-agent tool row includes its sub-agent subtree's bill. Null when no stored version is complete. - /// - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponseDetails - { - /// - /// Attribution version used for this breakdown. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attributionVersion")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int AttributionVersion { get; set; } - - /// - /// Non-tool work for the originating message after assigning billing reconciliation exclusively to model input rows. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentWorkCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AgentWorkCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Attribution version used for this breakdown. - /// - /// - /// Non-tool work for the originating message after assigning billing reconciliation exclusively to model input rows. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesConsumptionResponseDetails( - int attributionVersion, - double agentWorkCredits, - global::System.Collections.Generic.IList tools) - { - this.AttributionVersion = attributionVersion; - this.AgentWorkCredits = agentWorkCredits; - this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesConsumptionResponseDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.Json.g.cs deleted file mode 100644 index 0d6fa1e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponseDetailsTool - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.g.cs deleted file mode 100644 index a3ec34d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesConsumptionResponseDetailsTool.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsMessagesConsumptionResponseDetailsTool - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("internalMCPServerName")] - public string? InternalMCPServerName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("callCount")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int CallCount { get; set; } - - /// - /// Share of total billed credits after input-only reconciliation. Run-agent tools include their sub-agent subtree's bill. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attributedCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AttributedCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("directCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double DirectCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pending")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Pending { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Share of total billed credits after input-only reconciliation. Run-agent tools include their sub-agent subtree's bill. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesConsumptionResponseDetailsTool( - string label, - string toolName, - int callCount, - double attributedCredits, - double directCredits, - bool pending, - string? internalMCPServerName) - { - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.InternalMCPServerName = internalMCPServerName; - this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); - this.CallCount = callCount; - this.AttributedCredits = attributedCredits; - this.DirectCredits = directCredits; - this.Pending = pending; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesConsumptionResponseDetailsTool() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.Json.g.cs deleted file mode 100644 index 524d73c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.g.cs deleted file mode 100644 index ab3ce35..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsMessagesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.OneOfJsonConverter))] - public global::Dust.OneOf? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesResponse( - global::Dust.OneOf? message) - { - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.Json.g.cs deleted file mode 100644 index 326597e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsMessagesResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsMessagesResponse2), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsMessagesResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsMessagesResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsMessagesResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsMessagesResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsMessagesResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.g.cs deleted file mode 100644 index ee1d546..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsMessagesResponse2.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsMessagesResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messages")] - public global::System.Collections.Generic.IList>? Messages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hasMore")] - public bool? HasMore { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastValue")] - public int? LastValue { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsMessagesResponse2( - global::System.Collections.Generic.IList>? messages, - bool? hasMore, - int? lastValue) - { - this.Messages = messages; - this.HasMore = hasMore; - this.LastValue = lastValue; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsMessagesResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.Json.g.cs deleted file mode 100644 index d44e6a6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsParticipantsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsParticipantsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsParticipantsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsParticipantsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.g.cs deleted file mode 100644 index 3601777..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsParticipantsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("participants")] - public global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? Participants { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsParticipantsResponse( - global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? participants) - { - this.Participants = participants; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsParticipantsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.Json.g.cs deleted file mode 100644 index a871287..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipants - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipants), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipants; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipants? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipants), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipants; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.g.cs deleted file mode 100644 index a3871e3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipants.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipants - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agents")] - public global::System.Collections.Generic.IList? Agents { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("users")] - public global::System.Collections.Generic.IList? Users { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsParticipantsResponseParticipants( - global::System.Collections.Generic.IList? agents, - global::System.Collections.Generic.IList? users) - { - this.Agents = agents; - this.Users = users; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsParticipantsResponseParticipants() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.Json.g.cs deleted file mode 100644 index 2f58ef6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipantsAgent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsAgent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.g.cs deleted file mode 100644 index 4230dd0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsAgent.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipantsAgent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - public string? ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationName")] - public string? ConfigurationName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsParticipantsResponseParticipantsAgent( - string? configurationId, - string? configurationName) - { - this.ConfigurationId = configurationId; - this.ConfigurationName = configurationName; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsParticipantsResponseParticipantsAgent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.Json.g.cs deleted file mode 100644 index a3d4b01..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipantsUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsParticipantsResponseParticipantsUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.g.cs deleted file mode 100644 index b4e8cce..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsParticipantsResponseParticipantsUser.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsParticipantsResponseParticipantsUser - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - public string? Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - public string? PictureUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsParticipantsResponseParticipantsUser( - string? username, - string? fullName, - string? pictureUrl) - { - this.Username = username; - this.FullName = fullName; - this.PictureUrl = pictureUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsParticipantsResponseParticipantsUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.Json.g.cs deleted file mode 100644 index 18ecfaf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.g.cs deleted file mode 100644 index 79007a3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsResponse - { - /// - /// Conversation without content, used in list responses. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversation")] - public global::Dust.PrivateConversation? Conversation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Conversation without content, used in list responses. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsResponse( - global::Dust.PrivateConversation? conversation) - { - this.Conversation = conversation; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.Json.g.cs deleted file mode 100644 index f8c3916..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsResponse2), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.g.cs deleted file mode 100644 index d79f5a6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsResponse2.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversations")] - public global::System.Collections.Generic.IList? Conversations { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hasMore")] - public bool? HasMore { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastValue")] - public string? LastValue { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsResponse2( - global::System.Collections.Generic.IList? conversations, - bool? hasMore, - string? lastValue) - { - this.Conversations = conversations; - this.HasMore = hasMore; - this.LastValue = lastValue; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.Json.g.cs deleted file mode 100644 index 3361e53..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsSelectableSpacesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsSelectableSpacesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsSelectableSpacesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.g.cs deleted file mode 100644 index 49ca574..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsSelectableSpacesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaces")] - public global::System.Collections.Generic.IList>? Spaces { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsSelectableSpacesResponse( - global::System.Collections.Generic.IList>? spaces) - { - this.Spaces = spaces; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsSelectableSpacesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.Json.g.cs deleted file mode 100644 index 7c7f5a7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsSelectableSpacesResponseSpace - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsSelectableSpacesResponseSpace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.g.cs deleted file mode 100644 index 88e1dcb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsSelectableSpacesResponseSpace.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsSelectableSpacesResponseSpace - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selected")] - public bool? Selected { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsSelectableSpacesResponseSpace( - bool? selected) - { - this.Selected = selected; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsSelectableSpacesResponseSpace() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.Json.g.cs deleted file mode 100644 index 515006e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantConversationsWakeupsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsWakeupsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantConversationsWakeupsResponse), - jsonSerializerContext) as global::Dust.GetWAssistantConversationsWakeupsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantConversationsWakeupsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantConversationsWakeupsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantConversationsWakeupsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantConversationsWakeupsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.g.cs deleted file mode 100644 index 84b9173..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantConversationsWakeupsResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantConversationsWakeupsResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wakeUps")] - public global::System.Collections.Generic.IList? WakeUps { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantConversationsWakeupsResponse( - global::System.Collections.Generic.IList? wakeUps) - { - this.WakeUps = wakeUps; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantConversationsWakeupsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsCurrent.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsCurrent.g.cs deleted file mode 100644 index 86a2517..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsCurrent.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantMentionsSuggestionsCurrent - { - /// - /// - /// - False, - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantMentionsSuggestionsCurrentExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantMentionsSuggestionsCurrent value) - { - return value switch - { - GetWAssistantMentionsSuggestionsCurrent.False => "false", - GetWAssistantMentionsSuggestionsCurrent.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantMentionsSuggestionsCurrent? ToEnum(string value) - { - return value switch - { - "false" => GetWAssistantMentionsSuggestionsCurrent.False, - "true" => GetWAssistantMentionsSuggestionsCurrent.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.Json.g.cs deleted file mode 100644 index a9eb48b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWAssistantMentionsSuggestionsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWAssistantMentionsSuggestionsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWAssistantMentionsSuggestionsResponse2), - jsonSerializerContext) as global::Dust.GetWAssistantMentionsSuggestionsResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWAssistantMentionsSuggestionsResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWAssistantMentionsSuggestionsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWAssistantMentionsSuggestionsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWAssistantMentionsSuggestionsResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.g.cs deleted file mode 100644 index 388c0c9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWAssistantMentionsSuggestionsResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("suggestions")] - public global::System.Collections.Generic.IList? Suggestions { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWAssistantMentionsSuggestionsResponse2( - global::System.Collections.Generic.IList? suggestions) - { - this.Suggestions = suggestions; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWAssistantMentionsSuggestionsResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsSelect.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsSelect.g.cs deleted file mode 100644 index 2b5c753..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWAssistantMentionsSuggestionsSelect.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWAssistantMentionsSuggestionsSelect - { - /// - /// - /// - Agents, - /// - /// - /// - Users, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWAssistantMentionsSuggestionsSelectExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWAssistantMentionsSuggestionsSelect value) - { - return value switch - { - GetWAssistantMentionsSuggestionsSelect.Agents => "agents", - GetWAssistantMentionsSuggestionsSelect.Users => "users", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWAssistantMentionsSuggestionsSelect? ToEnum(string value) - { - return value switch - { - "agents" => GetWAssistantMentionsSuggestionsSelect.Agents, - "users" => GetWAssistantMentionsSuggestionsSelect.Users, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWFilesAction.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWFilesAction.g.cs deleted file mode 100644 index 78977ad..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWFilesAction.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWFilesAction - { - /// - /// - /// - Download, - /// - /// - /// - View, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWFilesActionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWFilesAction value) - { - return value switch - { - GetWFilesAction.Download => "download", - GetWFilesAction.View => "view", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWFilesAction? ToEnum(string value) - { - return value switch - { - "download" => GetWFilesAction.Download, - "view" => GetWFilesAction.View, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWFilesVersion.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWFilesVersion.g.cs deleted file mode 100644 index 393a1b8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWFilesVersion.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWFilesVersion - { - /// - /// - /// - Original, - /// - /// - /// - Processed, - /// - /// - /// - Public, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWFilesVersionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWFilesVersion value) - { - return value switch - { - GetWFilesVersion.Original => "original", - GetWFilesVersion.Processed => "processed", - GetWFilesVersion.Public => "public", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWFilesVersion? ToEnum(string value) - { - return value switch - { - "original" => GetWFilesVersion.Original, - "processed" => GetWFilesVersion.Processed, - "public" => GetWFilesVersion.Public, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsCategory.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsCategory.g.cs deleted file mode 100644 index 2292bf0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsCategory.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesDataSourceViewsCategory - { - /// - /// - /// - Apps, - /// - /// - /// - Folder, - /// - /// - /// - Managed, - /// - /// - /// - Website, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesDataSourceViewsCategoryExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesDataSourceViewsCategory value) - { - return value switch - { - GetWSpacesDataSourceViewsCategory.Apps => "apps", - GetWSpacesDataSourceViewsCategory.Folder => "folder", - GetWSpacesDataSourceViewsCategory.Managed => "managed", - GetWSpacesDataSourceViewsCategory.Website => "website", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesDataSourceViewsCategory? ToEnum(string value) - { - return value switch - { - "apps" => GetWSpacesDataSourceViewsCategory.Apps, - "folder" => GetWSpacesDataSourceViewsCategory.Folder, - "managed" => GetWSpacesDataSourceViewsCategory.Managed, - "website" => GetWSpacesDataSourceViewsCategory.Website, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs deleted file mode 100644 index 9bfded9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsIncludeEditedBy.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesDataSourceViewsIncludeEditedBy - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesDataSourceViewsIncludeEditedByExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesDataSourceViewsIncludeEditedBy value) - { - return value switch - { - GetWSpacesDataSourceViewsIncludeEditedBy.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesDataSourceViewsIncludeEditedBy? ToEnum(string value) - { - return value switch - { - "true" => GetWSpacesDataSourceViewsIncludeEditedBy.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.Json.g.cs deleted file mode 100644 index b40fb37..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesDataSourceViewsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesDataSourceViewsResponse2), - jsonSerializerContext) as global::Dust.GetWSpacesDataSourceViewsResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesDataSourceViewsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesDataSourceViewsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesDataSourceViewsResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.g.cs deleted file mode 100644 index 491527d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse2.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesDataSourceViewsResponse2 - { - /// - /// A view on a data source within a space. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceView")] - public global::Dust.PrivateDataSourceView? DataSourceView { get; set; } - - /// - /// Connector details if the data source is managed - /// - [global::System.Text.Json.Serialization.JsonPropertyName("connector")] - public object? Connector { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A view on a data source within a space. - /// - /// - /// Connector details if the data source is managed - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesDataSourceViewsResponse2( - global::Dust.PrivateDataSourceView? dataSourceView, - object? connector) - { - this.DataSourceView = dataSourceView; - this.Connector = connector; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesDataSourceViewsResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.Json.g.cs deleted file mode 100644 index 25d4fca..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesDataSourceViewsResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesDataSourceViewsResponse3), - jsonSerializerContext) as global::Dust.GetWSpacesDataSourceViewsResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponse3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesDataSourceViewsResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesDataSourceViewsResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesDataSourceViewsResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.g.cs deleted file mode 100644 index 70edfe2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponse3.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesDataSourceViewsResponse3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceViews")] - public global::System.Collections.Generic.IList? DataSourceViews { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesDataSourceViewsResponse3( - global::System.Collections.Generic.IList? dataSourceViews) - { - this.DataSourceViews = dataSourceViews; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesDataSourceViewsResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.Json.g.cs deleted file mode 100644 index 84ee11c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesDataSourceViewsResponseConnector - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponseConnector? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesDataSourceViewsResponseConnector), - jsonSerializerContext) as global::Dust.GetWSpacesDataSourceViewsResponseConnector; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesDataSourceViewsResponseConnector? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesDataSourceViewsResponseConnector? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesDataSourceViewsResponseConnector), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesDataSourceViewsResponseConnector; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.g.cs deleted file mode 100644 index e32ae53..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsResponseConnector.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Connector details if the data source is managed - /// - public sealed partial class GetWSpacesDataSourceViewsResponseConnector - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsWithDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsWithDetails.g.cs deleted file mode 100644 index 4752a42..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesDataSourceViewsWithDetails.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesDataSourceViewsWithDetails - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesDataSourceViewsWithDetailsExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesDataSourceViewsWithDetails value) - { - return value switch - { - GetWSpacesDataSourceViewsWithDetails.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesDataSourceViewsWithDetails? ToEnum(string value) - { - return value switch - { - "true" => GetWSpacesDataSourceViewsWithDetails.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesIncludeAllMembers.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesIncludeAllMembers.g.cs deleted file mode 100644 index 997f448..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesIncludeAllMembers.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesIncludeAllMembers - { - /// - /// - /// - True, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesIncludeAllMembersExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesIncludeAllMembers value) - { - return value switch - { - GetWSpacesIncludeAllMembers.True => "true", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesIncludeAllMembers? ToEnum(string value) - { - return value switch - { - "true" => GetWSpacesIncludeAllMembers.True, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesKindItem.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesKindItem.g.cs deleted file mode 100644 index 67bf177..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesKindItem.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesKindItem - { - /// - /// - /// - Conversations, - /// - /// - /// - Global, - /// - /// - /// - Project, - /// - /// - /// - Regular, - /// - /// - /// - System, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesKindItemExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesKindItem value) - { - return value switch - { - GetWSpacesKindItem.Conversations => "conversations", - GetWSpacesKindItem.Global => "global", - GetWSpacesKindItem.Project => "project", - GetWSpacesKindItem.Regular => "regular", - GetWSpacesKindItem.System => "system", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesKindItem? ToEnum(string value) - { - return value switch - { - "conversations" => GetWSpacesKindItem.Conversations, - "global" => GetWSpacesKindItem.Global, - "project" => GetWSpacesKindItem.Project, - "regular" => GetWSpacesKindItem.Regular, - "system" => GetWSpacesKindItem.System, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.Json.g.cs deleted file mode 100644 index 7dbeec3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesProjectNotificationPreferencesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponse), - jsonSerializerContext) as global::Dust.GetWSpacesProjectNotificationPreferencesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesProjectNotificationPreferencesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.g.cs deleted file mode 100644 index f3e7c1a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesProjectNotificationPreferencesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userProjectNotificationPreference")] - public global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? UserProjectNotificationPreference { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesProjectNotificationPreferencesResponse( - global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? userProjectNotificationPreference) - { - this.UserProjectNotificationPreference = userProjectNotificationPreference; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesProjectNotificationPreferencesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs deleted file mode 100644 index edd5746..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference), - jsonSerializerContext) as global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs deleted file mode 100644 index 7fab4f8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - public string? SpaceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - public string? UserId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preference")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter))] - public global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Preference { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference( - string? sId, - string? spaceId, - string? userId, - global::Dust.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? preference) - { - this.SId = sId; - this.SpaceId = spaceId; - this.UserId = userId; - this.Preference = preference; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs deleted file mode 100644 index d8ada05..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference - { - /// - /// - /// - AllMessages, - /// - /// - /// - Never, - /// - /// - /// - OnlyMentions, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference value) - { - return value switch - { - GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.AllMessages => "all_messages", - GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.Never => "never", - GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.OnlyMentions => "only_mentions", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? ToEnum(string value) - { - return value switch - { - "all_messages" => GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.AllMessages, - "never" => GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.Never, - "only_mentions" => GetWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.OnlyMentions, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.Json.g.cs deleted file mode 100644 index dbef55c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponse2), - jsonSerializerContext) as global::Dust.GetWSpacesResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.g.cs deleted file mode 100644 index a15d0b6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse2.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("space")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.AllOfJsonConverter))] - public global::Dust.AllOf? Space { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponse2( - global::Dust.AllOf? space) - { - this.Space = space; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.Json.g.cs deleted file mode 100644 index 965ca8d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponse3), - jsonSerializerContext) as global::Dust.GetWSpacesResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponse3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.g.cs deleted file mode 100644 index 2bd1ced..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponse3.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponse3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaces")] - public global::System.Collections.Generic.IList>? Spaces { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponse3( - global::System.Collections.Generic.IList>? spaces) - { - this.Spaces = spaces; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.Json.g.cs deleted file mode 100644 index 4d1fb9e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpace - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpace), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpace? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpace), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.g.cs deleted file mode 100644 index 1007f7f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpace.g.cs +++ /dev/null @@ -1,192 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpace - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groupIds")] - public global::System.Collections.Generic.IList? GroupIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isRestricted")] - public bool? IsRestricted { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("categories")] - public global::System.Collections.Generic.Dictionary? Categories { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("canWrite")] - public bool? CanWrite { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("canRead")] - public bool? CanRead { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isMember")] - public bool? IsMember { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isEditor")] - public bool? IsEditor { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("members")] - public global::System.Collections.Generic.IList? Members { get; set; } - - /// - /// The groups given access to the space, with the role their grant confers. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groups")] - public global::System.Collections.Generic.IList? Groups { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("archivedAt")] - public int? ArchivedAt { get; set; } - - /// - /// Whether automatic todo suggestions from project activity are enabled. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("todoGenerationEnabled")] - public bool? TodoGenerationEnabled { get; set; } - - /// - /// Unix timestamp (ms) of the last automatic todo suggestion scan, if any. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastTodoAnalysisAt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - public global::System.DateTimeOffset? LastTodoAnalysisAt { get; set; } - - /// - /// Scoped path to the frame file pinned as the Pod banner. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pinnedFramePath")] - public string? PinnedFramePath { get; set; } - - /// - /// Frames promoted as custom Pod tabs. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("frameTabs")] - public global::System.Collections.Generic.IList? FrameTabs { get; set; } - - /// - /// Interleaved system tab ids and frame paths before Settings. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tabsOrder")] - public global::System.Collections.Generic.IList? TabsOrder { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// The groups given access to the space, with the role their grant confers. - /// - /// - /// - /// - /// Whether automatic todo suggestions from project activity are enabled. - /// - /// - /// Unix timestamp (ms) of the last automatic todo suggestion scan, if any. - /// - /// - /// Scoped path to the frame file pinned as the Pod banner. - /// - /// - /// Frames promoted as custom Pod tabs. - /// - /// - /// Interleaved system tab ids and frame paths before Settings. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponseSpace( - global::System.Collections.Generic.IList? groupIds, - bool? isRestricted, - global::System.Collections.Generic.Dictionary? categories, - bool? canWrite, - bool? canRead, - bool? isMember, - bool? isEditor, - global::System.Collections.Generic.IList? members, - global::System.Collections.Generic.IList? groups, - string? description, - int? archivedAt, - bool? todoGenerationEnabled, - global::System.DateTimeOffset? lastTodoAnalysisAt, - string? pinnedFramePath, - global::System.Collections.Generic.IList? frameTabs, - global::System.Collections.Generic.IList? tabsOrder) - { - this.GroupIds = groupIds; - this.IsRestricted = isRestricted; - this.Categories = categories; - this.CanWrite = canWrite; - this.CanRead = canRead; - this.IsMember = isMember; - this.IsEditor = isEditor; - this.Members = members; - this.Groups = groups; - this.Description = description; - this.ArchivedAt = archivedAt; - this.TodoGenerationEnabled = todoGenerationEnabled; - this.LastTodoAnalysisAt = lastTodoAnalysisAt; - this.PinnedFramePath = pinnedFramePath; - this.FrameTabs = frameTabs; - this.TabsOrder = tabsOrder; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponseSpace() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.Json.g.cs deleted file mode 100644 index d2e772a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceCategories - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategories? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceCategories), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceCategories; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategories? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceCategories? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceCategories), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceCategories; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.g.cs deleted file mode 100644 index 027e057..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceCategories - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.Json.g.cs deleted file mode 100644 index 92072b7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceCategories2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategories2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceCategories2), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceCategories2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategories2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceCategories2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceCategories2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceCategories2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.g.cs deleted file mode 100644 index ae8a806..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategories2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceCategories2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Dust.GetWSpacesResponseSpaceCategoriesUsage? Usage { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponseSpaceCategories2( - int? count, - global::Dust.GetWSpacesResponseSpaceCategoriesUsage? usage) - { - this.Count = count; - this.Usage = usage; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponseSpaceCategories2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.Json.g.cs deleted file mode 100644 index 386df98..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceCategoriesUsage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceCategoriesUsage), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceCategoriesUsage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceCategoriesUsage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceCategoriesUsage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.g.cs deleted file mode 100644 index 94a851c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsage.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceCategoriesUsage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agents")] - public global::System.Collections.Generic.IList? Agents { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponseSpaceCategoriesUsage( - int? count, - global::System.Collections.Generic.IList? agents) - { - this.Count = count; - this.Agents = agents; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponseSpaceCategoriesUsage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.Json.g.cs deleted file mode 100644 index c3df82b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceCategoriesUsageAgent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceCategoriesUsageAgent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.g.cs deleted file mode 100644 index e684b18..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceCategoriesUsageAgent.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceCategoriesUsageAgent - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.Json.g.cs deleted file mode 100644 index cacc033..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceFrameTab - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceFrameTab? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceFrameTab), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceFrameTab; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceFrameTab? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceFrameTab? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceFrameTab), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceFrameTab; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.g.cs deleted file mode 100644 index 467edff..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceFrameTab.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceFrameTab - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("icon")] - public string? Icon { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponseSpaceFrameTab( - string? path, - string? title, - string? icon) - { - this.Path = path; - this.Title = title; - this.Icon = icon; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponseSpaceFrameTab() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.Json.g.cs deleted file mode 100644 index 1de1f75..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceGroup - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceGroup? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceGroup), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceGroup; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceGroup? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceGroup? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceGroup), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceGroup; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.g.cs deleted file mode 100644 index 2aa4b63..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroup.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceGroup - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("kind")] - public string? Kind { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.GetWSpacesResponseSpaceGroupRoleJsonConverter))] - public global::Dust.GetWSpacesResponseSpaceGroupRole? Role { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetWSpacesResponseSpaceGroup( - string? sId, - string? name, - string? kind, - global::Dust.GetWSpacesResponseSpaceGroupRole? role) - { - this.SId = sId; - this.Name = name; - this.Kind = kind; - this.Role = role; - } - - /// - /// Initializes a new instance of the class. - /// - public GetWSpacesResponseSpaceGroup() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroupRole.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroupRole.g.cs deleted file mode 100644 index 1a92cac..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceGroupRole.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum GetWSpacesResponseSpaceGroupRole - { - /// - /// - /// - Editor, - /// - /// - /// - Member, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetWSpacesResponseSpaceGroupRoleExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetWSpacesResponseSpaceGroupRole value) - { - return value switch - { - GetWSpacesResponseSpaceGroupRole.Editor => "editor", - GetWSpacesResponseSpaceGroupRole.Member => "member", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetWSpacesResponseSpaceGroupRole? ToEnum(string value) - { - return value switch - { - "editor" => GetWSpacesResponseSpaceGroupRole.Editor, - "member" => GetWSpacesResponseSpaceGroupRole.Member, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.Json.g.cs deleted file mode 100644 index abfb44e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class GetWSpacesResponseSpaceMember - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceMember? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.GetWSpacesResponseSpaceMember), - jsonSerializerContext) as global::Dust.GetWSpacesResponseSpaceMember; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.GetWSpacesResponseSpaceMember? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.GetWSpacesResponseSpaceMember? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.GetWSpacesResponseSpaceMember), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.GetWSpacesResponseSpaceMember; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.g.cs b/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.g.cs deleted file mode 100644 index e952124..0000000 --- a/src/libs/Dust/Generated/Dust.Models.GetWSpacesResponseSpaceMember.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class GetWSpacesResponseSpaceMember - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.Json.g.cs deleted file mode 100644 index ab00ac0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchUserRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchUserRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchUserRequest), - jsonSerializerContext) as global::Dust.PatchUserRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchUserRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchUserRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchUserRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchUserRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.g.cs deleted file mode 100644 index 57be382..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchUserRequest.g.cs +++ /dev/null @@ -1,100 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchUserRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("firstName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FirstName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LastName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("jobType")] - public string? JobType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] - public string? ImageUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("favoritePlatforms")] - public global::System.Collections.Generic.IList? FavoritePlatforms { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emailProvider")] - public string? EmailProvider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("workspaceId")] - public string? WorkspaceId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchUserRequest( - string firstName, - string lastName, - string? jobType, - string? imageUrl, - global::System.Collections.Generic.IList? favoritePlatforms, - string? emailProvider, - string? workspaceId) - { - this.FirstName = firstName ?? throw new global::System.ArgumentNullException(nameof(firstName)); - this.LastName = lastName ?? throw new global::System.ArgumentNullException(nameof(lastName)); - this.JobType = jobType; - this.ImageUrl = imageUrl; - this.FavoritePlatforms = favoritePlatforms; - this.EmailProvider = emailProvider; - this.WorkspaceId = workspaceId; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchUserRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.Json.g.cs deleted file mode 100644 index 0a1cfeb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchUserResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchUserResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchUserResponse), - jsonSerializerContext) as global::Dust.PatchUserResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchUserResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchUserResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchUserResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchUserResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.g.cs deleted file mode 100644 index 341e70d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchUserResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchUserResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchUserResponse( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchUserResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.Json.g.cs deleted file mode 100644 index cc3e00a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWAssistantConversationsRequestVariant12 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant12? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant12), - jsonSerializerContext) as global::Dust.PatchWAssistantConversationsRequestVariant12; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant12? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWAssistantConversationsRequestVariant12? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant12), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWAssistantConversationsRequestVariant12; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.g.cs deleted file mode 100644 index 3d786db..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant12.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWAssistantConversationsRequestVariant12 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWAssistantConversationsRequestVariant12( - string title) - { - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWAssistantConversationsRequestVariant12() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.Json.g.cs deleted file mode 100644 index 79d9718..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWAssistantConversationsRequestVariant22 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant22? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant22), - jsonSerializerContext) as global::Dust.PatchWAssistantConversationsRequestVariant22; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant22? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWAssistantConversationsRequestVariant22? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant22), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWAssistantConversationsRequestVariant22; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.g.cs deleted file mode 100644 index 5dc6453..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant22.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWAssistantConversationsRequestVariant22 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("read")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Read { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWAssistantConversationsRequestVariant22( - bool read) - { - this.Read = read; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWAssistantConversationsRequestVariant22() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.Json.g.cs deleted file mode 100644 index 2fec73b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWAssistantConversationsRequestVariant3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant3), - jsonSerializerContext) as global::Dust.PatchWAssistantConversationsRequestVariant3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant3? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWAssistantConversationsRequestVariant3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWAssistantConversationsRequestVariant3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.g.cs deleted file mode 100644 index 8534ac5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant3.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWAssistantConversationsRequestVariant3 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SpaceId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWAssistantConversationsRequestVariant3( - string spaceId) - { - this.SpaceId = spaceId ?? throw new global::System.ArgumentNullException(nameof(spaceId)); - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWAssistantConversationsRequestVariant3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.Json.g.cs deleted file mode 100644 index d18014e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWAssistantConversationsRequestVariant4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant4), - jsonSerializerContext) as global::Dust.PatchWAssistantConversationsRequestVariant4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsRequestVariant4? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWAssistantConversationsRequestVariant4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWAssistantConversationsRequestVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWAssistantConversationsRequestVariant4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.g.cs deleted file mode 100644 index a5433aa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWAssistantConversationsRequestVariant4 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("accessMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PatchWAssistantConversationsRequestVariant4AccessModeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode AccessMode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWAssistantConversationsRequestVariant4( - global::Dust.PatchWAssistantConversationsRequestVariant4AccessMode accessMode) - { - this.AccessMode = accessMode; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWAssistantConversationsRequestVariant4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs deleted file mode 100644 index 0a41b3e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsRequestVariant4AccessMode.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PatchWAssistantConversationsRequestVariant4AccessMode - { - /// - /// - /// - ParticipantsOnly, - /// - /// - /// - WorkspaceMembers, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PatchWAssistantConversationsRequestVariant4AccessModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PatchWAssistantConversationsRequestVariant4AccessMode value) - { - return value switch - { - PatchWAssistantConversationsRequestVariant4AccessMode.ParticipantsOnly => "participants_only", - PatchWAssistantConversationsRequestVariant4AccessMode.WorkspaceMembers => "workspace_members", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PatchWAssistantConversationsRequestVariant4AccessMode? ToEnum(string value) - { - return value switch - { - "participants_only" => PatchWAssistantConversationsRequestVariant4AccessMode.ParticipantsOnly, - "workspace_members" => PatchWAssistantConversationsRequestVariant4AccessMode.WorkspaceMembers, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.Json.g.cs deleted file mode 100644 index 09fa61f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWAssistantConversationsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWAssistantConversationsResponse2), - jsonSerializerContext) as global::Dust.PatchWAssistantConversationsResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWAssistantConversationsResponse2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWAssistantConversationsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWAssistantConversationsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWAssistantConversationsResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.g.cs deleted file mode 100644 index b7a871e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWAssistantConversationsResponse2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWAssistantConversationsResponse2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWAssistantConversationsResponse2( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWAssistantConversationsResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.Json.g.cs deleted file mode 100644 index bf00888..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesDataSourceViewsRequest2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsRequest2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesDataSourceViewsRequest2), - jsonSerializerContext) as global::Dust.PatchWSpacesDataSourceViewsRequest2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsRequest2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesDataSourceViewsRequest2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesDataSourceViewsRequest2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesDataSourceViewsRequest2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.g.cs deleted file mode 100644 index afc384f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsRequest2.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesDataSourceViewsRequest2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentsIn")] - public global::System.Collections.Generic.IList? ParentsIn { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesDataSourceViewsRequest2( - global::System.Collections.Generic.IList? parentsIn) - { - this.ParentsIn = parentsIn; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesDataSourceViewsRequest2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.Json.g.cs deleted file mode 100644 index a74379e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesDataSourceViewsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesDataSourceViewsResponse), - jsonSerializerContext) as global::Dust.PatchWSpacesDataSourceViewsResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesDataSourceViewsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesDataSourceViewsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesDataSourceViewsResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.g.cs deleted file mode 100644 index c2bec4f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesDataSourceViewsResponse - { - /// - /// A view on a data source within a space. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceView")] - public global::Dust.PrivateDataSourceView? DataSourceView { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("connector")] - public object? Connector { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A view on a data source within a space. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesDataSourceViewsResponse( - global::Dust.PrivateDataSourceView? dataSourceView, - object? connector) - { - this.DataSourceView = dataSourceView; - this.Connector = connector; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesDataSourceViewsResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.Json.g.cs deleted file mode 100644 index 90f0bae..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesDataSourceViewsResponseConnector - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsResponseConnector? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesDataSourceViewsResponseConnector), - jsonSerializerContext) as global::Dust.PatchWSpacesDataSourceViewsResponseConnector; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesDataSourceViewsResponseConnector? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesDataSourceViewsResponseConnector? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesDataSourceViewsResponseConnector), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesDataSourceViewsResponseConnector; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.g.cs deleted file mode 100644 index eb2e2c0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesDataSourceViewsResponseConnector.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesDataSourceViewsResponseConnector - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.Json.g.cs deleted file mode 100644 index 4fb1314..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesProjectNotificationPreferencesRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequest), - jsonSerializerContext) as global::Dust.PatchWSpacesProjectNotificationPreferencesRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesProjectNotificationPreferencesRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesProjectNotificationPreferencesRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.g.cs deleted file mode 100644 index 97f9603..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequest.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesProjectNotificationPreferencesRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preference")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesRequestPreferenceJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference Preference { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesProjectNotificationPreferencesRequest( - global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference preference) - { - this.Preference = preference; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesProjectNotificationPreferencesRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs deleted file mode 100644 index 942f5f2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesRequestPreference.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PatchWSpacesProjectNotificationPreferencesRequestPreference - { - /// - /// - /// - AllMessages, - /// - /// - /// - Never, - /// - /// - /// - OnlyMentions, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PatchWSpacesProjectNotificationPreferencesRequestPreferenceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PatchWSpacesProjectNotificationPreferencesRequestPreference value) - { - return value switch - { - PatchWSpacesProjectNotificationPreferencesRequestPreference.AllMessages => "all_messages", - PatchWSpacesProjectNotificationPreferencesRequestPreference.Never => "never", - PatchWSpacesProjectNotificationPreferencesRequestPreference.OnlyMentions => "only_mentions", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PatchWSpacesProjectNotificationPreferencesRequestPreference? ToEnum(string value) - { - return value switch - { - "all_messages" => PatchWSpacesProjectNotificationPreferencesRequestPreference.AllMessages, - "never" => PatchWSpacesProjectNotificationPreferencesRequestPreference.Never, - "only_mentions" => PatchWSpacesProjectNotificationPreferencesRequestPreference.OnlyMentions, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.Json.g.cs deleted file mode 100644 index 09357cd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesProjectNotificationPreferencesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponse), - jsonSerializerContext) as global::Dust.PatchWSpacesProjectNotificationPreferencesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesProjectNotificationPreferencesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.g.cs deleted file mode 100644 index 03168db..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponse.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesProjectNotificationPreferencesResponse - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userProjectNotificationPreference")] - public global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? UserProjectNotificationPreference { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesProjectNotificationPreferencesResponse( - global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? userProjectNotificationPreference) - { - this.UserProjectNotificationPreference = userProjectNotificationPreference; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesProjectNotificationPreferencesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs deleted file mode 100644 index 4b3cad9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference), - jsonSerializerContext) as global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs deleted file mode 100644 index d491402..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - public string? SpaceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - public string? UserId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("preference")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceJsonConverter))] - public global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? Preference { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference( - string? sId, - string? spaceId, - string? userId, - global::Dust.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? preference) - { - this.SId = sId; - this.SpaceId = spaceId; - this.UserId = userId; - this.Preference = preference; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreference() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs deleted file mode 100644 index 9511331..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference - { - /// - /// - /// - AllMessages, - /// - /// - /// - Never, - /// - /// - /// - OnlyMentions, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreferenceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference value) - { - return value switch - { - PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.AllMessages => "all_messages", - PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.Never => "never", - PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.OnlyMentions => "only_mentions", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference? ToEnum(string value) - { - return value switch - { - "all_messages" => PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.AllMessages, - "never" => PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.Never, - "only_mentions" => PatchWSpacesProjectNotificationPreferencesResponseUserProjectNotificationPreferencePreference.OnlyMentions, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.Json.g.cs deleted file mode 100644 index 5b9903a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesRequest), - jsonSerializerContext) as global::Dust.PatchWSpacesRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesRequest? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.g.cs deleted file mode 100644 index 39a3074..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList? Content { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesRequest( - string? name, - global::System.Collections.Generic.IList? content) - { - this.Name = name; - this.Content = content; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.Json.g.cs deleted file mode 100644 index 8083fe8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesRequestContentItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesRequestContentItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesRequestContentItem), - jsonSerializerContext) as global::Dust.PatchWSpacesRequestContentItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesRequestContentItem? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesRequestContentItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesRequestContentItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesRequestContentItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.g.cs deleted file mode 100644 index 0af3ad6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesRequestContentItem.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesRequestContentItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSourceId")] - public string? DataSourceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentsIn")] - public global::System.Collections.Generic.IList? ParentsIn { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesRequestContentItem( - string? dataSourceId, - global::System.Collections.Generic.IList? parentsIn) - { - this.DataSourceId = dataSourceId; - this.ParentsIn = parentsIn; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesRequestContentItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.Json.g.cs deleted file mode 100644 index b8f843e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PatchWSpacesResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PatchWSpacesResponse), - jsonSerializerContext) as global::Dust.PatchWSpacesResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PatchWSpacesResponse? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PatchWSpacesResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PatchWSpacesResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PatchWSpacesResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.g.cs b/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.g.cs deleted file mode 100644 index 154ae9e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PatchWSpacesResponse.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PatchWSpacesResponse - { - /// - /// A space in the workspace. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("space")] - public global::Dust.PrivateSpace? Space { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A space in the workspace. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchWSpacesResponse( - global::Dust.PrivateSpace? space) - { - this.Space = space; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchWSpacesResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.Json.g.cs deleted file mode 100644 index 8504b9e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentActionSuccessEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentActionSuccessEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentActionSuccessEvent), - jsonSerializerContext) as global::Dust.PrivateAgentActionSuccessEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentActionSuccessEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentActionSuccessEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentActionSuccessEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentActionSuccessEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.g.cs deleted file mode 100644 index 73f33c3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEvent.g.cs +++ /dev/null @@ -1,96 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentActionSuccessEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentActionSuccessEventTypeJsonConverter))] - public global::Dust.PrivateAgentActionSuccessEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// An MCP action with its output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMCPAction Action { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// An MCP action with its output. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentActionSuccessEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentMCPAction action, - global::Dust.PrivateAgentActionSuccessEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Action = action ?? throw new global::System.ArgumentNullException(nameof(action)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentActionSuccessEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEventType.g.cs deleted file mode 100644 index ed4f81a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentActionSuccessEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentActionSuccessEventType - { - /// - /// - /// - AgentActionSuccess, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentActionSuccessEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentActionSuccessEventType value) - { - return value switch - { - PrivateAgentActionSuccessEventType.AgentActionSuccess => "agent_action_success", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentActionSuccessEventType? ToEnum(string value) - { - return value switch - { - "agent_action_success" => PrivateAgentActionSuccessEventType.AgentActionSuccess, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.Json.g.cs deleted file mode 100644 index b319148..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentContextPrunedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentContextPrunedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentContextPrunedEvent), - jsonSerializerContext) as global::Dust.PrivateAgentContextPrunedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentContextPrunedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentContextPrunedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentContextPrunedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentContextPrunedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.g.cs deleted file mode 100644 index c98333e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEvent.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentContextPrunedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentContextPrunedEventTypeJsonConverter))] - public global::Dust.PrivateAgentContextPrunedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentContextPrunedEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentContextPrunedEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentContextPrunedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEventType.g.cs deleted file mode 100644 index 12012e9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentContextPrunedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentContextPrunedEventType - { - /// - /// - /// - AgentContextPruned, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentContextPrunedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentContextPrunedEventType value) - { - return value switch - { - PrivateAgentContextPrunedEventType.AgentContextPruned => "agent_context_pruned", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentContextPrunedEventType? ToEnum(string value) - { - return value switch - { - "agent_context_pruned" => PrivateAgentContextPrunedEventType.AgentContextPruned, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.Json.g.cs deleted file mode 100644 index c45d775..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentErrorEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentErrorEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentErrorEvent), - jsonSerializerContext) as global::Dust.PrivateAgentErrorEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentErrorEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentErrorEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentErrorEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentErrorEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.g.cs deleted file mode 100644 index a40e249..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEvent.g.cs +++ /dev/null @@ -1,103 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentErrorEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentErrorEventTypeJsonConverter))] - public global::Dust.PrivateAgentErrorEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentErrorEventError Error { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("runIds")] - public global::System.Collections.Generic.IList? RunIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentErrorEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentErrorEventError error, - global::Dust.PrivateAgentErrorEventType type, - global::System.Collections.Generic.IList? runIds, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); - this.RunIds = runIds; - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentErrorEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.Json.g.cs deleted file mode 100644 index 8995b88..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentErrorEventError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentErrorEventError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentErrorEventError), - jsonSerializerContext) as global::Dust.PrivateAgentErrorEventError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentErrorEventError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentErrorEventError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentErrorEventError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentErrorEventError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.g.cs deleted file mode 100644 index dfd7efa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentErrorEventError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentErrorEventError( - string? code, - string? message) - { - this.Code = code; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentErrorEventError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventType.g.cs deleted file mode 100644 index a57fb36..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentErrorEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentErrorEventType - { - /// - /// - /// - AgentError, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentErrorEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentErrorEventType value) - { - return value switch - { - PrivateAgentErrorEventType.AgentError => "agent_error", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentErrorEventType? ToEnum(string value) - { - return value switch - { - "agent_error" => PrivateAgentErrorEventType.AgentError, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.Json.g.cs deleted file mode 100644 index 81077f7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentGenerationCancelledEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentGenerationCancelledEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentGenerationCancelledEvent), - jsonSerializerContext) as global::Dust.PrivateAgentGenerationCancelledEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentGenerationCancelledEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentGenerationCancelledEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentGenerationCancelledEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentGenerationCancelledEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.g.cs deleted file mode 100644 index a0be571..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEvent.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentGenerationCancelledEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentGenerationCancelledEventTypeJsonConverter))] - public global::Dust.PrivateAgentGenerationCancelledEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentGenerationCancelledEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentGenerationCancelledEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentGenerationCancelledEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEventType.g.cs deleted file mode 100644 index 74197e2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentGenerationCancelledEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentGenerationCancelledEventType - { - /// - /// - /// - AgentGenerationCancelled, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentGenerationCancelledEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentGenerationCancelledEventType value) - { - return value switch - { - PrivateAgentGenerationCancelledEventType.AgentGenerationCancelled => "agent_generation_cancelled", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentGenerationCancelledEventType? ToEnum(string value) - { - return value switch - { - "agent_generation_cancelled" => PrivateAgentGenerationCancelledEventType.AgentGenerationCancelled, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.Json.g.cs deleted file mode 100644 index ac052d3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPAction - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPAction? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPAction), - jsonSerializerContext) as global::Dust.PrivateAgentMCPAction; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPAction? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPAction? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPAction), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPAction; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.g.cs deleted file mode 100644 index b958cfb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPAction.g.cs +++ /dev/null @@ -1,256 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// An MCP action with its output. - /// - public sealed partial class PrivateAgentMCPAction - { - /// - /// Numeric model identifier - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// Unique string identifier - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// Unix timestamp of creation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTimeOffset CreatedAt { get; set; } - - /// - /// Unix timestamp of last update - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTimeOffset UpdatedAt { get; set; } - - /// - /// ID of the parent agent message - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentMessageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int AgentMessageId { get; set; } - - /// - /// Name of the internal MCP server, if any - /// - [global::System.Text.Json.Serialization.JsonPropertyName("internalMCPServerName")] - public string? InternalMCPServerName { get; set; } - - /// - /// Name of the tool - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolName { get; set; } - - /// - /// ID of the MCP server, if external - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mcpServerId")] - public string? McpServerId { get; set; } - - /// - /// Name of the function call - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCallName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FunctionCallName { get; set; } - - /// - /// ID of the function call - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCallId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FunctionCallId { get; set; } - - /// - /// Parameters passed to the tool - /// - [global::System.Text.Json.Serialization.JsonPropertyName("params")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Params { get; set; } - - /// - /// Number of citations allocated - /// - [global::System.Text.Json.Serialization.JsonPropertyName("citationsAllocated")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int CitationsAllocated { get; set; } - - /// - /// Execution status of the tool - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMCPActionStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMCPActionStatus Status { get; set; } - - /// - /// Step number in the agent execution - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Step { get; set; } - - /// - /// Duration of execution in milliseconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("executionDurationMs")] - public int? ExecutionDurationMs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayLabels")] - public global::Dust.PrivateAgentMCPActionDisplayLabels? DisplayLabels { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("generatedFiles")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList GeneratedFiles { get; set; } - - /// - /// Tool call result content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::System.Collections.Generic.IList? Output { get; set; } - - /// - /// Map of citation key to citation object - /// - [global::System.Text.Json.Serialization.JsonPropertyName("citations")] - public object? Citations { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Numeric model identifier - /// - /// - /// Unique string identifier - /// - /// - /// Unix timestamp of creation - /// - /// - /// Unix timestamp of last update - /// - /// - /// ID of the parent agent message - /// - /// - /// Name of the tool - /// - /// - /// Name of the function call - /// - /// - /// ID of the function call - /// - /// - /// Parameters passed to the tool - /// - /// - /// Number of citations allocated - /// - /// - /// Execution status of the tool - /// - /// - /// Step number in the agent execution - /// - /// - /// - /// Name of the internal MCP server, if any - /// - /// - /// ID of the MCP server, if external - /// - /// - /// Duration of execution in milliseconds - /// - /// - /// - /// Tool call result content - /// - /// - /// Map of citation key to citation object - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMCPAction( - int id, - string sId, - global::System.DateTimeOffset createdAt, - global::System.DateTimeOffset updatedAt, - int agentMessageId, - string toolName, - string functionCallName, - string functionCallId, - object @params, - int citationsAllocated, - global::Dust.PrivateAgentMCPActionStatus status, - int step, - global::System.Collections.Generic.IList generatedFiles, - string? internalMCPServerName, - string? mcpServerId, - int? executionDurationMs, - global::Dust.PrivateAgentMCPActionDisplayLabels? displayLabels, - global::System.Collections.Generic.IList? output, - object? citations) - { - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.AgentMessageId = agentMessageId; - this.InternalMCPServerName = internalMCPServerName; - this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); - this.McpServerId = mcpServerId; - this.FunctionCallName = functionCallName ?? throw new global::System.ArgumentNullException(nameof(functionCallName)); - this.FunctionCallId = functionCallId ?? throw new global::System.ArgumentNullException(nameof(functionCallId)); - this.Params = @params ?? throw new global::System.ArgumentNullException(nameof(@params)); - this.CitationsAllocated = citationsAllocated; - this.Status = status; - this.Step = step; - this.ExecutionDurationMs = executionDurationMs; - this.DisplayLabels = displayLabels; - this.GeneratedFiles = generatedFiles ?? throw new global::System.ArgumentNullException(nameof(generatedFiles)); - this.Output = output; - this.Citations = citations; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMCPAction() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.Json.g.cs deleted file mode 100644 index d746192..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPActionCitations - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionCitations? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPActionCitations), - jsonSerializerContext) as global::Dust.PrivateAgentMCPActionCitations; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionCitations? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPActionCitations? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPActionCitations), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPActionCitations; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.g.cs deleted file mode 100644 index ea3149c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionCitations.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Map of citation key to citation object - /// - public sealed partial class PrivateAgentMCPActionCitations - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.Json.g.cs deleted file mode 100644 index be806bf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPActionDisplayLabels - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionDisplayLabels? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPActionDisplayLabels), - jsonSerializerContext) as global::Dust.PrivateAgentMCPActionDisplayLabels; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionDisplayLabels? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPActionDisplayLabels? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPActionDisplayLabels), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPActionDisplayLabels; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.g.cs deleted file mode 100644 index fb3d655..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionDisplayLabels.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMCPActionDisplayLabels - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("running")] - public string? Running { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("done")] - public string? Done { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMCPActionDisplayLabels( - string? running, - string? done) - { - this.Running = running; - this.Done = done; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMCPActionDisplayLabels() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.Json.g.cs deleted file mode 100644 index 5d010bc..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPActionGeneratedFile - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionGeneratedFile? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPActionGeneratedFile), - jsonSerializerContext) as global::Dust.PrivateAgentMCPActionGeneratedFile; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionGeneratedFile? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPActionGeneratedFile? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPActionGeneratedFile), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPActionGeneratedFile; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.g.cs deleted file mode 100644 index 3ddb1a1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionGeneratedFile.g.cs +++ /dev/null @@ -1,120 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMCPActionGeneratedFile - { - /// - /// Dust file id for DB-backed files, or null for path-backed files. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - public string? FileId { get; set; } - - /// - /// Canonical scoped path for path-backed files. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - public string? ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("snippet")] - public string? Snippet { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - public int? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] - public int? UpdatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isInProjectContext")] - public bool? IsInProjectContext { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hidden")] - public bool? Hidden { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dust file id for DB-backed files, or null for path-backed files. - /// - /// - /// Canonical scoped path for path-backed files. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMCPActionGeneratedFile( - string? fileId, - string? filePath, - string? title, - string? contentType, - string? snippet, - int? createdAt, - int? updatedAt, - bool? isInProjectContext, - bool? hidden) - { - this.FileId = fileId; - this.FilePath = filePath; - this.Title = title; - this.ContentType = contentType; - this.Snippet = snippet; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.IsInProjectContext = isInProjectContext; - this.Hidden = hidden; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMCPActionGeneratedFile() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.Json.g.cs deleted file mode 100644 index 0e107a1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPActionOutputItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionOutputItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPActionOutputItem), - jsonSerializerContext) as global::Dust.PrivateAgentMCPActionOutputItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionOutputItem? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPActionOutputItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPActionOutputItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPActionOutputItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.g.cs deleted file mode 100644 index 259202c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionOutputItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMCPActionOutputItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.Json.g.cs deleted file mode 100644 index f5c3601..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMCPActionParams - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionParams? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMCPActionParams), - jsonSerializerContext) as global::Dust.PrivateAgentMCPActionParams; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMCPActionParams? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMCPActionParams? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMCPActionParams), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMCPActionParams; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.g.cs deleted file mode 100644 index 62d6bf0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionParams.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Parameters passed to the tool - /// - public sealed partial class PrivateAgentMCPActionParams - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionStatus.g.cs deleted file mode 100644 index 47ac34f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMCPActionStatus.g.cs +++ /dev/null @@ -1,105 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Execution status of the tool - /// - public enum PrivateAgentMCPActionStatus - { - /// - /// - /// - BlockedAuthenticationRequired, - /// - /// - /// - BlockedChildActionInputRequired, - /// - /// - /// - BlockedFileAuthorizationRequired, - /// - /// - /// - BlockedUserAnswerRequired, - /// - /// - /// - BlockedValidationRequired, - /// - /// - /// - Denied, - /// - /// - /// - Errored, - /// - /// - /// - ReadyAllowedExplicitly, - /// - /// - /// - ReadyAllowedImplicitly, - /// - /// - /// - Running, - /// - /// - /// - Succeeded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMCPActionStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMCPActionStatus value) - { - return value switch - { - PrivateAgentMCPActionStatus.BlockedAuthenticationRequired => "blocked_authentication_required", - PrivateAgentMCPActionStatus.BlockedChildActionInputRequired => "blocked_child_action_input_required", - PrivateAgentMCPActionStatus.BlockedFileAuthorizationRequired => "blocked_file_authorization_required", - PrivateAgentMCPActionStatus.BlockedUserAnswerRequired => "blocked_user_answer_required", - PrivateAgentMCPActionStatus.BlockedValidationRequired => "blocked_validation_required", - PrivateAgentMCPActionStatus.Denied => "denied", - PrivateAgentMCPActionStatus.Errored => "errored", - PrivateAgentMCPActionStatus.ReadyAllowedExplicitly => "ready_allowed_explicitly", - PrivateAgentMCPActionStatus.ReadyAllowedImplicitly => "ready_allowed_implicitly", - PrivateAgentMCPActionStatus.Running => "running", - PrivateAgentMCPActionStatus.Succeeded => "succeeded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMCPActionStatus? ToEnum(string value) - { - return value switch - { - "blocked_authentication_required" => PrivateAgentMCPActionStatus.BlockedAuthenticationRequired, - "blocked_child_action_input_required" => PrivateAgentMCPActionStatus.BlockedChildActionInputRequired, - "blocked_file_authorization_required" => PrivateAgentMCPActionStatus.BlockedFileAuthorizationRequired, - "blocked_user_answer_required" => PrivateAgentMCPActionStatus.BlockedUserAnswerRequired, - "blocked_validation_required" => PrivateAgentMCPActionStatus.BlockedValidationRequired, - "denied" => PrivateAgentMCPActionStatus.Denied, - "errored" => PrivateAgentMCPActionStatus.Errored, - "ready_allowed_explicitly" => PrivateAgentMCPActionStatus.ReadyAllowedExplicitly, - "ready_allowed_implicitly" => PrivateAgentMCPActionStatus.ReadyAllowedImplicitly, - "running" => PrivateAgentMCPActionStatus.Running, - "succeeded" => PrivateAgentMCPActionStatus.Succeeded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.Json.g.cs deleted file mode 100644 index 077d141..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessage), - jsonSerializerContext) as global::Dust.PrivateAgentMessage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.g.cs deleted file mode 100644 index b55ced5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.g.cs +++ /dev/null @@ -1,303 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// An agent message in a conversation. - /// - public sealed partial class PrivateAgentMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentMessageId")] - public int? AgentMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageTypeJsonConverter))] - public global::Dust.PrivateAgentMessageType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public int? Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("completedTs")] - public int? CompletedTs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageVisibilityJsonConverter))] - public global::Dust.PrivateAgentMessageVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Rank { get; set; } - - /// - /// Legacy, always null. Branches were removed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchId")] - public string? BranchId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentMessageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ParentMessageId { get; set; } - - /// - /// If handover, the agent message that summoned this agent - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentAgentMessageId")] - public string? ParentAgentMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMessageStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chainOfThought")] - public string? ChainOfThought { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Dust.PrivateAgentMessageError? Error { get; set; } - - /// - /// Agent configuration as returned by the private list endpoint. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configuration")] - public global::Dust.PrivateLightAgentConfiguration? Configuration { get; set; } - - /// - /// MCP actions executed by the agent - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actions")] - public global::System.Collections.Generic.IList? Actions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skipToolsValidation")] - public bool? SkipToolsValidation { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("richMentions")] - public global::System.Collections.Generic.IList? RichMentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("completionDurationMs")] - public int? CompletionDurationMs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reactions")] - public global::System.Collections.Generic.IList? Reactions { get; set; } - - /// - /// Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("costCredits")] - public int? CostCredits { get; set; } - - /// - /// Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("subAgentCostCredits")] - public double? SubAgentCostCredits { get; set; } - - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolvedModel")] - public global::Dust.PrivateAgentMessageResolvedModel? ResolvedModel { get; set; } - - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelResolutionMethod")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageModelResolutionMethodJsonConverter))] - public global::Dust.PrivateAgentMessageModelResolutionMethod? ModelResolutionMethod { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Legacy, always null. Branches were removed. - /// - /// - /// If handover, the agent message that summoned this agent - /// - /// - /// - /// - /// - /// Agent configuration as returned by the private list endpoint. - /// - /// - /// MCP actions executed by the agent - /// - /// - /// - /// - /// - /// - /// - /// Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message. - /// - /// - /// Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise. - /// - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessage( - string sId, - int version, - int rank, - string parentMessageId, - global::Dust.PrivateAgentMessageStatus status, - int? id, - int? agentMessageId, - global::Dust.PrivateAgentMessageType type, - int? created, - int? completedTs, - global::Dust.PrivateAgentMessageVisibility? visibility, - string? branchId, - string? parentAgentMessageId, - string? content, - string? chainOfThought, - global::Dust.PrivateAgentMessageError? error, - global::Dust.PrivateLightAgentConfiguration? configuration, - global::System.Collections.Generic.IList? actions, - global::System.Collections.Generic.IList? contents, - bool? skipToolsValidation, - global::System.Collections.Generic.IList? richMentions, - int? completionDurationMs, - global::System.Collections.Generic.IList? reactions, - int? costCredits, - double? subAgentCostCredits, - global::Dust.PrivateAgentMessageResolvedModel? resolvedModel, - global::Dust.PrivateAgentMessageModelResolutionMethod? modelResolutionMethod) - { - this.Id = id; - this.AgentMessageId = agentMessageId; - this.Type = type; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Created = created; - this.CompletedTs = completedTs; - this.Visibility = visibility; - this.Version = version; - this.Rank = rank; - this.BranchId = branchId; - this.ParentMessageId = parentMessageId ?? throw new global::System.ArgumentNullException(nameof(parentMessageId)); - this.ParentAgentMessageId = parentAgentMessageId; - this.Status = status; - this.Content = content; - this.ChainOfThought = chainOfThought; - this.Error = error; - this.Configuration = configuration; - this.Actions = actions; - this.Contents = contents; - this.SkipToolsValidation = skipToolsValidation; - this.RichMentions = richMentions; - this.CompletionDurationMs = completionDurationMs; - this.Reactions = reactions; - this.CostCredits = costCredits; - this.SubAgentCostCredits = subAgentCostCredits; - this.ResolvedModel = resolvedModel; - this.ModelResolutionMethod = modelResolutionMethod; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.Json.g.cs deleted file mode 100644 index 8ced518..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageAction - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageAction? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageAction), - jsonSerializerContext) as global::Dust.PrivateAgentMessageAction; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageAction? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageAction? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageAction), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageAction; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.g.cs deleted file mode 100644 index 74179bf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageAction.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageAction - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.Json.g.cs deleted file mode 100644 index 13d6530..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageConsumptionUpdatedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageConsumptionUpdatedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageConsumptionUpdatedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.g.cs deleted file mode 100644 index bb72f31..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEvent.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageConsumptionUpdatedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageConsumptionUpdatedEventTypeJsonConverter))] - public global::Dust.PrivateAgentMessageConsumptionUpdatedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("costCredits")] - public double? CostCredits { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageConsumptionUpdatedEvent( - int created, - string conversationId, - string messageId, - global::Dust.PrivateAgentMessageConsumptionUpdatedEventType type, - double? costCredits) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.CostCredits = costCredits; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageConsumptionUpdatedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEventType.g.cs deleted file mode 100644 index 5f16720..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageConsumptionUpdatedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageConsumptionUpdatedEventType - { - /// - /// - /// - AgentMessageConsumptionUpdated, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageConsumptionUpdatedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageConsumptionUpdatedEventType value) - { - return value switch - { - PrivateAgentMessageConsumptionUpdatedEventType.AgentMessageConsumptionUpdated => "agent_message_consumption_updated", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageConsumptionUpdatedEventType? ToEnum(string value) - { - return value switch - { - "agent_message_consumption_updated" => PrivateAgentMessageConsumptionUpdatedEventType.AgentMessageConsumptionUpdated, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.Json.g.cs deleted file mode 100644 index 6c878e1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageContent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageContent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageContent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageContent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageContent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageContent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageContent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageContent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.g.cs deleted file mode 100644 index 702d348..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContent.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageContent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public object? Content { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageContent( - int? step, - object? content) - { - this.Step = step; - this.Content = content; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageContent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.Json.g.cs deleted file mode 100644 index e9a687c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageContentContent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageContentContent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageContentContent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageContentContent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageContentContent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageContentContent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageContentContent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageContentContent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.g.cs deleted file mode 100644 index 1d7dce9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageContentContent.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageContentContent - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.Json.g.cs deleted file mode 100644 index 0516e0d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageDoneEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageDoneEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageDoneEvent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageDoneEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageDoneEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageDoneEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageDoneEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageDoneEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.g.cs deleted file mode 100644 index 418aa6e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEvent.g.cs +++ /dev/null @@ -1,96 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageDoneEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageDoneEventTypeJsonConverter))] - public global::Dust.PrivateAgentMessageDoneEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageDoneEventStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMessageDoneEventStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageDoneEvent( - int created, - string conversationId, - string configurationId, - string messageId, - global::Dust.PrivateAgentMessageDoneEventStatus status, - global::Dust.PrivateAgentMessageDoneEventType type) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageDoneEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventStatus.g.cs deleted file mode 100644 index d317aa7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventStatus.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageDoneEventStatus - { - /// - /// - /// - Error, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageDoneEventStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageDoneEventStatus value) - { - return value switch - { - PrivateAgentMessageDoneEventStatus.Error => "error", - PrivateAgentMessageDoneEventStatus.Success => "success", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageDoneEventStatus? ToEnum(string value) - { - return value switch - { - "error" => PrivateAgentMessageDoneEventStatus.Error, - "success" => PrivateAgentMessageDoneEventStatus.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventType.g.cs deleted file mode 100644 index 471e6ec..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageDoneEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageDoneEventType - { - /// - /// - /// - AgentMessageDone, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageDoneEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageDoneEventType value) - { - return value switch - { - PrivateAgentMessageDoneEventType.AgentMessageDone => "agent_message_done", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageDoneEventType? ToEnum(string value) - { - return value switch - { - "agent_message_done" => PrivateAgentMessageDoneEventType.AgentMessageDone, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.Json.g.cs deleted file mode 100644 index ecfe74a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageError), - jsonSerializerContext) as global::Dust.PrivateAgentMessageError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.g.cs deleted file mode 100644 index d877f0e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageError.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageError( - string? code, - string? message, - object? metadata) - { - this.Code = code; - this.Message = message; - this.Metadata = metadata; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.Json.g.cs deleted file mode 100644 index ac9e4f7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageErrorMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageErrorMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageErrorMetadata), - jsonSerializerContext) as global::Dust.PrivateAgentMessageErrorMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageErrorMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageErrorMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageErrorMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageErrorMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.g.cs deleted file mode 100644 index c1ae32a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageErrorMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageErrorMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.Json.g.cs deleted file mode 100644 index 8eea743..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct PrivateAgentMessageEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageEvent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageEvent?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageEvent?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.g.cs deleted file mode 100644 index b87bbb7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEvent.g.cs +++ /dev/null @@ -1,1216 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Dust -{ - /// - /// Server-Sent Event for agent message streaming. Discriminated on the `type` field. Each event also includes a `step` integer. - /// - public readonly partial struct PrivateAgentMessageEvent : global::System.IEquatable - { - /// - /// - /// - public global::Dust.PrivateAgentMessageEventDiscriminatorType? Type { get; } - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateGenerationTokensEvent? GenerationTokens { get; init; } -#else - public global::Dust.PrivateGenerationTokensEvent? GenerationTokens { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(GenerationTokens))] -#endif - public bool IsGenerationTokens => GenerationTokens != null; - - /// - /// - /// - public bool TryPickGenerationTokens( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateGenerationTokensEvent? value) - { - value = GenerationTokens; - return IsGenerationTokens; - } - - /// - /// - /// - public global::Dust.PrivateGenerationTokensEvent PickGenerationTokens() => IsGenerationTokens - ? GenerationTokens! - : throw new global::System.InvalidOperationException($"Expected union variant 'GenerationTokens' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolCallStartedEvent? ToolCallStarted { get; init; } -#else - public global::Dust.PrivateToolCallStartedEvent? ToolCallStarted { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolCallStarted))] -#endif - public bool IsToolCallStarted => ToolCallStarted != null; - - /// - /// - /// - public bool TryPickToolCallStarted( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolCallStartedEvent? value) - { - value = ToolCallStarted; - return IsToolCallStarted; - } - - /// - /// - /// - public global::Dust.PrivateToolCallStartedEvent PickToolCallStarted() => IsToolCallStarted - ? ToolCallStarted! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolCallStarted' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentActionSuccessEvent? AgentActionSuccess { get; init; } -#else - public global::Dust.PrivateAgentActionSuccessEvent? AgentActionSuccess { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentActionSuccess))] -#endif - public bool IsAgentActionSuccess => AgentActionSuccess != null; - - /// - /// - /// - public bool TryPickAgentActionSuccess( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentActionSuccessEvent? value) - { - value = AgentActionSuccess; - return IsAgentActionSuccess; - } - - /// - /// - /// - public global::Dust.PrivateAgentActionSuccessEvent PickAgentActionSuccess() => IsAgentActionSuccess - ? AgentActionSuccess! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentActionSuccess' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentMessageSuccessEvent? AgentMessageSuccess { get; init; } -#else - public global::Dust.PrivateAgentMessageSuccessEvent? AgentMessageSuccess { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageSuccess))] -#endif - public bool IsAgentMessageSuccess => AgentMessageSuccess != null; - - /// - /// - /// - public bool TryPickAgentMessageSuccess( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentMessageSuccessEvent? value) - { - value = AgentMessageSuccess; - return IsAgentMessageSuccess; - } - - /// - /// - /// - public global::Dust.PrivateAgentMessageSuccessEvent PickAgentMessageSuccess() => IsAgentMessageSuccess - ? AgentMessageSuccess! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageSuccess' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentErrorEvent? AgentError { get; init; } -#else - public global::Dust.PrivateAgentErrorEvent? AgentError { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentError))] -#endif - public bool IsAgentError => AgentError != null; - - /// - /// - /// - public bool TryPickAgentError( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentErrorEvent? value) - { - value = AgentError; - return IsAgentError; - } - - /// - /// - /// - public global::Dust.PrivateAgentErrorEvent PickAgentError() => IsAgentError - ? AgentError! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentError' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentGenerationCancelledEvent? AgentGenerationCancelled { get; init; } -#else - public global::Dust.PrivateAgentGenerationCancelledEvent? AgentGenerationCancelled { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentGenerationCancelled))] -#endif - public bool IsAgentGenerationCancelled => AgentGenerationCancelled != null; - - /// - /// - /// - public bool TryPickAgentGenerationCancelled( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentGenerationCancelledEvent? value) - { - value = AgentGenerationCancelled; - return IsAgentGenerationCancelled; - } - - /// - /// - /// - public global::Dust.PrivateAgentGenerationCancelledEvent PickAgentGenerationCancelled() => IsAgentGenerationCancelled - ? AgentGenerationCancelled! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentGenerationCancelled' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolErrorEvent? ToolError { get; init; } -#else - public global::Dust.PrivateToolErrorEvent? ToolError { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolError))] -#endif - public bool IsToolError => ToolError != null; - - /// - /// - /// - public bool TryPickToolError( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolErrorEvent? value) - { - value = ToolError; - return IsToolError; - } - - /// - /// - /// - public global::Dust.PrivateToolErrorEvent PickToolError() => IsToolError - ? ToolError! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolError' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolParamsEvent? ToolParams { get; init; } -#else - public global::Dust.PrivateToolParamsEvent? ToolParams { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolParams))] -#endif - public bool IsToolParams => ToolParams != null; - - /// - /// - /// - public bool TryPickToolParams( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolParamsEvent? value) - { - value = ToolParams; - return IsToolParams; - } - - /// - /// - /// - public global::Dust.PrivateToolParamsEvent PickToolParams() => IsToolParams - ? ToolParams! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolParams' but the value was {ToString()}."); - - /// - /// Sent when a tool requires user approval before execution. - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolApproveExecutionEvent? ToolApproveExecution { get; init; } -#else - public global::Dust.PrivateToolApproveExecutionEvent? ToolApproveExecution { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolApproveExecution))] -#endif - public bool IsToolApproveExecution => ToolApproveExecution != null; - - /// - /// - /// - public bool TryPickToolApproveExecution( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolApproveExecutionEvent? value) - { - value = ToolApproveExecution; - return IsToolApproveExecution; - } - - /// - /// - /// - public global::Dust.PrivateToolApproveExecutionEvent PickToolApproveExecution() => IsToolApproveExecution - ? ToolApproveExecution! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolApproveExecution' but the value was {ToString()}."); - - /// - /// Progress notification from a running tool. - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolNotificationEvent? ToolNotification { get; init; } -#else - public global::Dust.PrivateToolNotificationEvent? ToolNotification { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolNotification))] -#endif - public bool IsToolNotification => ToolNotification != null; - - /// - /// - /// - public bool TryPickToolNotification( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolNotificationEvent? value) - { - value = ToolNotification; - return IsToolNotification; - } - - /// - /// - /// - public global::Dust.PrivateToolNotificationEvent PickToolNotification() => IsToolNotification - ? ToolNotification! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolNotification' but the value was {ToString()}."); - - /// - /// Sent when a tool requires personal OAuth authentication. - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolPersonalAuthRequiredEvent? ToolPersonalAuthRequired { get; init; } -#else - public global::Dust.PrivateToolPersonalAuthRequiredEvent? ToolPersonalAuthRequired { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolPersonalAuthRequired))] -#endif - public bool IsToolPersonalAuthRequired => ToolPersonalAuthRequired != null; - - /// - /// - /// - public bool TryPickToolPersonalAuthRequired( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolPersonalAuthRequiredEvent? value) - { - value = ToolPersonalAuthRequired; - return IsToolPersonalAuthRequired; - } - - /// - /// - /// - public global::Dust.PrivateToolPersonalAuthRequiredEvent PickToolPersonalAuthRequired() => IsToolPersonalAuthRequired - ? ToolPersonalAuthRequired! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolPersonalAuthRequired' but the value was {ToString()}."); - - /// - /// Sent when a tool requires file access authorization (e.g., Google Drive). - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateToolFileAuthRequiredEvent? ToolFileAuthRequired { get; init; } -#else - public global::Dust.PrivateToolFileAuthRequiredEvent? ToolFileAuthRequired { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolFileAuthRequired))] -#endif - public bool IsToolFileAuthRequired => ToolFileAuthRequired != null; - - /// - /// - /// - public bool TryPickToolFileAuthRequired( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateToolFileAuthRequiredEvent? value) - { - value = ToolFileAuthRequired; - return IsToolFileAuthRequired; - } - - /// - /// - /// - public global::Dust.PrivateToolFileAuthRequiredEvent PickToolFileAuthRequired() => IsToolFileAuthRequired - ? ToolFileAuthRequired! - : throw new global::System.InvalidOperationException($"Expected union variant 'ToolFileAuthRequired' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentContextPrunedEvent? AgentContextPruned { get; init; } -#else - public global::Dust.PrivateAgentContextPrunedEvent? AgentContextPruned { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentContextPruned))] -#endif - public bool IsAgentContextPruned => AgentContextPruned != null; - - /// - /// - /// - public bool TryPickAgentContextPruned( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentContextPrunedEvent? value) - { - value = AgentContextPruned; - return IsAgentContextPruned; - } - - /// - /// - /// - public global::Dust.PrivateAgentContextPrunedEvent PickAgentContextPruned() => IsAgentContextPruned - ? AgentContextPruned! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentContextPruned' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateGenerationTokensEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateGenerationTokensEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateGenerationTokensEvent?(PrivateAgentMessageEvent @this) => @this.GenerationTokens; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateGenerationTokensEvent? value) - { - GenerationTokens = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromGenerationTokens(global::Dust.PrivateGenerationTokensEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolCallStartedEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolCallStartedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolCallStartedEvent?(PrivateAgentMessageEvent @this) => @this.ToolCallStarted; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolCallStartedEvent? value) - { - ToolCallStarted = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolCallStarted(global::Dust.PrivateToolCallStartedEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateAgentActionSuccessEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateAgentActionSuccessEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentActionSuccessEvent?(PrivateAgentMessageEvent @this) => @this.AgentActionSuccess; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateAgentActionSuccessEvent? value) - { - AgentActionSuccess = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromAgentActionSuccess(global::Dust.PrivateAgentActionSuccessEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateAgentMessageSuccessEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateAgentMessageSuccessEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentMessageSuccessEvent?(PrivateAgentMessageEvent @this) => @this.AgentMessageSuccess; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateAgentMessageSuccessEvent? value) - { - AgentMessageSuccess = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromAgentMessageSuccess(global::Dust.PrivateAgentMessageSuccessEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateAgentErrorEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateAgentErrorEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentErrorEvent?(PrivateAgentMessageEvent @this) => @this.AgentError; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateAgentErrorEvent? value) - { - AgentError = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromAgentError(global::Dust.PrivateAgentErrorEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateAgentGenerationCancelledEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateAgentGenerationCancelledEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentGenerationCancelledEvent?(PrivateAgentMessageEvent @this) => @this.AgentGenerationCancelled; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateAgentGenerationCancelledEvent? value) - { - AgentGenerationCancelled = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromAgentGenerationCancelled(global::Dust.PrivateAgentGenerationCancelledEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolErrorEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolErrorEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolErrorEvent?(PrivateAgentMessageEvent @this) => @this.ToolError; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolErrorEvent? value) - { - ToolError = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolError(global::Dust.PrivateToolErrorEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolParamsEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolParamsEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolParamsEvent?(PrivateAgentMessageEvent @this) => @this.ToolParams; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolParamsEvent? value) - { - ToolParams = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolParams(global::Dust.PrivateToolParamsEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolApproveExecutionEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolApproveExecutionEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolApproveExecutionEvent?(PrivateAgentMessageEvent @this) => @this.ToolApproveExecution; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolApproveExecutionEvent? value) - { - ToolApproveExecution = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolApproveExecution(global::Dust.PrivateToolApproveExecutionEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolNotificationEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolNotificationEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolNotificationEvent?(PrivateAgentMessageEvent @this) => @this.ToolNotification; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolNotificationEvent? value) - { - ToolNotification = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolNotification(global::Dust.PrivateToolNotificationEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolPersonalAuthRequiredEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolPersonalAuthRequiredEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolPersonalAuthRequiredEvent?(PrivateAgentMessageEvent @this) => @this.ToolPersonalAuthRequired; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolPersonalAuthRequiredEvent? value) - { - ToolPersonalAuthRequired = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolPersonalAuthRequired(global::Dust.PrivateToolPersonalAuthRequiredEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateToolFileAuthRequiredEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateToolFileAuthRequiredEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateToolFileAuthRequiredEvent?(PrivateAgentMessageEvent @this) => @this.ToolFileAuthRequired; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateToolFileAuthRequiredEvent? value) - { - ToolFileAuthRequired = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromToolFileAuthRequired(global::Dust.PrivateToolFileAuthRequiredEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public static implicit operator PrivateAgentMessageEvent(global::Dust.PrivateAgentContextPrunedEvent value) => new PrivateAgentMessageEvent((global::Dust.PrivateAgentContextPrunedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentContextPrunedEvent?(PrivateAgentMessageEvent @this) => @this.AgentContextPruned; - - /// - /// - /// - public PrivateAgentMessageEvent(global::Dust.PrivateAgentContextPrunedEvent? value) - { - AgentContextPruned = value; - } - - /// - /// - /// - public static PrivateAgentMessageEvent FromAgentContextPruned(global::Dust.PrivateAgentContextPrunedEvent? value) => new PrivateAgentMessageEvent(value); - - /// - /// - /// - public PrivateAgentMessageEvent( - global::Dust.PrivateAgentMessageEventDiscriminatorType? type, - global::Dust.PrivateGenerationTokensEvent? generationTokens, - global::Dust.PrivateToolCallStartedEvent? toolCallStarted, - global::Dust.PrivateAgentActionSuccessEvent? agentActionSuccess, - global::Dust.PrivateAgentMessageSuccessEvent? agentMessageSuccess, - global::Dust.PrivateAgentErrorEvent? agentError, - global::Dust.PrivateAgentGenerationCancelledEvent? agentGenerationCancelled, - global::Dust.PrivateToolErrorEvent? toolError, - global::Dust.PrivateToolParamsEvent? toolParams, - global::Dust.PrivateToolApproveExecutionEvent? toolApproveExecution, - global::Dust.PrivateToolNotificationEvent? toolNotification, - global::Dust.PrivateToolPersonalAuthRequiredEvent? toolPersonalAuthRequired, - global::Dust.PrivateToolFileAuthRequiredEvent? toolFileAuthRequired, - global::Dust.PrivateAgentContextPrunedEvent? agentContextPruned - ) - { - Type = type; - - GenerationTokens = generationTokens; - ToolCallStarted = toolCallStarted; - AgentActionSuccess = agentActionSuccess; - AgentMessageSuccess = agentMessageSuccess; - AgentError = agentError; - AgentGenerationCancelled = agentGenerationCancelled; - ToolError = toolError; - ToolParams = toolParams; - ToolApproveExecution = toolApproveExecution; - ToolNotification = toolNotification; - ToolPersonalAuthRequired = toolPersonalAuthRequired; - ToolFileAuthRequired = toolFileAuthRequired; - AgentContextPruned = agentContextPruned; - } - - /// - /// - /// - public object? Object => - AgentContextPruned as object ?? - ToolFileAuthRequired as object ?? - ToolPersonalAuthRequired as object ?? - ToolNotification as object ?? - ToolApproveExecution as object ?? - ToolParams as object ?? - ToolError as object ?? - AgentGenerationCancelled as object ?? - AgentError as object ?? - AgentMessageSuccess as object ?? - AgentActionSuccess as object ?? - ToolCallStarted as object ?? - GenerationTokens as object - ; - - /// - /// - /// - public override string? ToString() => - GenerationTokens?.ToString() ?? - ToolCallStarted?.ToString() ?? - AgentActionSuccess?.ToString() ?? - AgentMessageSuccess?.ToString() ?? - AgentError?.ToString() ?? - AgentGenerationCancelled?.ToString() ?? - ToolError?.ToString() ?? - ToolParams?.ToString() ?? - ToolApproveExecution?.ToString() ?? - ToolNotification?.ToString() ?? - ToolPersonalAuthRequired?.ToString() ?? - ToolFileAuthRequired?.ToString() ?? - AgentContextPruned?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && IsToolPersonalAuthRequired && !IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && IsToolFileAuthRequired && !IsAgentContextPruned || !IsGenerationTokens && !IsToolCallStarted && !IsAgentActionSuccess && !IsAgentMessageSuccess && !IsAgentError && !IsAgentGenerationCancelled && !IsToolError && !IsToolParams && !IsToolApproveExecution && !IsToolNotification && !IsToolPersonalAuthRequired && !IsToolFileAuthRequired && IsAgentContextPruned; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? generationTokens = null, - global::System.Func? toolCallStarted = null, - global::System.Func? agentActionSuccess = null, - global::System.Func? agentMessageSuccess = null, - global::System.Func? agentError = null, - global::System.Func? agentGenerationCancelled = null, - global::System.Func? toolError = null, - global::System.Func? toolParams = null, - global::System.Func? toolApproveExecution = null, - global::System.Func? toolNotification = null, - global::System.Func? toolPersonalAuthRequired = null, - global::System.Func? toolFileAuthRequired = null, - global::System.Func? agentContextPruned = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsGenerationTokens && generationTokens != null) - { - return generationTokens(GenerationTokens!); - } - else if (IsToolCallStarted && toolCallStarted != null) - { - return toolCallStarted(ToolCallStarted!); - } - else if (IsAgentActionSuccess && agentActionSuccess != null) - { - return agentActionSuccess(AgentActionSuccess!); - } - else if (IsAgentMessageSuccess && agentMessageSuccess != null) - { - return agentMessageSuccess(AgentMessageSuccess!); - } - else if (IsAgentError && agentError != null) - { - return agentError(AgentError!); - } - else if (IsAgentGenerationCancelled && agentGenerationCancelled != null) - { - return agentGenerationCancelled(AgentGenerationCancelled!); - } - else if (IsToolError && toolError != null) - { - return toolError(ToolError!); - } - else if (IsToolParams && toolParams != null) - { - return toolParams(ToolParams!); - } - else if (IsToolApproveExecution && toolApproveExecution != null) - { - return toolApproveExecution(ToolApproveExecution!); - } - else if (IsToolNotification && toolNotification != null) - { - return toolNotification(ToolNotification!); - } - else if (IsToolPersonalAuthRequired && toolPersonalAuthRequired != null) - { - return toolPersonalAuthRequired(ToolPersonalAuthRequired!); - } - else if (IsToolFileAuthRequired && toolFileAuthRequired != null) - { - return toolFileAuthRequired(ToolFileAuthRequired!); - } - else if (IsAgentContextPruned && agentContextPruned != null) - { - return agentContextPruned(AgentContextPruned!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? generationTokens = null, - - global::System.Action? toolCallStarted = null, - - global::System.Action? agentActionSuccess = null, - - global::System.Action? agentMessageSuccess = null, - - global::System.Action? agentError = null, - - global::System.Action? agentGenerationCancelled = null, - - global::System.Action? toolError = null, - - global::System.Action? toolParams = null, - - global::System.Action? toolApproveExecution = null, - - global::System.Action? toolNotification = null, - - global::System.Action? toolPersonalAuthRequired = null, - - global::System.Action? toolFileAuthRequired = null, - - global::System.Action? agentContextPruned = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsGenerationTokens) - { - generationTokens?.Invoke(GenerationTokens!); - } - else if (IsToolCallStarted) - { - toolCallStarted?.Invoke(ToolCallStarted!); - } - else if (IsAgentActionSuccess) - { - agentActionSuccess?.Invoke(AgentActionSuccess!); - } - else if (IsAgentMessageSuccess) - { - agentMessageSuccess?.Invoke(AgentMessageSuccess!); - } - else if (IsAgentError) - { - agentError?.Invoke(AgentError!); - } - else if (IsAgentGenerationCancelled) - { - agentGenerationCancelled?.Invoke(AgentGenerationCancelled!); - } - else if (IsToolError) - { - toolError?.Invoke(ToolError!); - } - else if (IsToolParams) - { - toolParams?.Invoke(ToolParams!); - } - else if (IsToolApproveExecution) - { - toolApproveExecution?.Invoke(ToolApproveExecution!); - } - else if (IsToolNotification) - { - toolNotification?.Invoke(ToolNotification!); - } - else if (IsToolPersonalAuthRequired) - { - toolPersonalAuthRequired?.Invoke(ToolPersonalAuthRequired!); - } - else if (IsToolFileAuthRequired) - { - toolFileAuthRequired?.Invoke(ToolFileAuthRequired!); - } - else if (IsAgentContextPruned) - { - agentContextPruned?.Invoke(AgentContextPruned!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? generationTokens = null, - global::System.Action? toolCallStarted = null, - global::System.Action? agentActionSuccess = null, - global::System.Action? agentMessageSuccess = null, - global::System.Action? agentError = null, - global::System.Action? agentGenerationCancelled = null, - global::System.Action? toolError = null, - global::System.Action? toolParams = null, - global::System.Action? toolApproveExecution = null, - global::System.Action? toolNotification = null, - global::System.Action? toolPersonalAuthRequired = null, - global::System.Action? toolFileAuthRequired = null, - global::System.Action? agentContextPruned = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsGenerationTokens) - { - generationTokens?.Invoke(GenerationTokens!); - } - else if (IsToolCallStarted) - { - toolCallStarted?.Invoke(ToolCallStarted!); - } - else if (IsAgentActionSuccess) - { - agentActionSuccess?.Invoke(AgentActionSuccess!); - } - else if (IsAgentMessageSuccess) - { - agentMessageSuccess?.Invoke(AgentMessageSuccess!); - } - else if (IsAgentError) - { - agentError?.Invoke(AgentError!); - } - else if (IsAgentGenerationCancelled) - { - agentGenerationCancelled?.Invoke(AgentGenerationCancelled!); - } - else if (IsToolError) - { - toolError?.Invoke(ToolError!); - } - else if (IsToolParams) - { - toolParams?.Invoke(ToolParams!); - } - else if (IsToolApproveExecution) - { - toolApproveExecution?.Invoke(ToolApproveExecution!); - } - else if (IsToolNotification) - { - toolNotification?.Invoke(ToolNotification!); - } - else if (IsToolPersonalAuthRequired) - { - toolPersonalAuthRequired?.Invoke(ToolPersonalAuthRequired!); - } - else if (IsToolFileAuthRequired) - { - toolFileAuthRequired?.Invoke(ToolFileAuthRequired!); - } - else if (IsAgentContextPruned) - { - agentContextPruned?.Invoke(AgentContextPruned!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - GenerationTokens, - typeof(global::Dust.PrivateGenerationTokensEvent), - ToolCallStarted, - typeof(global::Dust.PrivateToolCallStartedEvent), - AgentActionSuccess, - typeof(global::Dust.PrivateAgentActionSuccessEvent), - AgentMessageSuccess, - typeof(global::Dust.PrivateAgentMessageSuccessEvent), - AgentError, - typeof(global::Dust.PrivateAgentErrorEvent), - AgentGenerationCancelled, - typeof(global::Dust.PrivateAgentGenerationCancelledEvent), - ToolError, - typeof(global::Dust.PrivateToolErrorEvent), - ToolParams, - typeof(global::Dust.PrivateToolParamsEvent), - ToolApproveExecution, - typeof(global::Dust.PrivateToolApproveExecutionEvent), - ToolNotification, - typeof(global::Dust.PrivateToolNotificationEvent), - ToolPersonalAuthRequired, - typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent), - ToolFileAuthRequired, - typeof(global::Dust.PrivateToolFileAuthRequiredEvent), - AgentContextPruned, - typeof(global::Dust.PrivateAgentContextPrunedEvent), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(PrivateAgentMessageEvent other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(GenerationTokens, other.GenerationTokens) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolCallStarted, other.ToolCallStarted) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentActionSuccess, other.AgentActionSuccess) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageSuccess, other.AgentMessageSuccess) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentError, other.AgentError) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentGenerationCancelled, other.AgentGenerationCancelled) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolError, other.ToolError) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolParams, other.ToolParams) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolApproveExecution, other.ToolApproveExecution) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolNotification, other.ToolNotification) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolPersonalAuthRequired, other.ToolPersonalAuthRequired) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolFileAuthRequired, other.ToolFileAuthRequired) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentContextPruned, other.AgentContextPruned) - ; - } - - /// - /// - /// - public static bool operator ==(PrivateAgentMessageEvent obj1, PrivateAgentMessageEvent obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(PrivateAgentMessageEvent obj1, PrivateAgentMessageEvent obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is PrivateAgentMessageEvent o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.Json.g.cs deleted file mode 100644 index ab52760..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageEventDiscriminator - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageEventDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageEventDiscriminator), - jsonSerializerContext) as global::Dust.PrivateAgentMessageEventDiscriminator; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageEventDiscriminator? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageEventDiscriminator? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageEventDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageEventDiscriminator; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.g.cs deleted file mode 100644 index 9bb3c65..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageEventDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageEventDiscriminatorTypeJsonConverter))] - public global::Dust.PrivateAgentMessageEventDiscriminatorType? Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageEventDiscriminator( - global::Dust.PrivateAgentMessageEventDiscriminatorType? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageEventDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminatorType.g.cs deleted file mode 100644 index 62e8b7f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageEventDiscriminatorType.g.cs +++ /dev/null @@ -1,117 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageEventDiscriminatorType - { - /// - /// - /// - AgentActionSuccess, - /// - /// - /// - AgentContextPruned, - /// - /// - /// - AgentError, - /// - /// - /// - AgentGenerationCancelled, - /// - /// - /// - AgentMessageSuccess, - /// - /// - /// - GenerationTokens, - /// - /// - /// - ToolApproveExecution, - /// - /// - /// - ToolCallStarted, - /// - /// - /// - ToolError, - /// - /// - /// - ToolFileAuthRequired, - /// - /// - /// - ToolNotification, - /// - /// - /// - ToolParams, - /// - /// - /// - ToolPersonalAuthRequired, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageEventDiscriminatorTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageEventDiscriminatorType value) - { - return value switch - { - PrivateAgentMessageEventDiscriminatorType.AgentActionSuccess => "agent_action_success", - PrivateAgentMessageEventDiscriminatorType.AgentContextPruned => "agent_context_pruned", - PrivateAgentMessageEventDiscriminatorType.AgentError => "agent_error", - PrivateAgentMessageEventDiscriminatorType.AgentGenerationCancelled => "agent_generation_cancelled", - PrivateAgentMessageEventDiscriminatorType.AgentMessageSuccess => "agent_message_success", - PrivateAgentMessageEventDiscriminatorType.GenerationTokens => "generation_tokens", - PrivateAgentMessageEventDiscriminatorType.ToolApproveExecution => "tool_approve_execution", - PrivateAgentMessageEventDiscriminatorType.ToolCallStarted => "tool_call_started", - PrivateAgentMessageEventDiscriminatorType.ToolError => "tool_error", - PrivateAgentMessageEventDiscriminatorType.ToolFileAuthRequired => "tool_file_auth_required", - PrivateAgentMessageEventDiscriminatorType.ToolNotification => "tool_notification", - PrivateAgentMessageEventDiscriminatorType.ToolParams => "tool_params", - PrivateAgentMessageEventDiscriminatorType.ToolPersonalAuthRequired => "tool_personal_auth_required", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageEventDiscriminatorType? ToEnum(string value) - { - return value switch - { - "agent_action_success" => PrivateAgentMessageEventDiscriminatorType.AgentActionSuccess, - "agent_context_pruned" => PrivateAgentMessageEventDiscriminatorType.AgentContextPruned, - "agent_error" => PrivateAgentMessageEventDiscriminatorType.AgentError, - "agent_generation_cancelled" => PrivateAgentMessageEventDiscriminatorType.AgentGenerationCancelled, - "agent_message_success" => PrivateAgentMessageEventDiscriminatorType.AgentMessageSuccess, - "generation_tokens" => PrivateAgentMessageEventDiscriminatorType.GenerationTokens, - "tool_approve_execution" => PrivateAgentMessageEventDiscriminatorType.ToolApproveExecution, - "tool_call_started" => PrivateAgentMessageEventDiscriminatorType.ToolCallStarted, - "tool_error" => PrivateAgentMessageEventDiscriminatorType.ToolError, - "tool_file_auth_required" => PrivateAgentMessageEventDiscriminatorType.ToolFileAuthRequired, - "tool_notification" => PrivateAgentMessageEventDiscriminatorType.ToolNotification, - "tool_params" => PrivateAgentMessageEventDiscriminatorType.ToolParams, - "tool_personal_auth_required" => PrivateAgentMessageEventDiscriminatorType.ToolPersonalAuthRequired, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageModelResolutionMethod.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageModelResolutionMethod.g.cs deleted file mode 100644 index 886a1b9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageModelResolutionMethod.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// - public enum PrivateAgentMessageModelResolutionMethod - { - /// - /// - /// - Agent, - /// - /// - /// - Auto, - /// - /// - /// - AutoComplex, - /// - /// - /// - AutoFast, - /// - /// - /// - FairUseDowngrade, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageModelResolutionMethodExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageModelResolutionMethod value) - { - return value switch - { - PrivateAgentMessageModelResolutionMethod.Agent => "agent", - PrivateAgentMessageModelResolutionMethod.Auto => "auto", - PrivateAgentMessageModelResolutionMethod.AutoComplex => "auto_complex", - PrivateAgentMessageModelResolutionMethod.AutoFast => "auto_fast", - PrivateAgentMessageModelResolutionMethod.FairUseDowngrade => "fair_use_downgrade", - PrivateAgentMessageModelResolutionMethod.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageModelResolutionMethod? ToEnum(string value) - { - return value switch - { - "agent" => PrivateAgentMessageModelResolutionMethod.Agent, - "auto" => PrivateAgentMessageModelResolutionMethod.Auto, - "auto_complex" => PrivateAgentMessageModelResolutionMethod.AutoComplex, - "auto_fast" => PrivateAgentMessageModelResolutionMethod.AutoFast, - "fair_use_downgrade" => PrivateAgentMessageModelResolutionMethod.FairUseDowngrade, - "user" => PrivateAgentMessageModelResolutionMethod.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.Json.g.cs deleted file mode 100644 index 9ad8c9f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageNewEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageNewEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageNewEvent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageNewEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageNewEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageNewEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageNewEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageNewEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.g.cs deleted file mode 100644 index 79ea72e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEvent.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageNewEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageNewEventTypeJsonConverter))] - public global::Dust.PrivateAgentMessageNewEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// An agent message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMessage Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// An agent message in a conversation. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageNewEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentMessage message, - global::Dust.PrivateAgentMessageNewEventType type) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageNewEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEventType.g.cs deleted file mode 100644 index c862cab..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageNewEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageNewEventType - { - /// - /// - /// - AgentMessageNew, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageNewEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageNewEventType value) - { - return value switch - { - PrivateAgentMessageNewEventType.AgentMessageNew => "agent_message_new", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageNewEventType? ToEnum(string value) - { - return value switch - { - "agent_message_new" => PrivateAgentMessageNewEventType.AgentMessageNew, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.Json.g.cs deleted file mode 100644 index 7812313..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageResolvedModel - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageResolvedModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageResolvedModel), - jsonSerializerContext) as global::Dust.PrivateAgentMessageResolvedModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageResolvedModel? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageResolvedModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageResolvedModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageResolvedModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.g.cs deleted file mode 100644 index c0c30b0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageResolvedModel.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - public sealed partial class PrivateAgentMessageResolvedModel - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - public string? ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - public string? ModelId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoningEffort")] - public string? ReasoningEffort { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageResolvedModel( - string? providerId, - string? modelId, - string? reasoningEffort) - { - this.ProviderId = providerId; - this.ModelId = modelId; - this.ReasoningEffort = reasoningEffort; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageResolvedModel() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageStatus.g.cs deleted file mode 100644 index b7cfb45..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageStatus - { - /// - /// - /// - Cancelled, - /// - /// - /// - Created, - /// - /// - /// - Failed, - /// - /// - /// - Succeeded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageStatus value) - { - return value switch - { - PrivateAgentMessageStatus.Cancelled => "cancelled", - PrivateAgentMessageStatus.Created => "created", - PrivateAgentMessageStatus.Failed => "failed", - PrivateAgentMessageStatus.Succeeded => "succeeded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageStatus? ToEnum(string value) - { - return value switch - { - "cancelled" => PrivateAgentMessageStatus.Cancelled, - "created" => PrivateAgentMessageStatus.Created, - "failed" => PrivateAgentMessageStatus.Failed, - "succeeded" => PrivateAgentMessageStatus.Succeeded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.Json.g.cs deleted file mode 100644 index bb06915..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateAgentMessageSuccessEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageSuccessEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateAgentMessageSuccessEvent), - jsonSerializerContext) as global::Dust.PrivateAgentMessageSuccessEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateAgentMessageSuccessEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateAgentMessageSuccessEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateAgentMessageSuccessEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateAgentMessageSuccessEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.g.cs deleted file mode 100644 index f60356c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEvent.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateAgentMessageSuccessEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateAgentMessageSuccessEventTypeJsonConverter))] - public global::Dust.PrivateAgentMessageSuccessEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// An agent message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateAgentMessage Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("runIds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList RunIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// An agent message in a conversation. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateAgentMessageSuccessEvent( - int created, - string configurationId, - string messageId, - global::Dust.PrivateAgentMessage message, - global::System.Collections.Generic.IList runIds, - global::Dust.PrivateAgentMessageSuccessEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.RunIds = runIds ?? throw new global::System.ArgumentNullException(nameof(runIds)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateAgentMessageSuccessEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEventType.g.cs deleted file mode 100644 index 78fcd53..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageSuccessEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageSuccessEventType - { - /// - /// - /// - AgentMessageSuccess, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageSuccessEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageSuccessEventType value) - { - return value switch - { - PrivateAgentMessageSuccessEventType.AgentMessageSuccess => "agent_message_success", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageSuccessEventType? ToEnum(string value) - { - return value switch - { - "agent_message_success" => PrivateAgentMessageSuccessEventType.AgentMessageSuccess, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageType.g.cs deleted file mode 100644 index 7a164c5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageType - { - /// - /// - /// - AgentMessage, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageType value) - { - return value switch - { - PrivateAgentMessageType.AgentMessage => "agent_message", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageType? ToEnum(string value) - { - return value switch - { - "agent_message" => PrivateAgentMessageType.AgentMessage, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageVisibility.g.cs deleted file mode 100644 index 716801d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateAgentMessageVisibility.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateAgentMessageVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateAgentMessageVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateAgentMessageVisibility value) - { - return value switch - { - PrivateAgentMessageVisibility.Deleted => "deleted", - PrivateAgentMessageVisibility.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateAgentMessageVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateAgentMessageVisibility.Deleted, - "visible" => PrivateAgentMessageVisibility.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCitation.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCitation.Json.g.cs deleted file mode 100644 index 9367e43..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCitation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateCitation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateCitation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateCitation), - jsonSerializerContext) as global::Dust.PrivateCitation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateCitation? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateCitation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateCitation), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateCitation; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCitation.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCitation.g.cs deleted file mode 100644 index 99ca9b7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCitation.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateCitation - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("href")] - public string? Href { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - public string? ContentType { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateCitation( - string? title, - string? description, - string? href, - string? provider, - string? contentType) - { - this.Title = title; - this.Description = description; - this.Href = href; - this.Provider = provider; - this.ContentType = contentType; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateCitation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.Json.g.cs deleted file mode 100644 index 3c53f06..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateCompactionMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateCompactionMessage), - jsonSerializerContext) as global::Dust.PrivateCompactionMessage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateCompactionMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateCompactionMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateCompactionMessage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.g.cs deleted file mode 100644 index ef91e5a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessage.g.cs +++ /dev/null @@ -1,155 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A compaction message summarizing earlier conversation content. - /// - public sealed partial class PrivateCompactionMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateCompactionMessageTypeJsonConverter))] - public global::Dust.PrivateCompactionMessageType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("compactionMessageId")] - public int? CompactionMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateCompactionMessageVisibilityJsonConverter))] - public global::Dust.PrivateCompactionMessageVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Rank { get; set; } - - /// - /// Legacy, always null. Branches were removed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchId")] - public string? BranchId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceConversationId")] - public string? SourceConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateCompactionMessageStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateCompactionMessageStatus Status { get; set; } - - /// - /// Compacted summary. Null while status is "created". - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Legacy, always null. Branches were removed. - /// - /// - /// - /// Compacted summary. Null while status is "created". - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateCompactionMessage( - string sId, - int created, - int version, - int rank, - global::Dust.PrivateCompactionMessageStatus status, - global::Dust.PrivateCompactionMessageType type, - int? id, - int? compactionMessageId, - global::Dust.PrivateCompactionMessageVisibility? visibility, - string? branchId, - string? sourceConversationId, - string? content) - { - this.Type = type; - this.Id = id; - this.CompactionMessageId = compactionMessageId; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Created = created; - this.Visibility = visibility; - this.Version = version; - this.Rank = rank; - this.BranchId = branchId; - this.SourceConversationId = sourceConversationId; - this.Status = status; - this.Content = content; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateCompactionMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.Json.g.cs deleted file mode 100644 index 4e360ae..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateCompactionMessageDoneEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessageDoneEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateCompactionMessageDoneEvent), - jsonSerializerContext) as global::Dust.PrivateCompactionMessageDoneEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessageDoneEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateCompactionMessageDoneEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateCompactionMessageDoneEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateCompactionMessageDoneEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.g.cs deleted file mode 100644 index aab919d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEvent.g.cs +++ /dev/null @@ -1,77 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateCompactionMessageDoneEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateCompactionMessageDoneEventTypeJsonConverter))] - public global::Dust.PrivateCompactionMessageDoneEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// A compaction message summarizing earlier conversation content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateCompactionMessage Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// A compaction message summarizing earlier conversation content. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateCompactionMessageDoneEvent( - int created, - string messageId, - global::Dust.PrivateCompactionMessage message, - global::Dust.PrivateCompactionMessageDoneEventType type) - { - this.Type = type; - this.Created = created; - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateCompactionMessageDoneEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEventType.g.cs deleted file mode 100644 index 40c5874..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageDoneEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateCompactionMessageDoneEventType - { - /// - /// - /// - CompactionMessageDone, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateCompactionMessageDoneEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateCompactionMessageDoneEventType value) - { - return value switch - { - PrivateCompactionMessageDoneEventType.CompactionMessageDone => "compaction_message_done", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateCompactionMessageDoneEventType? ToEnum(string value) - { - return value switch - { - "compaction_message_done" => PrivateCompactionMessageDoneEventType.CompactionMessageDone, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.Json.g.cs deleted file mode 100644 index 3d4d521..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateCompactionMessageNewEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessageNewEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateCompactionMessageNewEvent), - jsonSerializerContext) as global::Dust.PrivateCompactionMessageNewEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateCompactionMessageNewEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateCompactionMessageNewEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateCompactionMessageNewEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateCompactionMessageNewEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.g.cs deleted file mode 100644 index 0d622af..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEvent.g.cs +++ /dev/null @@ -1,77 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateCompactionMessageNewEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateCompactionMessageNewEventTypeJsonConverter))] - public global::Dust.PrivateCompactionMessageNewEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// A compaction message summarizing earlier conversation content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateCompactionMessage Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// A compaction message summarizing earlier conversation content. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateCompactionMessageNewEvent( - int created, - string messageId, - global::Dust.PrivateCompactionMessage message, - global::Dust.PrivateCompactionMessageNewEventType type) - { - this.Type = type; - this.Created = created; - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateCompactionMessageNewEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEventType.g.cs deleted file mode 100644 index ab8a2c7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageNewEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateCompactionMessageNewEventType - { - /// - /// - /// - CompactionMessageNew, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateCompactionMessageNewEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateCompactionMessageNewEventType value) - { - return value switch - { - PrivateCompactionMessageNewEventType.CompactionMessageNew => "compaction_message_new", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateCompactionMessageNewEventType? ToEnum(string value) - { - return value switch - { - "compaction_message_new" => PrivateCompactionMessageNewEventType.CompactionMessageNew, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageStatus.g.cs deleted file mode 100644 index 4d6f70d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageStatus.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateCompactionMessageStatus - { - /// - /// - /// - Created, - /// - /// - /// - Failed, - /// - /// - /// - Succeeded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateCompactionMessageStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateCompactionMessageStatus value) - { - return value switch - { - PrivateCompactionMessageStatus.Created => "created", - PrivateCompactionMessageStatus.Failed => "failed", - PrivateCompactionMessageStatus.Succeeded => "succeeded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateCompactionMessageStatus? ToEnum(string value) - { - return value switch - { - "created" => PrivateCompactionMessageStatus.Created, - "failed" => PrivateCompactionMessageStatus.Failed, - "succeeded" => PrivateCompactionMessageStatus.Succeeded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageType.g.cs deleted file mode 100644 index bf7e711..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateCompactionMessageType - { - /// - /// - /// - CompactionMessage, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateCompactionMessageTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateCompactionMessageType value) - { - return value switch - { - PrivateCompactionMessageType.CompactionMessage => "compaction_message", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateCompactionMessageType? ToEnum(string value) - { - return value switch - { - "compaction_message" => PrivateCompactionMessageType.CompactionMessage, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageVisibility.g.cs deleted file mode 100644 index 316c45b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateCompactionMessageVisibility.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateCompactionMessageVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateCompactionMessageVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateCompactionMessageVisibility value) - { - return value switch - { - PrivateCompactionMessageVisibility.Deleted => "deleted", - PrivateCompactionMessageVisibility.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateCompactionMessageVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateCompactionMessageVisibility.Deleted, - "visible" => PrivateCompactionMessageVisibility.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.Json.g.cs deleted file mode 100644 index 6be4413..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConsumptionFacet - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConsumptionFacet? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConsumptionFacet), - jsonSerializerContext) as global::Dust.PrivateConsumptionFacet; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConsumptionFacet? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConsumptionFacet? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConsumptionFacet), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConsumptionFacet; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.g.cs deleted file mode 100644 index 2098eee..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacet.g.cs +++ /dev/null @@ -1,138 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConsumptionFacet - { - /// - /// Raw indexed value accepted by the corresponding consumption filter. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("value")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Value { get; set; } - - /// - /// Human-readable label, falling back to the raw value when its resource was deleted. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - public string? PictureUrl { get; set; } - - /// - /// Design-system icon name for tool and skill facets when known. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("icon")] - public string? Icon { get; set; } - - /// - /// Number of matching indexed documents after applying the selected period and every other facet. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("documentCount")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int DocumentCount { get; set; } - - /// - /// Whether selecting this value would produce no matching indexed document. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Disabled { get; set; } - - /// - /// Current agent scope, when the agent still has accessible configuration metadata. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scope")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConsumptionFacetScopeJsonConverter))] - public global::Dust.PrivateConsumptionFacetScope? Scope { get; set; } - - /// - /// Model maker, for known model facets. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("maker")] - public string? Maker { get; set; } - - /// - /// Default reasoning-effort tier, for known model facets. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConsumptionFacetTierJsonConverter))] - public global::Dust.PrivateConsumptionFacetTier? Tier { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Raw indexed value accepted by the corresponding consumption filter. - /// - /// - /// Human-readable label, falling back to the raw value when its resource was deleted. - /// - /// - /// Number of matching indexed documents after applying the selected period and every other facet. - /// - /// - /// Whether selecting this value would produce no matching indexed document. - /// - /// - /// - /// Design-system icon name for tool and skill facets when known. - /// - /// - /// Current agent scope, when the agent still has accessible configuration metadata. - /// - /// - /// Model maker, for known model facets. - /// - /// - /// Default reasoning-effort tier, for known model facets. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConsumptionFacet( - string value, - string label, - int documentCount, - bool disabled, - string? pictureUrl, - string? icon, - global::Dust.PrivateConsumptionFacetScope? scope, - string? maker, - global::Dust.PrivateConsumptionFacetTier? tier) - { - this.Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.PictureUrl = pictureUrl; - this.Icon = icon; - this.DocumentCount = documentCount; - this.Disabled = disabled; - this.Scope = scope; - this.Maker = maker; - this.Tier = tier; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConsumptionFacet() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetScope.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetScope.g.cs deleted file mode 100644 index c598ef1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetScope.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Current agent scope, when the agent still has accessible configuration metadata. - /// - public enum PrivateConsumptionFacetScope - { - /// - /// - /// - Global, - /// - /// - /// - Hidden, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConsumptionFacetScopeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConsumptionFacetScope value) - { - return value switch - { - PrivateConsumptionFacetScope.Global => "global", - PrivateConsumptionFacetScope.Hidden => "hidden", - PrivateConsumptionFacetScope.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConsumptionFacetScope? ToEnum(string value) - { - return value switch - { - "global" => PrivateConsumptionFacetScope.Global, - "hidden" => PrivateConsumptionFacetScope.Hidden, - "visible" => PrivateConsumptionFacetScope.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetTier.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetTier.g.cs deleted file mode 100644 index 1405633..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConsumptionFacetTier.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Default reasoning-effort tier, for known model facets. - /// - public enum PrivateConsumptionFacetTier - { - /// - /// - /// - Balanced, - /// - /// - /// - CostEfficient, - /// - /// - /// - Premium, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConsumptionFacetTierExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConsumptionFacetTier value) - { - return value switch - { - PrivateConsumptionFacetTier.Balanced => "balanced", - PrivateConsumptionFacetTier.CostEfficient => "cost_efficient", - PrivateConsumptionFacetTier.Premium => "premium", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConsumptionFacetTier? ToEnum(string value) - { - return value switch - { - "balanced" => PrivateConsumptionFacetTier.Balanced, - "cost_efficient" => PrivateConsumptionFacetTier.CostEfficient, - "premium" => PrivateConsumptionFacetTier.Premium, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.Json.g.cs deleted file mode 100644 index 23662bd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateContentFragment - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateContentFragment? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateContentFragment), - jsonSerializerContext) as global::Dust.PrivateContentFragment; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateContentFragment? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateContentFragment? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateContentFragment), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateContentFragment; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.g.cs deleted file mode 100644 index fb7d3a0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragment.g.cs +++ /dev/null @@ -1,274 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A content fragment (file or content node attachment) in a conversation. - /// - public sealed partial class PrivateContentFragment - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateContentFragmentTypeJsonConverter))] - public global::Dust.PrivateContentFragmentType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public int? Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateContentFragmentVisibilityJsonConverter))] - public global::Dust.PrivateContentFragmentVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - public int? Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - public int? Rank { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// MIME type of the content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceUrl")] - public string? SourceUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context")] - public global::Dust.PrivateContentFragmentContext? Context { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragmentId")] - public string? ContentFragmentId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragmentVersion")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateContentFragmentContentFragmentVersionJsonConverter))] - public global::Dust.PrivateContentFragmentContentFragmentVersion? ContentFragmentVersion { get; set; } - - /// - /// Whether this is a file upload or a content node reference - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentFragmentType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateContentFragmentContentFragmentTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateContentFragmentContentFragmentType ContentFragmentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expiredReason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateContentFragmentExpiredReasonJsonConverter))] - public global::Dust.PrivateContentFragmentExpiredReason? ExpiredReason { get; set; } - - /// - /// Present for file content fragments - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - public string? FileId { get; set; } - - /// - /// Path of this file inside the sandbox conversation mount. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } - - /// - /// Path of the plain-text sibling of this file inside the sandbox conversation mount (e.g. an audio transcript), when it has one. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("processedPath")] - public string? ProcessedPath { get; set; } - - /// - /// Whether upload-time file processing was skipped. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skipFileProcessing")] - public bool? SkipFileProcessing { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("snippet")] - public string? Snippet { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("textUrl")] - public string? TextUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("textBytes")] - public long? TextBytes { get; set; } - - /// - /// Present for content node fragments - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nodeId")] - public string? NodeId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nodeDataSourceViewId")] - public string? NodeDataSourceViewId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// MIME type of the content - /// - /// - /// Whether this is a file upload or a content node reference - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Present for file content fragments - /// - /// - /// Path of this file inside the sandbox conversation mount. - /// - /// - /// Path of the plain-text sibling of this file inside the sandbox conversation mount (e.g. an audio transcript), when it has one. - /// - /// - /// Whether upload-time file processing was skipped. - /// - /// - /// - /// - /// - /// Present for content node fragments - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateContentFragment( - string sId, - string title, - string contentType, - global::Dust.PrivateContentFragmentContentFragmentType contentFragmentType, - global::Dust.PrivateContentFragmentType type, - int? id, - int? created, - global::Dust.PrivateContentFragmentVisibility? visibility, - int? version, - int? rank, - string? sourceUrl, - global::Dust.PrivateContentFragmentContext? context, - string? contentFragmentId, - global::Dust.PrivateContentFragmentContentFragmentVersion? contentFragmentVersion, - global::Dust.PrivateContentFragmentExpiredReason? expiredReason, - string? fileId, - string? path, - string? processedPath, - bool? skipFileProcessing, - string? snippet, - string? textUrl, - long? textBytes, - string? nodeId, - string? nodeDataSourceViewId) - { - this.Type = type; - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Created = created; - this.Visibility = visibility; - this.Version = version; - this.Rank = rank; - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - this.SourceUrl = sourceUrl; - this.Context = context; - this.ContentFragmentId = contentFragmentId; - this.ContentFragmentVersion = contentFragmentVersion; - this.ContentFragmentType = contentFragmentType; - this.ExpiredReason = expiredReason; - this.FileId = fileId; - this.Path = path; - this.ProcessedPath = processedPath; - this.SkipFileProcessing = skipFileProcessing; - this.Snippet = snippet; - this.TextUrl = textUrl; - this.TextBytes = textBytes; - this.NodeId = nodeId; - this.NodeDataSourceViewId = nodeDataSourceViewId; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateContentFragment() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentType.g.cs deleted file mode 100644 index eb422b8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Whether this is a file upload or a content node reference - /// - public enum PrivateContentFragmentContentFragmentType - { - /// - /// - /// - ContentNode, - /// - /// - /// - File, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateContentFragmentContentFragmentTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateContentFragmentContentFragmentType value) - { - return value switch - { - PrivateContentFragmentContentFragmentType.ContentNode => "content_node", - PrivateContentFragmentContentFragmentType.File => "file", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateContentFragmentContentFragmentType? ToEnum(string value) - { - return value switch - { - "content_node" => PrivateContentFragmentContentFragmentType.ContentNode, - "file" => PrivateContentFragmentContentFragmentType.File, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentVersion.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentVersion.g.cs deleted file mode 100644 index 367dcc9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContentFragmentVersion.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateContentFragmentContentFragmentVersion - { - /// - /// - /// - Latest, - /// - /// - /// - Superseded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateContentFragmentContentFragmentVersionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateContentFragmentContentFragmentVersion value) - { - return value switch - { - PrivateContentFragmentContentFragmentVersion.Latest => "latest", - PrivateContentFragmentContentFragmentVersion.Superseded => "superseded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateContentFragmentContentFragmentVersion? ToEnum(string value) - { - return value switch - { - "latest" => PrivateContentFragmentContentFragmentVersion.Latest, - "superseded" => PrivateContentFragmentContentFragmentVersion.Superseded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.Json.g.cs deleted file mode 100644 index bd32633..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateContentFragmentContext - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateContentFragmentContext? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateContentFragmentContext), - jsonSerializerContext) as global::Dust.PrivateContentFragmentContext; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateContentFragmentContext? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateContentFragmentContext? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateContentFragmentContext), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateContentFragmentContext; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.g.cs deleted file mode 100644 index 246c26b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentContext.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateContentFragmentContext - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - public string? Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("profilePictureUrl")] - public string? ProfilePictureUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateContentFragmentContext( - string? username, - string? fullName, - string? email, - string? profilePictureUrl) - { - this.Username = username; - this.FullName = fullName; - this.Email = email; - this.ProfilePictureUrl = profilePictureUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateContentFragmentContext() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentExpiredReason.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentExpiredReason.g.cs deleted file mode 100644 index a41dedf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentExpiredReason.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateContentFragmentExpiredReason - { - /// - /// - /// - DataSourceDeleted, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateContentFragmentExpiredReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateContentFragmentExpiredReason value) - { - return value switch - { - PrivateContentFragmentExpiredReason.DataSourceDeleted => "data_source_deleted", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateContentFragmentExpiredReason? ToEnum(string value) - { - return value switch - { - "data_source_deleted" => PrivateContentFragmentExpiredReason.DataSourceDeleted, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentType.g.cs deleted file mode 100644 index c6b8a7b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateContentFragmentType - { - /// - /// - /// - ContentFragment, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateContentFragmentTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateContentFragmentType value) - { - return value switch - { - PrivateContentFragmentType.ContentFragment => "content_fragment", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateContentFragmentType? ToEnum(string value) - { - return value switch - { - "content_fragment" => PrivateContentFragmentType.ContentFragment, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentVisibility.g.cs deleted file mode 100644 index 5b529e3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateContentFragmentVisibility.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateContentFragmentVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateContentFragmentVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateContentFragmentVisibility value) - { - return value switch - { - PrivateContentFragmentVisibility.Deleted => "deleted", - PrivateContentFragmentVisibility.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateContentFragmentVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateContentFragmentVisibility.Deleted, - "visible" => PrivateContentFragmentVisibility.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversation.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversation.Json.g.cs deleted file mode 100644 index 247f111..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversation), - jsonSerializerContext) as global::Dust.PrivateConversation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversation? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversation), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversation; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversation.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversation.g.cs deleted file mode 100644 index 86aa07c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversation.g.cs +++ /dev/null @@ -1,187 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Conversation without content, used in list responses. - /// - public sealed partial class PrivateConversation - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// Unix timestamp of creation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTimeOffset Created { get; set; } - - /// - /// Unix timestamp of last update - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTimeOffset Updated { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("unread")] - public bool? Unread { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastReadMs")] - public int? LastReadMs { get; set; } - - /// - /// Whether the conversation requires user action - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actionRequired")] - public bool? ActionRequired { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hasError")] - public bool? HasError { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// ID of the space the conversation belongs to (for project conversations) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - public string? SpaceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("triggerId")] - public string? TriggerId { get; set; } - - /// - /// Conversation depth (for agent handover chains) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("depth")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Depth { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("requestedSpaceIds")] - public global::System.Collections.Generic.IList? RequestedSpaceIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("forkingData")] - public global::Dust.PrivateConversationForkingData? ForkingData { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Unix timestamp of creation - /// - /// - /// Unix timestamp of last update - /// - /// - /// - /// Conversation depth (for agent handover chains) - /// - /// - /// - /// - /// Whether the conversation requires user action - /// - /// - /// - /// - /// ID of the space the conversation belongs to (for project conversations) - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversation( - int id, - global::System.DateTimeOffset created, - global::System.DateTimeOffset updated, - string sId, - int depth, - bool? unread, - int? lastReadMs, - bool? actionRequired, - bool? hasError, - string? title, - string? spaceId, - string? triggerId, - object? metadata, - global::System.Collections.Generic.IList? requestedSpaceIds, - global::Dust.PrivateConversationForkingData? forkingData) - { - this.Id = id; - this.Created = created; - this.Updated = updated; - this.Unread = unread; - this.LastReadMs = lastReadMs; - this.ActionRequired = actionRequired; - this.HasError = hasError; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Title = title; - this.SpaceId = spaceId; - this.TriggerId = triggerId; - this.Depth = depth; - this.Metadata = metadata; - this.RequestedSpaceIds = requestedSpaceIds; - this.ForkingData = forkingData; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.Json.g.cs deleted file mode 100644 index 49f1202..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationConsumptionAgentDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionAgentDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationConsumptionAgentDetails), - jsonSerializerContext) as global::Dust.PrivateConversationConsumptionAgentDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionAgentDetails? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationConsumptionAgentDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationConsumptionAgentDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationConsumptionAgentDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.g.cs deleted file mode 100644 index 5d305cd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionAgentDetails.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationConsumptionAgentDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AgentId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - public string? PictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("billedCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double BilledCredits { get; set; } - - /// - /// Agent work after assigning billing reconciliation exclusively to model input rows. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentWorkCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AgentWorkCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("models")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Models { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Agent work after assigning billing reconciliation exclusively to model input rows. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationConsumptionAgentDetails( - string agentId, - string name, - double billedCredits, - double agentWorkCredits, - global::System.Collections.Generic.IList tools, - global::System.Collections.Generic.IList models, - string? pictureUrl) - { - this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.PictureUrl = pictureUrl; - this.BilledCredits = billedCredits; - this.AgentWorkCredits = agentWorkCredits; - this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); - this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationConsumptionAgentDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.Json.g.cs deleted file mode 100644 index c99436c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationConsumptionDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationConsumptionDetails), - jsonSerializerContext) as global::Dust.PrivateConversationConsumptionDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionDetails? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationConsumptionDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationConsumptionDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationConsumptionDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.g.cs deleted file mode 100644 index 5477ae6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionDetails.g.cs +++ /dev/null @@ -1,77 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Additive attribution reconciled to the authoritative bill exclusively through model input rows. Each message uses its newest complete stored attribution version. Null when any billed message has no complete stored attribution. - /// - public sealed partial class PrivateConversationConsumptionDetails - { - /// - /// Agent work after assigning billing reconciliation exclusively to model input rows. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentWorkCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AgentWorkCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tools { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("models")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Models { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agents")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Agents { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Agent work after assigning billing reconciliation exclusively to model input rows. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationConsumptionDetails( - double agentWorkCredits, - global::System.Collections.Generic.IList tools, - global::System.Collections.Generic.IList models, - global::System.Collections.Generic.IList agents) - { - this.AgentWorkCredits = agentWorkCredits; - this.Tools = tools ?? throw new global::System.ArgumentNullException(nameof(tools)); - this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); - this.Agents = agents ?? throw new global::System.ArgumentNullException(nameof(agents)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationConsumptionDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.Json.g.cs deleted file mode 100644 index 36a539c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationConsumptionModelDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionModelDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationConsumptionModelDetails), - jsonSerializerContext) as global::Dust.PrivateConversationConsumptionModelDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionModelDetails? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationConsumptionModelDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationConsumptionModelDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationConsumptionModelDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.g.cs deleted file mode 100644 index be1a18d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionModelDetails.g.cs +++ /dev/null @@ -1,77 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationConsumptionModelDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ModelId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string DisplayName { get; set; } - - /// - /// Model attribution after reconciling exclusively through its input rows. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attributedCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AttributedCredits { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Model attribution after reconciling exclusively through its input rows. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationConsumptionModelDetails( - string providerId, - string modelId, - string displayName, - double attributedCredits) - { - this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); - this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); - this.DisplayName = displayName ?? throw new global::System.ArgumentNullException(nameof(displayName)); - this.AttributedCredits = attributedCredits; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationConsumptionModelDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.Json.g.cs deleted file mode 100644 index 21ca743..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationConsumptionToolDetails - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionToolDetails? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationConsumptionToolDetails), - jsonSerializerContext) as global::Dust.PrivateConversationConsumptionToolDetails; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationConsumptionToolDetails? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationConsumptionToolDetails? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationConsumptionToolDetails), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationConsumptionToolDetails; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.g.cs deleted file mode 100644 index a077052..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationConsumptionToolDetails.g.cs +++ /dev/null @@ -1,106 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationConsumptionToolDetails - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("internalMCPServerName")] - public string? InternalMCPServerName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("callCount")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int CallCount { get; set; } - - /// - /// Share of billed credits after reconciling exclusively through model input rows. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("attributedCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double AttributedCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("directCredits")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double DirectCredits { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pending")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Pending { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Share of billed credits after reconciling exclusively through model input rows. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationConsumptionToolDetails( - string label, - string toolName, - int callCount, - double attributedCredits, - double directCredits, - bool pending, - string? internalMCPServerName) - { - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.InternalMCPServerName = internalMCPServerName; - this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); - this.CallCount = callCount; - this.AttributedCredits = attributedCredits; - this.DirectCredits = directCredits; - this.Pending = pending; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationConsumptionToolDetails() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.Json.g.cs deleted file mode 100644 index 426d767..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct PrivateConversationEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationEvent), - jsonSerializerContext) as global::Dust.PrivateConversationEvent?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationEvent?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.g.cs deleted file mode 100644 index 2cf576a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEvent.g.cs +++ /dev/null @@ -1,884 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Dust -{ - /// - /// Server-Sent Event for conversation-level streaming. Discriminated on the `type` field. - /// - public readonly partial struct PrivateConversationEvent : global::System.IEquatable - { - /// - /// - /// - public global::Dust.PrivateConversationEventDiscriminatorType? Type { get; } - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateUserMessageNewEvent? UserMessageNew { get; init; } -#else - public global::Dust.PrivateUserMessageNewEvent? UserMessageNew { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UserMessageNew))] -#endif - public bool IsUserMessageNew => UserMessageNew != null; - - /// - /// - /// - public bool TryPickUserMessageNew( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateUserMessageNewEvent? value) - { - value = UserMessageNew; - return IsUserMessageNew; - } - - /// - /// - /// - public global::Dust.PrivateUserMessageNewEvent PickUserMessageNew() => IsUserMessageNew - ? UserMessageNew! - : throw new global::System.InvalidOperationException($"Expected union variant 'UserMessageNew' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentMessageNewEvent? AgentMessageNew { get; init; } -#else - public global::Dust.PrivateAgentMessageNewEvent? AgentMessageNew { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageNew))] -#endif - public bool IsAgentMessageNew => AgentMessageNew != null; - - /// - /// - /// - public bool TryPickAgentMessageNew( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentMessageNewEvent? value) - { - value = AgentMessageNew; - return IsAgentMessageNew; - } - - /// - /// - /// - public global::Dust.PrivateAgentMessageNewEvent PickAgentMessageNew() => IsAgentMessageNew - ? AgentMessageNew! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageNew' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? AgentMessageConsumptionUpdated { get; init; } -#else - public global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? AgentMessageConsumptionUpdated { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageConsumptionUpdated))] -#endif - public bool IsAgentMessageConsumptionUpdated => AgentMessageConsumptionUpdated != null; - - /// - /// - /// - public bool TryPickAgentMessageConsumptionUpdated( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? value) - { - value = AgentMessageConsumptionUpdated; - return IsAgentMessageConsumptionUpdated; - } - - /// - /// - /// - public global::Dust.PrivateAgentMessageConsumptionUpdatedEvent PickAgentMessageConsumptionUpdated() => IsAgentMessageConsumptionUpdated - ? AgentMessageConsumptionUpdated! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageConsumptionUpdated' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateAgentMessageDoneEvent? AgentMessageDone { get; init; } -#else - public global::Dust.PrivateAgentMessageDoneEvent? AgentMessageDone { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentMessageDone))] -#endif - public bool IsAgentMessageDone => AgentMessageDone != null; - - /// - /// - /// - public bool TryPickAgentMessageDone( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateAgentMessageDoneEvent? value) - { - value = AgentMessageDone; - return IsAgentMessageDone; - } - - /// - /// - /// - public global::Dust.PrivateAgentMessageDoneEvent PickAgentMessageDone() => IsAgentMessageDone - ? AgentMessageDone! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessageDone' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateCompactionMessageNewEvent? CompactionMessageNew { get; init; } -#else - public global::Dust.PrivateCompactionMessageNewEvent? CompactionMessageNew { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompactionMessageNew))] -#endif - public bool IsCompactionMessageNew => CompactionMessageNew != null; - - /// - /// - /// - public bool TryPickCompactionMessageNew( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateCompactionMessageNewEvent? value) - { - value = CompactionMessageNew; - return IsCompactionMessageNew; - } - - /// - /// - /// - public global::Dust.PrivateCompactionMessageNewEvent PickCompactionMessageNew() => IsCompactionMessageNew - ? CompactionMessageNew! - : throw new global::System.InvalidOperationException($"Expected union variant 'CompactionMessageNew' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateCompactionMessageDoneEvent? CompactionMessageDone { get; init; } -#else - public global::Dust.PrivateCompactionMessageDoneEvent? CompactionMessageDone { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompactionMessageDone))] -#endif - public bool IsCompactionMessageDone => CompactionMessageDone != null; - - /// - /// - /// - public bool TryPickCompactionMessageDone( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateCompactionMessageDoneEvent? value) - { - value = CompactionMessageDone; - return IsCompactionMessageDone; - } - - /// - /// - /// - public global::Dust.PrivateCompactionMessageDoneEvent PickCompactionMessageDone() => IsCompactionMessageDone - ? CompactionMessageDone! - : throw new global::System.InvalidOperationException($"Expected union variant 'CompactionMessageDone' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateConversationForkPreparedEvent? ConversationForkPrepared { get; init; } -#else - public global::Dust.PrivateConversationForkPreparedEvent? ConversationForkPrepared { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationForkPrepared))] -#endif - public bool IsConversationForkPrepared => ConversationForkPrepared != null; - - /// - /// - /// - public bool TryPickConversationForkPrepared( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateConversationForkPreparedEvent? value) - { - value = ConversationForkPrepared; - return IsConversationForkPrepared; - } - - /// - /// - /// - public global::Dust.PrivateConversationForkPreparedEvent PickConversationForkPrepared() => IsConversationForkPrepared - ? ConversationForkPrepared! - : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationForkPrepared' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateConversationTitleEvent? ConversationTitle { get; init; } -#else - public global::Dust.PrivateConversationTitleEvent? ConversationTitle { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationTitle))] -#endif - public bool IsConversationTitle => ConversationTitle != null; - - /// - /// - /// - public bool TryPickConversationTitle( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateConversationTitleEvent? value) - { - value = ConversationTitle; - return IsConversationTitle; - } - - /// - /// - /// - public global::Dust.PrivateConversationTitleEvent PickConversationTitle() => IsConversationTitle - ? ConversationTitle! - : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationTitle' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateWakeUpUpdatedEvent? WakeUpUpdated { get; init; } -#else - public global::Dust.PrivateWakeUpUpdatedEvent? WakeUpUpdated { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WakeUpUpdated))] -#endif - public bool IsWakeUpUpdated => WakeUpUpdated != null; - - /// - /// - /// - public bool TryPickWakeUpUpdated( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateWakeUpUpdatedEvent? value) - { - value = WakeUpUpdated; - return IsWakeUpUpdated; - } - - /// - /// - /// - public global::Dust.PrivateWakeUpUpdatedEvent PickWakeUpUpdated() => IsWakeUpUpdated - ? WakeUpUpdated! - : throw new global::System.InvalidOperationException($"Expected union variant 'WakeUpUpdated' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateUserMessageNewEvent value) => new PrivateConversationEvent((global::Dust.PrivateUserMessageNewEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateUserMessageNewEvent?(PrivateConversationEvent @this) => @this.UserMessageNew; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateUserMessageNewEvent? value) - { - UserMessageNew = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromUserMessageNew(global::Dust.PrivateUserMessageNewEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateAgentMessageNewEvent value) => new PrivateConversationEvent((global::Dust.PrivateAgentMessageNewEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentMessageNewEvent?(PrivateConversationEvent @this) => @this.AgentMessageNew; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateAgentMessageNewEvent? value) - { - AgentMessageNew = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromAgentMessageNew(global::Dust.PrivateAgentMessageNewEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent value) => new PrivateConversationEvent((global::Dust.PrivateAgentMessageConsumptionUpdatedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentMessageConsumptionUpdatedEvent?(PrivateConversationEvent @this) => @this.AgentMessageConsumptionUpdated; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? value) - { - AgentMessageConsumptionUpdated = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromAgentMessageConsumptionUpdated(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateAgentMessageDoneEvent value) => new PrivateConversationEvent((global::Dust.PrivateAgentMessageDoneEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateAgentMessageDoneEvent?(PrivateConversationEvent @this) => @this.AgentMessageDone; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateAgentMessageDoneEvent? value) - { - AgentMessageDone = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromAgentMessageDone(global::Dust.PrivateAgentMessageDoneEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateCompactionMessageNewEvent value) => new PrivateConversationEvent((global::Dust.PrivateCompactionMessageNewEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateCompactionMessageNewEvent?(PrivateConversationEvent @this) => @this.CompactionMessageNew; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateCompactionMessageNewEvent? value) - { - CompactionMessageNew = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromCompactionMessageNew(global::Dust.PrivateCompactionMessageNewEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateCompactionMessageDoneEvent value) => new PrivateConversationEvent((global::Dust.PrivateCompactionMessageDoneEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateCompactionMessageDoneEvent?(PrivateConversationEvent @this) => @this.CompactionMessageDone; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateCompactionMessageDoneEvent? value) - { - CompactionMessageDone = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromCompactionMessageDone(global::Dust.PrivateCompactionMessageDoneEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateConversationForkPreparedEvent value) => new PrivateConversationEvent((global::Dust.PrivateConversationForkPreparedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateConversationForkPreparedEvent?(PrivateConversationEvent @this) => @this.ConversationForkPrepared; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateConversationForkPreparedEvent? value) - { - ConversationForkPrepared = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromConversationForkPrepared(global::Dust.PrivateConversationForkPreparedEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateConversationTitleEvent value) => new PrivateConversationEvent((global::Dust.PrivateConversationTitleEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateConversationTitleEvent?(PrivateConversationEvent @this) => @this.ConversationTitle; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateConversationTitleEvent? value) - { - ConversationTitle = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromConversationTitle(global::Dust.PrivateConversationTitleEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public static implicit operator PrivateConversationEvent(global::Dust.PrivateWakeUpUpdatedEvent value) => new PrivateConversationEvent((global::Dust.PrivateWakeUpUpdatedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateWakeUpUpdatedEvent?(PrivateConversationEvent @this) => @this.WakeUpUpdated; - - /// - /// - /// - public PrivateConversationEvent(global::Dust.PrivateWakeUpUpdatedEvent? value) - { - WakeUpUpdated = value; - } - - /// - /// - /// - public static PrivateConversationEvent FromWakeUpUpdated(global::Dust.PrivateWakeUpUpdatedEvent? value) => new PrivateConversationEvent(value); - - /// - /// - /// - public PrivateConversationEvent( - global::Dust.PrivateConversationEventDiscriminatorType? type, - global::Dust.PrivateUserMessageNewEvent? userMessageNew, - global::Dust.PrivateAgentMessageNewEvent? agentMessageNew, - global::Dust.PrivateAgentMessageConsumptionUpdatedEvent? agentMessageConsumptionUpdated, - global::Dust.PrivateAgentMessageDoneEvent? agentMessageDone, - global::Dust.PrivateCompactionMessageNewEvent? compactionMessageNew, - global::Dust.PrivateCompactionMessageDoneEvent? compactionMessageDone, - global::Dust.PrivateConversationForkPreparedEvent? conversationForkPrepared, - global::Dust.PrivateConversationTitleEvent? conversationTitle, - global::Dust.PrivateWakeUpUpdatedEvent? wakeUpUpdated - ) - { - Type = type; - - UserMessageNew = userMessageNew; - AgentMessageNew = agentMessageNew; - AgentMessageConsumptionUpdated = agentMessageConsumptionUpdated; - AgentMessageDone = agentMessageDone; - CompactionMessageNew = compactionMessageNew; - CompactionMessageDone = compactionMessageDone; - ConversationForkPrepared = conversationForkPrepared; - ConversationTitle = conversationTitle; - WakeUpUpdated = wakeUpUpdated; - } - - /// - /// - /// - public object? Object => - WakeUpUpdated as object ?? - ConversationTitle as object ?? - ConversationForkPrepared as object ?? - CompactionMessageDone as object ?? - CompactionMessageNew as object ?? - AgentMessageDone as object ?? - AgentMessageConsumptionUpdated as object ?? - AgentMessageNew as object ?? - UserMessageNew as object - ; - - /// - /// - /// - public override string? ToString() => - UserMessageNew?.ToString() ?? - AgentMessageNew?.ToString() ?? - AgentMessageConsumptionUpdated?.ToString() ?? - AgentMessageDone?.ToString() ?? - CompactionMessageNew?.ToString() ?? - CompactionMessageDone?.ToString() ?? - ConversationForkPrepared?.ToString() ?? - ConversationTitle?.ToString() ?? - WakeUpUpdated?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && IsConversationForkPrepared && !IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && IsConversationTitle && !IsWakeUpUpdated || !IsUserMessageNew && !IsAgentMessageNew && !IsAgentMessageConsumptionUpdated && !IsAgentMessageDone && !IsCompactionMessageNew && !IsCompactionMessageDone && !IsConversationForkPrepared && !IsConversationTitle && IsWakeUpUpdated; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? userMessageNew = null, - global::System.Func? agentMessageNew = null, - global::System.Func? agentMessageConsumptionUpdated = null, - global::System.Func? agentMessageDone = null, - global::System.Func? compactionMessageNew = null, - global::System.Func? compactionMessageDone = null, - global::System.Func? conversationForkPrepared = null, - global::System.Func? conversationTitle = null, - global::System.Func? wakeUpUpdated = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserMessageNew && userMessageNew != null) - { - return userMessageNew(UserMessageNew!); - } - else if (IsAgentMessageNew && agentMessageNew != null) - { - return agentMessageNew(AgentMessageNew!); - } - else if (IsAgentMessageConsumptionUpdated && agentMessageConsumptionUpdated != null) - { - return agentMessageConsumptionUpdated(AgentMessageConsumptionUpdated!); - } - else if (IsAgentMessageDone && agentMessageDone != null) - { - return agentMessageDone(AgentMessageDone!); - } - else if (IsCompactionMessageNew && compactionMessageNew != null) - { - return compactionMessageNew(CompactionMessageNew!); - } - else if (IsCompactionMessageDone && compactionMessageDone != null) - { - return compactionMessageDone(CompactionMessageDone!); - } - else if (IsConversationForkPrepared && conversationForkPrepared != null) - { - return conversationForkPrepared(ConversationForkPrepared!); - } - else if (IsConversationTitle && conversationTitle != null) - { - return conversationTitle(ConversationTitle!); - } - else if (IsWakeUpUpdated && wakeUpUpdated != null) - { - return wakeUpUpdated(WakeUpUpdated!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? userMessageNew = null, - - global::System.Action? agentMessageNew = null, - - global::System.Action? agentMessageConsumptionUpdated = null, - - global::System.Action? agentMessageDone = null, - - global::System.Action? compactionMessageNew = null, - - global::System.Action? compactionMessageDone = null, - - global::System.Action? conversationForkPrepared = null, - - global::System.Action? conversationTitle = null, - - global::System.Action? wakeUpUpdated = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserMessageNew) - { - userMessageNew?.Invoke(UserMessageNew!); - } - else if (IsAgentMessageNew) - { - agentMessageNew?.Invoke(AgentMessageNew!); - } - else if (IsAgentMessageConsumptionUpdated) - { - agentMessageConsumptionUpdated?.Invoke(AgentMessageConsumptionUpdated!); - } - else if (IsAgentMessageDone) - { - agentMessageDone?.Invoke(AgentMessageDone!); - } - else if (IsCompactionMessageNew) - { - compactionMessageNew?.Invoke(CompactionMessageNew!); - } - else if (IsCompactionMessageDone) - { - compactionMessageDone?.Invoke(CompactionMessageDone!); - } - else if (IsConversationForkPrepared) - { - conversationForkPrepared?.Invoke(ConversationForkPrepared!); - } - else if (IsConversationTitle) - { - conversationTitle?.Invoke(ConversationTitle!); - } - else if (IsWakeUpUpdated) - { - wakeUpUpdated?.Invoke(WakeUpUpdated!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? userMessageNew = null, - global::System.Action? agentMessageNew = null, - global::System.Action? agentMessageConsumptionUpdated = null, - global::System.Action? agentMessageDone = null, - global::System.Action? compactionMessageNew = null, - global::System.Action? compactionMessageDone = null, - global::System.Action? conversationForkPrepared = null, - global::System.Action? conversationTitle = null, - global::System.Action? wakeUpUpdated = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsUserMessageNew) - { - userMessageNew?.Invoke(UserMessageNew!); - } - else if (IsAgentMessageNew) - { - agentMessageNew?.Invoke(AgentMessageNew!); - } - else if (IsAgentMessageConsumptionUpdated) - { - agentMessageConsumptionUpdated?.Invoke(AgentMessageConsumptionUpdated!); - } - else if (IsAgentMessageDone) - { - agentMessageDone?.Invoke(AgentMessageDone!); - } - else if (IsCompactionMessageNew) - { - compactionMessageNew?.Invoke(CompactionMessageNew!); - } - else if (IsCompactionMessageDone) - { - compactionMessageDone?.Invoke(CompactionMessageDone!); - } - else if (IsConversationForkPrepared) - { - conversationForkPrepared?.Invoke(ConversationForkPrepared!); - } - else if (IsConversationTitle) - { - conversationTitle?.Invoke(ConversationTitle!); - } - else if (IsWakeUpUpdated) - { - wakeUpUpdated?.Invoke(WakeUpUpdated!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - UserMessageNew, - typeof(global::Dust.PrivateUserMessageNewEvent), - AgentMessageNew, - typeof(global::Dust.PrivateAgentMessageNewEvent), - AgentMessageConsumptionUpdated, - typeof(global::Dust.PrivateAgentMessageConsumptionUpdatedEvent), - AgentMessageDone, - typeof(global::Dust.PrivateAgentMessageDoneEvent), - CompactionMessageNew, - typeof(global::Dust.PrivateCompactionMessageNewEvent), - CompactionMessageDone, - typeof(global::Dust.PrivateCompactionMessageDoneEvent), - ConversationForkPrepared, - typeof(global::Dust.PrivateConversationForkPreparedEvent), - ConversationTitle, - typeof(global::Dust.PrivateConversationTitleEvent), - WakeUpUpdated, - typeof(global::Dust.PrivateWakeUpUpdatedEvent), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(PrivateConversationEvent other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(UserMessageNew, other.UserMessageNew) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageNew, other.AgentMessageNew) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageConsumptionUpdated, other.AgentMessageConsumptionUpdated) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentMessageDone, other.AgentMessageDone) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CompactionMessageNew, other.CompactionMessageNew) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CompactionMessageDone, other.CompactionMessageDone) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationForkPrepared, other.ConversationForkPrepared) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationTitle, other.ConversationTitle) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WakeUpUpdated, other.WakeUpUpdated) - ; - } - - /// - /// - /// - public static bool operator ==(PrivateConversationEvent obj1, PrivateConversationEvent obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(PrivateConversationEvent obj1, PrivateConversationEvent obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is PrivateConversationEvent o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.Json.g.cs deleted file mode 100644 index bfb3c1e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationEventDiscriminator - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationEventDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationEventDiscriminator), - jsonSerializerContext) as global::Dust.PrivateConversationEventDiscriminator; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationEventDiscriminator? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationEventDiscriminator? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationEventDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationEventDiscriminator; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.g.cs deleted file mode 100644 index 56b02f4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationEventDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConversationEventDiscriminatorTypeJsonConverter))] - public global::Dust.PrivateConversationEventDiscriminatorType? Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationEventDiscriminator( - global::Dust.PrivateConversationEventDiscriminatorType? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationEventDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminatorType.g.cs deleted file mode 100644 index ba3316f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationEventDiscriminatorType.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateConversationEventDiscriminatorType - { - /// - /// - /// - AgentMessageConsumptionUpdated, - /// - /// - /// - AgentMessageDone, - /// - /// - /// - AgentMessageNew, - /// - /// - /// - CompactionMessageDone, - /// - /// - /// - CompactionMessageNew, - /// - /// - /// - ConversationForkPrepared, - /// - /// - /// - ConversationTitle, - /// - /// - /// - UserMessageNew, - /// - /// - /// - WakeUpUpdated, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConversationEventDiscriminatorTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConversationEventDiscriminatorType value) - { - return value switch - { - PrivateConversationEventDiscriminatorType.AgentMessageConsumptionUpdated => "agent_message_consumption_updated", - PrivateConversationEventDiscriminatorType.AgentMessageDone => "agent_message_done", - PrivateConversationEventDiscriminatorType.AgentMessageNew => "agent_message_new", - PrivateConversationEventDiscriminatorType.CompactionMessageDone => "compaction_message_done", - PrivateConversationEventDiscriminatorType.CompactionMessageNew => "compaction_message_new", - PrivateConversationEventDiscriminatorType.ConversationForkPrepared => "conversation_fork_prepared", - PrivateConversationEventDiscriminatorType.ConversationTitle => "conversation_title", - PrivateConversationEventDiscriminatorType.UserMessageNew => "user_message_new", - PrivateConversationEventDiscriminatorType.WakeUpUpdated => "wake_up_updated", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConversationEventDiscriminatorType? ToEnum(string value) - { - return value switch - { - "agent_message_consumption_updated" => PrivateConversationEventDiscriminatorType.AgentMessageConsumptionUpdated, - "agent_message_done" => PrivateConversationEventDiscriminatorType.AgentMessageDone, - "agent_message_new" => PrivateConversationEventDiscriminatorType.AgentMessageNew, - "compaction_message_done" => PrivateConversationEventDiscriminatorType.CompactionMessageDone, - "compaction_message_new" => PrivateConversationEventDiscriminatorType.CompactionMessageNew, - "conversation_fork_prepared" => PrivateConversationEventDiscriminatorType.ConversationForkPrepared, - "conversation_title" => PrivateConversationEventDiscriminatorType.ConversationTitle, - "user_message_new" => PrivateConversationEventDiscriminatorType.UserMessageNew, - "wake_up_updated" => PrivateConversationEventDiscriminatorType.WakeUpUpdated, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.Json.g.cs deleted file mode 100644 index 49a3b79..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationForkPreparedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkPreparedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationForkPreparedEvent), - jsonSerializerContext) as global::Dust.PrivateConversationForkPreparedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkPreparedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationForkPreparedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationForkPreparedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationForkPreparedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.g.cs deleted file mode 100644 index 0fa139b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEvent.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationForkPreparedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConversationForkPreparedEventTypeJsonConverter))] - public global::Dust.PrivateConversationForkPreparedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationForkPreparedEvent( - int created, - global::Dust.PrivateConversationForkPreparedEventType type) - { - this.Type = type; - this.Created = created; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationForkPreparedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEventType.g.cs deleted file mode 100644 index 909b65e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkPreparedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateConversationForkPreparedEventType - { - /// - /// - /// - ConversationForkPrepared, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConversationForkPreparedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConversationForkPreparedEventType value) - { - return value switch - { - PrivateConversationForkPreparedEventType.ConversationForkPrepared => "conversation_fork_prepared", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConversationForkPreparedEventType? ToEnum(string value) - { - return value switch - { - "conversation_fork_prepared" => PrivateConversationForkPreparedEventType.ConversationForkPrepared, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.Json.g.cs deleted file mode 100644 index 1d43647..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationForkUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationForkUser), - jsonSerializerContext) as global::Dust.PrivateConversationForkUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationForkUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationForkUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationForkUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.g.cs deleted file mode 100644 index 9ea8c68..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUser.g.cs +++ /dev/null @@ -1,135 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationForkUser - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - public int? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConversationForkUserProviderJsonConverter))] - public global::Dust.PrivateConversationForkUserProvider? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - public string? Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("firstName")] - public string? FirstName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastName")] - public string? LastName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public string? Image { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastLoginAt")] - public int? LastLoginAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationForkUser( - string? sId, - int? id, - int? createdAt, - global::Dust.PrivateConversationForkUserProvider? provider, - string? username, - string? email, - string? firstName, - string? lastName, - string? fullName, - string? image, - int? lastLoginAt) - { - this.SId = sId; - this.Id = id; - this.CreatedAt = createdAt; - this.Provider = provider; - this.Username = username; - this.Email = email; - this.FirstName = firstName; - this.LastName = lastName; - this.FullName = fullName; - this.Image = image; - this.LastLoginAt = lastLoginAt; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationForkUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUserProvider.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUserProvider.g.cs deleted file mode 100644 index 36501d1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkUserProvider.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateConversationForkUserProvider - { - /// - /// - /// - Auth0, - /// - /// - /// - Github, - /// - /// - /// - Google, - /// - /// - /// - Okta, - /// - /// - /// - Samlp, - /// - /// - /// - Waad, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConversationForkUserProviderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConversationForkUserProvider value) - { - return value switch - { - PrivateConversationForkUserProvider.Auth0 => "auth0", - PrivateConversationForkUserProvider.Github => "github", - PrivateConversationForkUserProvider.Google => "google", - PrivateConversationForkUserProvider.Okta => "okta", - PrivateConversationForkUserProvider.Samlp => "samlp", - PrivateConversationForkUserProvider.Waad => "waad", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConversationForkUserProvider? ToEnum(string value) - { - return value switch - { - "auth0" => PrivateConversationForkUserProvider.Auth0, - "github" => PrivateConversationForkUserProvider.Github, - "google" => PrivateConversationForkUserProvider.Google, - "okta" => PrivateConversationForkUserProvider.Okta, - "samlp" => PrivateConversationForkUserProvider.Samlp, - "waad" => PrivateConversationForkUserProvider.Waad, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.Json.g.cs deleted file mode 100644 index 2c00153..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationForkedChild - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkedChild? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationForkedChild), - jsonSerializerContext) as global::Dust.PrivateConversationForkedChild; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkedChild? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationForkedChild? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationForkedChild), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationForkedChild; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.g.cs deleted file mode 100644 index 1081655..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedChild.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationForkedChild - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("childConversationId")] - public string? ChildConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("childConversationTitle")] - public string? ChildConversationTitle { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceMessageId")] - public string? SourceMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchedAt")] - public int? BranchedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public global::Dust.PrivateConversationForkUser? User { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationForkedChild( - string? childConversationId, - string? childConversationTitle, - string? sourceMessageId, - int? branchedAt, - global::Dust.PrivateConversationForkUser? user) - { - this.ChildConversationId = childConversationId; - this.ChildConversationTitle = childConversationTitle; - this.SourceMessageId = sourceMessageId; - this.BranchedAt = branchedAt; - this.User = user; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationForkedChild() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.Json.g.cs deleted file mode 100644 index 8c7b76d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationForkedFrom - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkedFrom? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationForkedFrom), - jsonSerializerContext) as global::Dust.PrivateConversationForkedFrom; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkedFrom? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationForkedFrom? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationForkedFrom), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationForkedFrom; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.g.cs deleted file mode 100644 index b73ece3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFrom.g.cs +++ /dev/null @@ -1,95 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationForkedFrom - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentConversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ParentConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentConversationTitle")] - public string? ParentConversationTitle { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceMessageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SourceMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchedAt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int BranchedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateConversationForkUser User { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileCopyStatus")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConversationForkedFromFileCopyStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateConversationForkedFromFileCopyStatus FileCopyStatus { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationForkedFrom( - string parentConversationId, - string sourceMessageId, - int branchedAt, - global::Dust.PrivateConversationForkUser user, - global::Dust.PrivateConversationForkedFromFileCopyStatus fileCopyStatus, - string? parentConversationTitle) - { - this.ParentConversationId = parentConversationId ?? throw new global::System.ArgumentNullException(nameof(parentConversationId)); - this.ParentConversationTitle = parentConversationTitle; - this.SourceMessageId = sourceMessageId ?? throw new global::System.ArgumentNullException(nameof(sourceMessageId)); - this.BranchedAt = branchedAt; - this.User = user ?? throw new global::System.ArgumentNullException(nameof(user)); - this.FileCopyStatus = fileCopyStatus; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationForkedFrom() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFromFileCopyStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFromFileCopyStatus.g.cs deleted file mode 100644 index 103a327..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkedFromFileCopyStatus.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateConversationForkedFromFileCopyStatus - { - /// - /// - /// - Done, - /// - /// - /// - Pending, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConversationForkedFromFileCopyStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConversationForkedFromFileCopyStatus value) - { - return value switch - { - PrivateConversationForkedFromFileCopyStatus.Done => "done", - PrivateConversationForkedFromFileCopyStatus.Pending => "pending", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConversationForkedFromFileCopyStatus? ToEnum(string value) - { - return value switch - { - "done" => PrivateConversationForkedFromFileCopyStatus.Done, - "pending" => PrivateConversationForkedFromFileCopyStatus.Pending, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.Json.g.cs deleted file mode 100644 index b4640d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationForkingData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkingData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationForkingData), - jsonSerializerContext) as global::Dust.PrivateConversationForkingData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationForkingData? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationForkingData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationForkingData), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationForkingData; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.g.cs deleted file mode 100644 index 980846c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationForkingData.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationForkingData - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("forkedFrom")] - public global::Dust.PrivateConversationForkedFrom? ForkedFrom { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("forkedChildren")] - public global::System.Collections.Generic.IList? ForkedChildren { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationForkingData( - global::Dust.PrivateConversationForkedFrom? forkedFrom, - global::System.Collections.Generic.IList? forkedChildren) - { - this.ForkedFrom = forkedFrom; - this.ForkedChildren = forkedChildren; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationForkingData() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.Json.g.cs deleted file mode 100644 index 5fae5c3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationMetadata), - jsonSerializerContext) as global::Dust.PrivateConversationMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.g.cs deleted file mode 100644 index 98a25d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.Json.g.cs deleted file mode 100644 index 877f1a5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateConversationTitleEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateConversationTitleEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateConversationTitleEvent), - jsonSerializerContext) as global::Dust.PrivateConversationTitleEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateConversationTitleEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateConversationTitleEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateConversationTitleEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateConversationTitleEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.g.cs deleted file mode 100644 index d44532a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEvent.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateConversationTitleEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateConversationTitleEventTypeJsonConverter))] - public global::Dust.PrivateConversationTitleEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateConversationTitleEvent( - int created, - string title, - global::Dust.PrivateConversationTitleEventType type) - { - this.Type = type; - this.Created = created; - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateConversationTitleEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEventType.g.cs deleted file mode 100644 index 0af635e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateConversationTitleEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateConversationTitleEventType - { - /// - /// - /// - ConversationTitle, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateConversationTitleEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateConversationTitleEventType value) - { - return value switch - { - PrivateConversationTitleEventType.ConversationTitle => "conversation_title", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateConversationTitleEventType? ToEnum(string value) - { - return value switch - { - "conversation_title" => PrivateConversationTitleEventType.ConversationTitle, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.Json.g.cs deleted file mode 100644 index b73b949..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSource - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSource? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSource), - jsonSerializerContext) as global::Dust.PrivateDataSource; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSource? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSource? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSource), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSource; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.g.cs deleted file mode 100644 index 7c7b2f0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSource.g.cs +++ /dev/null @@ -1,128 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A data source in the workspace. - /// - public sealed partial class PrivateDataSource - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - public int? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("assistantDefaultSelected")] - public bool? AssistantDefaultSelected { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dustAPIProjectId")] - public string? DustAPIProjectId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dustAPIDataSourceId")] - public string? DustAPIDataSourceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("connectorId")] - public string? ConnectorId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("connectorProvider")] - public string? ConnectorProvider { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSource( - string sId, - int id, - string name, - int? createdAt, - string? description, - bool? assistantDefaultSelected, - string? dustAPIProjectId, - string? dustAPIDataSourceId, - string? connectorId, - string? connectorProvider) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Id = id; - this.CreatedAt = createdAt; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description; - this.AssistantDefaultSelected = assistantDefaultSelected; - this.DustAPIProjectId = dustAPIProjectId; - this.DustAPIDataSourceId = dustAPIDataSourceId; - this.ConnectorId = connectorId; - this.ConnectorProvider = connectorProvider; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSource() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.Json.g.cs deleted file mode 100644 index a13faa4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSourceView - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceView? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSourceView), - jsonSerializerContext) as global::Dust.PrivateDataSourceView; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceView? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSourceView? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSourceView), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSourceView; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.g.cs deleted file mode 100644 index ffb6244..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceView.g.cs +++ /dev/null @@ -1,148 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A view on a data source within a space. - /// - public sealed partial class PrivateDataSourceView - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("category")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateDataSourceViewCategoryJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateDataSourceViewCategory Category { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("kind")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateDataSourceViewKindJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateDataSourceViewKind Kind { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("spaceId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SpaceId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - public int? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] - public int? UpdatedAt { get; set; } - - /// - /// List of parent IDs included in this view, null if the full data source is used - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentsIn")] - public global::System.Collections.Generic.IList? ParentsIn { get; set; } - - /// - /// A data source in the workspace. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataSource")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateDataSource DataSource { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("editedByUser")] - public global::Dust.PrivateDataSourceViewEditedByUser? EditedByUser { get; set; } - - /// - /// Present when the view was fetched with usage details (withDetails query param). Counts agents and skills that use this data source view. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Dust.PrivateDataSourceViewUsage? Usage { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// A data source in the workspace. - /// - /// - /// - /// - /// List of parent IDs included in this view, null if the full data source is used - /// - /// - /// - /// Present when the view was fetched with usage details (withDetails query param). Counts agents and skills that use this data source view. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSourceView( - string sId, - int id, - global::Dust.PrivateDataSourceViewCategory category, - global::Dust.PrivateDataSourceViewKind kind, - string spaceId, - global::Dust.PrivateDataSource dataSource, - int? createdAt, - int? updatedAt, - global::System.Collections.Generic.IList? parentsIn, - global::Dust.PrivateDataSourceViewEditedByUser? editedByUser, - global::Dust.PrivateDataSourceViewUsage? usage) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Id = id; - this.Category = category; - this.Kind = kind; - this.SpaceId = spaceId ?? throw new global::System.ArgumentNullException(nameof(spaceId)); - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.ParentsIn = parentsIn; - this.DataSource = dataSource ?? throw new global::System.ArgumentNullException(nameof(dataSource)); - this.EditedByUser = editedByUser; - this.Usage = usage; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSourceView() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewCategory.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewCategory.g.cs deleted file mode 100644 index b2f9eae..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewCategory.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateDataSourceViewCategory - { - /// - /// - /// - Apps, - /// - /// - /// - Folder, - /// - /// - /// - Managed, - /// - /// - /// - Website, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateDataSourceViewCategoryExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateDataSourceViewCategory value) - { - return value switch - { - PrivateDataSourceViewCategory.Apps => "apps", - PrivateDataSourceViewCategory.Folder => "folder", - PrivateDataSourceViewCategory.Managed => "managed", - PrivateDataSourceViewCategory.Website => "website", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateDataSourceViewCategory? ToEnum(string value) - { - return value switch - { - "apps" => PrivateDataSourceViewCategory.Apps, - "folder" => PrivateDataSourceViewCategory.Folder, - "managed" => PrivateDataSourceViewCategory.Managed, - "website" => PrivateDataSourceViewCategory.Website, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.Json.g.cs deleted file mode 100644 index 05f49cf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSourceViewEditedByUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewEditedByUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSourceViewEditedByUser), - jsonSerializerContext) as global::Dust.PrivateDataSourceViewEditedByUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewEditedByUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSourceViewEditedByUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSourceViewEditedByUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSourceViewEditedByUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.g.cs deleted file mode 100644 index 8c83c50..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewEditedByUser.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateDataSourceViewEditedByUser - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("editedAt")] - public int? EditedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] - public string? ImageUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - public string? UserId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSourceViewEditedByUser( - int? editedAt, - string? fullName, - string? imageUrl, - string? email, - string? userId) - { - this.EditedAt = editedAt; - this.FullName = fullName; - this.ImageUrl = imageUrl; - this.Email = email; - this.UserId = userId; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSourceViewEditedByUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewKind.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewKind.g.cs deleted file mode 100644 index 6ceb51b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewKind.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateDataSourceViewKind - { - /// - /// - /// - Custom, - /// - /// - /// - Default, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateDataSourceViewKindExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateDataSourceViewKind value) - { - return value switch - { - PrivateDataSourceViewKind.Custom => "custom", - PrivateDataSourceViewKind.Default => "default", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateDataSourceViewKind? ToEnum(string value) - { - return value switch - { - "custom" => PrivateDataSourceViewKind.Custom, - "default" => PrivateDataSourceViewKind.Default, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.Json.g.cs deleted file mode 100644 index 83e40be..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSourceViewUsage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSourceViewUsage), - jsonSerializerContext) as global::Dust.PrivateDataSourceViewUsage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSourceViewUsage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSourceViewUsage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSourceViewUsage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.g.cs deleted file mode 100644 index eaa4c6c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsage.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Present when the view was fetched with usage details (withDetails query param). Counts agents and skills that use this data source view. - /// - public sealed partial class PrivateDataSourceViewUsage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agents")] - public global::System.Collections.Generic.IList? Agents { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("skills")] - public global::System.Collections.Generic.IList? Skills { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSourceViewUsage( - int? count, - global::System.Collections.Generic.IList? agents, - global::System.Collections.Generic.IList? skills) - { - this.Count = count; - this.Agents = agents; - this.Skills = skills; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSourceViewUsage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.Json.g.cs deleted file mode 100644 index ffa2724..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSourceViewUsageAgent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsageAgent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSourceViewUsageAgent), - jsonSerializerContext) as global::Dust.PrivateDataSourceViewUsageAgent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsageAgent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSourceViewUsageAgent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSourceViewUsageAgent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSourceViewUsageAgent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.g.cs deleted file mode 100644 index e23fcd4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageAgent.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateDataSourceViewUsageAgent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - public string? PictureUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSourceViewUsageAgent( - string? sId, - string? name, - string? pictureUrl) - { - this.SId = sId; - this.Name = name; - this.PictureUrl = pictureUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSourceViewUsageAgent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.Json.g.cs deleted file mode 100644 index 6aca0b9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateDataSourceViewUsageSkill - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsageSkill? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateDataSourceViewUsageSkill), - jsonSerializerContext) as global::Dust.PrivateDataSourceViewUsageSkill; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateDataSourceViewUsageSkill? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateDataSourceViewUsageSkill? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateDataSourceViewUsageSkill), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateDataSourceViewUsageSkill; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.g.cs deleted file mode 100644 index 3ddf806..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateDataSourceViewUsageSkill.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateDataSourceViewUsageSkill - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("icon")] - public string? Icon { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateDataSourceViewUsageSkill( - string? sId, - string? name, - string? icon) - { - this.SId = sId; - this.Name = name; - this.Icon = icon; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateDataSourceViewUsageSkill() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.Json.g.cs deleted file mode 100644 index f16db00..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateExtensionConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateExtensionConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateExtensionConfig), - jsonSerializerContext) as global::Dust.PrivateExtensionConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateExtensionConfig? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateExtensionConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateExtensionConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateExtensionConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.g.cs deleted file mode 100644 index 2ebf7e7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateExtensionConfig.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Extension configuration for the workspace. - /// - public sealed partial class PrivateExtensionConfig - { - /// - /// Domains where the extension should not activate - /// - [global::System.Text.Json.Serialization.JsonPropertyName("blacklistedDomains")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList BlacklistedDomains { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Domains where the extension should not activate - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateExtensionConfig( - global::System.Collections.Generic.IList blacklistedDomains) - { - this.BlacklistedDomains = blacklistedDomains ?? throw new global::System.ArgumentNullException(nameof(blacklistedDomains)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateExtensionConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.Json.g.cs deleted file mode 100644 index e779c6c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateFeatureFlags - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateFeatureFlags? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateFeatureFlags), - jsonSerializerContext) as global::Dust.PrivateFeatureFlags; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateFeatureFlags? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateFeatureFlags? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateFeatureFlags), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateFeatureFlags; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.g.cs deleted file mode 100644 index 36eb1a2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFeatureFlags.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Workspace feature flags response. - /// - public sealed partial class PrivateFeatureFlags - { - /// - /// List of enabled feature flag names for the workspace - /// - [global::System.Text.Json.Serialization.JsonPropertyName("feature_flags")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList FeatureFlags { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// List of enabled feature flag names for the workspace - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateFeatureFlags( - global::System.Collections.Generic.IList featureFlags) - { - this.FeatureFlags = featureFlags ?? throw new global::System.ArgumentNullException(nameof(featureFlags)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateFeatureFlags() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.Json.g.cs deleted file mode 100644 index 70d50f5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateFeedback - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateFeedback? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateFeedback), - jsonSerializerContext) as global::Dust.PrivateFeedback; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateFeedback? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateFeedback? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateFeedback), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateFeedback; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.g.cs deleted file mode 100644 index d3be275..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFeedback.g.cs +++ /dev/null @@ -1,157 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// User feedback on an agent message. - /// - public sealed partial class PrivateFeedback - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentMessageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int AgentMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int UserId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("thumbDirection")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateFeedbackThumbDirectionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateFeedbackThumbDirection ThumbDirection { get; set; } - - /// - /// Optional text feedback from the user - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTime CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentConfigurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AgentConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentConfigurationVersion")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int AgentConfigurationVersion { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isConversationShared")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsConversationShared { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dismissed")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Dismissed { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Optional text feedback from the user - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateFeedback( - int id, - string sId, - string messageId, - int agentMessageId, - int userId, - global::Dust.PrivateFeedbackThumbDirection thumbDirection, - global::System.DateTime createdAt, - string agentConfigurationId, - int agentConfigurationVersion, - bool isConversationShared, - bool dismissed, - string? content) - { - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.AgentMessageId = agentMessageId; - this.UserId = userId; - this.ThumbDirection = thumbDirection; - this.Content = content; - this.CreatedAt = createdAt; - this.AgentConfigurationId = agentConfigurationId ?? throw new global::System.ArgumentNullException(nameof(agentConfigurationId)); - this.AgentConfigurationVersion = agentConfigurationVersion; - this.IsConversationShared = isConversationShared; - this.Dismissed = dismissed; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateFeedback() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFeedbackThumbDirection.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFeedbackThumbDirection.g.cs deleted file mode 100644 index b0c5628..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFeedbackThumbDirection.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateFeedbackThumbDirection - { - /// - /// - /// - Down, - /// - /// - /// - Up, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateFeedbackThumbDirectionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateFeedbackThumbDirection value) - { - return value switch - { - PrivateFeedbackThumbDirection.Down => "down", - PrivateFeedbackThumbDirection.Up => "up", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateFeedbackThumbDirection? ToEnum(string value) - { - return value switch - { - "down" => PrivateFeedbackThumbDirection.Down, - "up" => PrivateFeedbackThumbDirection.Up, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.Json.g.cs deleted file mode 100644 index fe1db1f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateFileWithUploadUrl - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateFileWithUploadUrl? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateFileWithUploadUrl), - jsonSerializerContext) as global::Dust.PrivateFileWithUploadUrl; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateFileWithUploadUrl? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateFileWithUploadUrl? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateFileWithUploadUrl), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateFileWithUploadUrl; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.g.cs deleted file mode 100644 index a4fc9bf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrl.g.cs +++ /dev/null @@ -1,157 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// File record with a pre-signed upload URL. - /// - public sealed partial class PrivateFileWithUploadUrl - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FileName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSize")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int FileSize { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - public int? Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateFileWithUploadUrlStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateFileWithUploadUrlStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("useCase")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateFileWithUploadUrlUseCaseJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateFileWithUploadUrlUseCase UseCase { get; set; } - - /// - /// Pre-signed URL for uploading the file content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uploadUrl")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string UploadUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("downloadUrl")] - public string? DownloadUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("publicUrl")] - public string? PublicUrl { get; set; } - - /// - /// path when the file is ready on a mount (e.g. `project/report.pdf` or `conversation/chart.png`). Same shape as mount file listing entries. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Pre-signed URL for uploading the file content - /// - /// - /// - /// - /// - /// path when the file is ready on a mount (e.g. `project/report.pdf` or `conversation/chart.png`). Same shape as mount file listing entries. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateFileWithUploadUrl( - string sId, - string id, - string contentType, - string fileName, - int fileSize, - global::Dust.PrivateFileWithUploadUrlStatus status, - global::Dust.PrivateFileWithUploadUrlUseCase useCase, - string uploadUrl, - int? version, - string? downloadUrl, - string? publicUrl, - string? path) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - this.FileName = fileName ?? throw new global::System.ArgumentNullException(nameof(fileName)); - this.FileSize = fileSize; - this.Version = version; - this.Status = status; - this.UseCase = useCase; - this.UploadUrl = uploadUrl ?? throw new global::System.ArgumentNullException(nameof(uploadUrl)); - this.DownloadUrl = downloadUrl; - this.PublicUrl = publicUrl; - this.Path = path; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateFileWithUploadUrl() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlStatus.g.cs deleted file mode 100644 index ae7dfea..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlStatus.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateFileWithUploadUrlStatus - { - /// - /// - /// - Created, - /// - /// - /// - Failed, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateFileWithUploadUrlStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateFileWithUploadUrlStatus value) - { - return value switch - { - PrivateFileWithUploadUrlStatus.Created => "created", - PrivateFileWithUploadUrlStatus.Failed => "failed", - PrivateFileWithUploadUrlStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateFileWithUploadUrlStatus? ToEnum(string value) - { - return value switch - { - "created" => PrivateFileWithUploadUrlStatus.Created, - "failed" => PrivateFileWithUploadUrlStatus.Failed, - "ready" => PrivateFileWithUploadUrlStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlUseCase.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlUseCase.g.cs deleted file mode 100644 index 24f5bbd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFileWithUploadUrlUseCase.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateFileWithUploadUrlUseCase - { - /// - /// - /// - Avatar, - /// - /// - /// - Conversation, - /// - /// - /// - FoldersDocument, - /// - /// - /// - ProjectContext, - /// - /// - /// - SkillAttachment, - /// - /// - /// - ToolOutput, - /// - /// - /// - UpsertDocument, - /// - /// - /// - UpsertTable, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateFileWithUploadUrlUseCaseExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateFileWithUploadUrlUseCase value) - { - return value switch - { - PrivateFileWithUploadUrlUseCase.Avatar => "avatar", - PrivateFileWithUploadUrlUseCase.Conversation => "conversation", - PrivateFileWithUploadUrlUseCase.FoldersDocument => "folders_document", - PrivateFileWithUploadUrlUseCase.ProjectContext => "project_context", - PrivateFileWithUploadUrlUseCase.SkillAttachment => "skill_attachment", - PrivateFileWithUploadUrlUseCase.ToolOutput => "tool_output", - PrivateFileWithUploadUrlUseCase.UpsertDocument => "upsert_document", - PrivateFileWithUploadUrlUseCase.UpsertTable => "upsert_table", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateFileWithUploadUrlUseCase? ToEnum(string value) - { - return value switch - { - "avatar" => PrivateFileWithUploadUrlUseCase.Avatar, - "conversation" => PrivateFileWithUploadUrlUseCase.Conversation, - "folders_document" => PrivateFileWithUploadUrlUseCase.FoldersDocument, - "project_context" => PrivateFileWithUploadUrlUseCase.ProjectContext, - "skill_attachment" => PrivateFileWithUploadUrlUseCase.SkillAttachment, - "tool_output" => PrivateFileWithUploadUrlUseCase.ToolOutput, - "upsert_document" => PrivateFileWithUploadUrlUseCase.UpsertDocument, - "upsert_table" => PrivateFileWithUploadUrlUseCase.UpsertTable, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.Json.g.cs deleted file mode 100644 index 452bb39..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct PrivateFullConversation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateFullConversation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateFullConversation), - jsonSerializerContext) as global::Dust.PrivateFullConversation?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateFullConversation? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateFullConversation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateFullConversation), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateFullConversation?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.g.cs deleted file mode 100644 index c1e15e9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversation.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Dust -{ - /// - /// Full conversation including content, owner, and visibility. - /// - public readonly partial struct PrivateFullConversation : global::System.IEquatable - { - /// - /// Conversation without content, used in list responses. - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateConversation? PrivateConversation { get; init; } -#else - public global::Dust.PrivateConversation? PrivateConversation { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PrivateConversation))] -#endif - public bool IsPrivateConversation => PrivateConversation != null; - - /// - /// - /// - public bool TryPickPrivateConversation( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateConversation? value) - { - value = PrivateConversation; - return IsPrivateConversation; - } - - /// - /// - /// - public global::Dust.PrivateConversation PickPrivateConversation() => IsPrivateConversation - ? PrivateConversation! - : throw new global::System.InvalidOperationException($"Expected union variant 'PrivateConversation' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateFullConversationVariant2? PrivateFullConversationVariant2 { get; init; } -#else - public global::Dust.PrivateFullConversationVariant2? PrivateFullConversationVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PrivateFullConversationVariant2))] -#endif - public bool IsPrivateFullConversationVariant2 => PrivateFullConversationVariant2 != null; - - /// - /// - /// - public bool TryPickPrivateFullConversationVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateFullConversationVariant2? value) - { - value = PrivateFullConversationVariant2; - return IsPrivateFullConversationVariant2; - } - - /// - /// - /// - public global::Dust.PrivateFullConversationVariant2 PickPrivateFullConversationVariant2() => IsPrivateFullConversationVariant2 - ? PrivateFullConversationVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'PrivateFullConversationVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator PrivateFullConversation(global::Dust.PrivateConversation value) => new PrivateFullConversation((global::Dust.PrivateConversation?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateConversation?(PrivateFullConversation @this) => @this.PrivateConversation; - - /// - /// - /// - public PrivateFullConversation(global::Dust.PrivateConversation? value) - { - PrivateConversation = value; - } - - /// - /// - /// - public static PrivateFullConversation FromPrivateConversation(global::Dust.PrivateConversation? value) => new PrivateFullConversation(value); - - /// - /// - /// - public static implicit operator PrivateFullConversation(global::Dust.PrivateFullConversationVariant2 value) => new PrivateFullConversation((global::Dust.PrivateFullConversationVariant2?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateFullConversationVariant2?(PrivateFullConversation @this) => @this.PrivateFullConversationVariant2; - - /// - /// - /// - public PrivateFullConversation(global::Dust.PrivateFullConversationVariant2? value) - { - PrivateFullConversationVariant2 = value; - } - - /// - /// - /// - public static PrivateFullConversation FromPrivateFullConversationVariant2(global::Dust.PrivateFullConversationVariant2? value) => new PrivateFullConversation(value); - - /// - /// - /// - public PrivateFullConversation( - global::Dust.PrivateConversation? privateConversation, - global::Dust.PrivateFullConversationVariant2? privateFullConversationVariant2 - ) - { - PrivateConversation = privateConversation; - PrivateFullConversationVariant2 = privateFullConversationVariant2; - } - - /// - /// - /// - public object? Object => - PrivateFullConversationVariant2 as object ?? - PrivateConversation as object - ; - - /// - /// - /// - public override string? ToString() => - PrivateConversation?.ToString() ?? - PrivateFullConversationVariant2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsPrivateConversation && IsPrivateFullConversationVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? privateConversation = null, - global::System.Func? privateFullConversationVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsPrivateConversation && privateConversation != null) - { - return privateConversation(PrivateConversation!); - } - else if (IsPrivateFullConversationVariant2 && privateFullConversationVariant2 != null) - { - return privateFullConversationVariant2(PrivateFullConversationVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? privateConversation = null, - - global::System.Action? privateFullConversationVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsPrivateConversation) - { - privateConversation?.Invoke(PrivateConversation!); - } - else if (IsPrivateFullConversationVariant2) - { - privateFullConversationVariant2?.Invoke(PrivateFullConversationVariant2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? privateConversation = null, - global::System.Action? privateFullConversationVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsPrivateConversation) - { - privateConversation?.Invoke(PrivateConversation!); - } - else if (IsPrivateFullConversationVariant2) - { - privateFullConversationVariant2?.Invoke(PrivateFullConversationVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - PrivateConversation, - typeof(global::Dust.PrivateConversation), - PrivateFullConversationVariant2, - typeof(global::Dust.PrivateFullConversationVariant2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(PrivateFullConversation other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(PrivateConversation, other.PrivateConversation) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PrivateFullConversationVariant2, other.PrivateFullConversationVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(PrivateFullConversation obj1, PrivateFullConversation obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(PrivateFullConversation obj1, PrivateFullConversation obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is PrivateFullConversation o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.Json.g.cs deleted file mode 100644 index 9ad93ee..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateFullConversationVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateFullConversationVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateFullConversationVariant2), - jsonSerializerContext) as global::Dust.PrivateFullConversationVariant2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateFullConversationVariant2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateFullConversationVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateFullConversationVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateFullConversationVariant2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.g.cs deleted file mode 100644 index 2c1c6dc..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateFullConversationVariant2 - { - /// - /// Workspace as returned by the private API, includes SSO and provider settings. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("owner")] - public global::Dust.PrivateWorkspace? Owner { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateFullConversationVariant2VisibilityJsonConverter))] - public global::Dust.PrivateFullConversationVariant2Visibility? Visibility { get; set; } - - /// - /// Array of message arrays (versions/retries) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList>>? Content { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Workspace as returned by the private API, includes SSO and provider settings. - /// - /// - /// - /// Array of message arrays (versions/retries) - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateFullConversationVariant2( - global::Dust.PrivateWorkspace? owner, - global::Dust.PrivateFullConversationVariant2Visibility? visibility, - global::System.Collections.Generic.IList>>? content) - { - this.Owner = owner; - this.Visibility = visibility; - this.Content = content; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateFullConversationVariant2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2Visibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2Visibility.g.cs deleted file mode 100644 index 9d6fb3f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateFullConversationVariant2Visibility.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateFullConversationVariant2Visibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Test, - /// - /// - /// - Unlisted, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateFullConversationVariant2VisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateFullConversationVariant2Visibility value) - { - return value switch - { - PrivateFullConversationVariant2Visibility.Deleted => "deleted", - PrivateFullConversationVariant2Visibility.Test => "test", - PrivateFullConversationVariant2Visibility.Unlisted => "unlisted", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateFullConversationVariant2Visibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateFullConversationVariant2Visibility.Deleted, - "test" => PrivateFullConversationVariant2Visibility.Test, - "unlisted" => PrivateFullConversationVariant2Visibility.Unlisted, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.Json.g.cs deleted file mode 100644 index 1c5bbce..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateGenerationTokensEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateGenerationTokensEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateGenerationTokensEvent), - jsonSerializerContext) as global::Dust.PrivateGenerationTokensEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateGenerationTokensEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateGenerationTokensEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateGenerationTokensEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateGenerationTokensEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.g.cs deleted file mode 100644 index c9c66b1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEvent.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateGenerationTokensEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateGenerationTokensEventTypeJsonConverter))] - public global::Dust.PrivateGenerationTokensEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// The token(s) generated in this chunk - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("classification")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateGenerationTokensEventClassificationJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateGenerationTokensEventClassification Classification { get; set; } - - /// - /// Present when classification is opening_delimiter or closing_delimiter - /// - [global::System.Text.Json.Serialization.JsonPropertyName("delimiterClassification")] - public string? DelimiterClassification { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// The token(s) generated in this chunk - /// - /// - /// - /// - /// Present when classification is opening_delimiter or closing_delimiter - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateGenerationTokensEvent( - int created, - string configurationId, - string messageId, - string text, - global::Dust.PrivateGenerationTokensEventClassification classification, - global::Dust.PrivateGenerationTokensEventType type, - string? delimiterClassification, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Classification = classification; - this.DelimiterClassification = delimiterClassification; - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateGenerationTokensEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventClassification.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventClassification.g.cs deleted file mode 100644 index 5e2f497..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventClassification.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateGenerationTokensEventClassification - { - /// - /// - /// - ChainOfThought, - /// - /// - /// - ClosingDelimiter, - /// - /// - /// - OpeningDelimiter, - /// - /// - /// - Tokens, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateGenerationTokensEventClassificationExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateGenerationTokensEventClassification value) - { - return value switch - { - PrivateGenerationTokensEventClassification.ChainOfThought => "chain_of_thought", - PrivateGenerationTokensEventClassification.ClosingDelimiter => "closing_delimiter", - PrivateGenerationTokensEventClassification.OpeningDelimiter => "opening_delimiter", - PrivateGenerationTokensEventClassification.Tokens => "tokens", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateGenerationTokensEventClassification? ToEnum(string value) - { - return value switch - { - "chain_of_thought" => PrivateGenerationTokensEventClassification.ChainOfThought, - "closing_delimiter" => PrivateGenerationTokensEventClassification.ClosingDelimiter, - "opening_delimiter" => PrivateGenerationTokensEventClassification.OpeningDelimiter, - "tokens" => PrivateGenerationTokensEventClassification.Tokens, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventType.g.cs deleted file mode 100644 index a19a9ff..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateGenerationTokensEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateGenerationTokensEventType - { - /// - /// - /// - GenerationTokens, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateGenerationTokensEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateGenerationTokensEventType value) - { - return value switch - { - PrivateGenerationTokensEventType.GenerationTokens => "generation_tokens", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateGenerationTokensEventType? ToEnum(string value) - { - return value switch - { - "generation_tokens" => PrivateGenerationTokensEventType.GenerationTokens, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.Json.g.cs deleted file mode 100644 index 77009e1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfiguration - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfiguration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfiguration), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfiguration; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfiguration? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfiguration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfiguration), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfiguration; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.g.cs deleted file mode 100644 index b1936c5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfiguration.g.cs +++ /dev/null @@ -1,274 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Agent configuration as returned by the private list endpoint. - /// - public sealed partial class PrivateLightAgentConfiguration - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("versionCreatedAt")] - public string? VersionCreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("versionAuthorId")] - public int? VersionAuthorId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("instructions")] - public string? Instructions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PictureUrl { get; set; } - - /// - /// Agent status - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentConfigurationStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateLightAgentConfigurationStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scope")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentConfigurationScopeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateLightAgentConfigurationScope Scope { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userFavorite")] - public bool? UserFavorite { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateLightAgentConfigurationModel Model { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxStepsPerRun")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int MaxStepsPerRun { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tags")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Tags { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("templateId")] - public string? TemplateId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("requestedGroupIds")] - public global::System.Collections.Generic.IList>? RequestedGroupIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("requestedSpaceIds")] - public global::System.Collections.Generic.IList? RequestedSpaceIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("canRead")] - public bool? CanRead { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("canEdit")] - public bool? CanEdit { get; set; } - - /// - /// Optional, returned when withAuthors query param is set - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastAuthors")] - public global::System.Collections.Generic.IList? LastAuthors { get; set; } - - /// - /// Optional, returned when withEditors query param is set - /// - [global::System.Text.Json.Serialization.JsonPropertyName("editors")] - public global::System.Collections.Generic.IList? Editors { get; set; } - - /// - /// Optional, returned when withUsage query param is set - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Dust.PrivateLightAgentConfigurationUsage? Usage { get; set; } - - /// - /// Optional, returned when withFeedbacks query param is set - /// - [global::System.Text.Json.Serialization.JsonPropertyName("feedbacks")] - public global::Dust.PrivateLightAgentConfigurationFeedbacks? Feedbacks { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// Agent status - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Optional, returned when withAuthors query param is set - /// - /// - /// Optional, returned when withEditors query param is set - /// - /// - /// Optional, returned when withUsage query param is set - /// - /// - /// Optional, returned when withFeedbacks query param is set - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfiguration( - int id, - string sId, - int version, - string name, - string description, - string pictureUrl, - global::Dust.PrivateLightAgentConfigurationStatus status, - global::Dust.PrivateLightAgentConfigurationScope scope, - global::Dust.PrivateLightAgentConfigurationModel model, - int maxStepsPerRun, - global::System.Collections.Generic.IList tags, - string? versionCreatedAt, - int? versionAuthorId, - string? instructions, - bool? userFavorite, - string? templateId, - global::System.Collections.Generic.IList>? requestedGroupIds, - global::System.Collections.Generic.IList? requestedSpaceIds, - bool? canRead, - bool? canEdit, - global::System.Collections.Generic.IList? lastAuthors, - global::System.Collections.Generic.IList? editors, - global::Dust.PrivateLightAgentConfigurationUsage? usage, - global::Dust.PrivateLightAgentConfigurationFeedbacks? feedbacks) - { - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Version = version; - this.VersionCreatedAt = versionCreatedAt; - this.VersionAuthorId = versionAuthorId; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.Instructions = instructions; - this.PictureUrl = pictureUrl ?? throw new global::System.ArgumentNullException(nameof(pictureUrl)); - this.Status = status; - this.Scope = scope; - this.UserFavorite = userFavorite; - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.MaxStepsPerRun = maxStepsPerRun; - this.Tags = tags ?? throw new global::System.ArgumentNullException(nameof(tags)); - this.TemplateId = templateId; - this.RequestedGroupIds = requestedGroupIds; - this.RequestedSpaceIds = requestedSpaceIds; - this.CanRead = canRead; - this.CanEdit = canEdit; - this.LastAuthors = lastAuthors; - this.Editors = editors; - this.Usage = usage; - this.Feedbacks = feedbacks; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfiguration() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.Json.g.cs deleted file mode 100644 index 9250826..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfigurationEditor - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationEditor? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfigurationEditor), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfigurationEditor; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationEditor? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfigurationEditor? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfigurationEditor), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfigurationEditor; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.g.cs deleted file mode 100644 index 28914e3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationEditor.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentConfigurationEditor - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public string? Image { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfigurationEditor( - string? sId, - string? fullName, - string? image) - { - this.SId = sId; - this.FullName = fullName; - this.Image = image; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfigurationEditor() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.Json.g.cs deleted file mode 100644 index c6a46e2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfigurationFeedbacks - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationFeedbacks? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfigurationFeedbacks), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfigurationFeedbacks; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationFeedbacks? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfigurationFeedbacks? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfigurationFeedbacks), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfigurationFeedbacks; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.g.cs deleted file mode 100644 index 14d3caa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationFeedbacks.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Optional, returned when withFeedbacks query param is set - /// - public sealed partial class PrivateLightAgentConfigurationFeedbacks - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("up")] - public int? Up { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("down")] - public int? Down { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfigurationFeedbacks( - int? up, - int? down) - { - this.Up = up; - this.Down = down; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfigurationFeedbacks() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.Json.g.cs deleted file mode 100644 index 1c43951..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfigurationModel - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfigurationModel), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfigurationModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationModel? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfigurationModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfigurationModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfigurationModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.g.cs deleted file mode 100644 index 3d77d0f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModel.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentConfigurationModel - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - public string? ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - public string? ModelId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoningEffort")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentConfigurationModelReasoningEffortJsonConverter))] - public global::Dust.PrivateLightAgentConfigurationModelReasoningEffort? ReasoningEffort { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfigurationModel( - string? providerId, - string? modelId, - double? temperature, - global::Dust.PrivateLightAgentConfigurationModelReasoningEffort? reasoningEffort) - { - this.ProviderId = providerId; - this.ModelId = modelId; - this.Temperature = temperature; - this.ReasoningEffort = reasoningEffort; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfigurationModel() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModelReasoningEffort.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModelReasoningEffort.g.cs deleted file mode 100644 index 3b46c54..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationModelReasoningEffort.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentConfigurationModelReasoningEffort - { - /// - /// - /// - High, - /// - /// - /// - Light, - /// - /// - /// - Medium, - /// - /// - /// - None, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentConfigurationModelReasoningEffortExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentConfigurationModelReasoningEffort value) - { - return value switch - { - PrivateLightAgentConfigurationModelReasoningEffort.High => "high", - PrivateLightAgentConfigurationModelReasoningEffort.Light => "light", - PrivateLightAgentConfigurationModelReasoningEffort.Medium => "medium", - PrivateLightAgentConfigurationModelReasoningEffort.None => "none", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentConfigurationModelReasoningEffort? ToEnum(string value) - { - return value switch - { - "high" => PrivateLightAgentConfigurationModelReasoningEffort.High, - "light" => PrivateLightAgentConfigurationModelReasoningEffort.Light, - "medium" => PrivateLightAgentConfigurationModelReasoningEffort.Medium, - "none" => PrivateLightAgentConfigurationModelReasoningEffort.None, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationScope.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationScope.g.cs deleted file mode 100644 index b23390e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationScope.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentConfigurationScope - { - /// - /// - /// - Global, - /// - /// - /// - Hidden, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentConfigurationScopeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentConfigurationScope value) - { - return value switch - { - PrivateLightAgentConfigurationScope.Global => "global", - PrivateLightAgentConfigurationScope.Hidden => "hidden", - PrivateLightAgentConfigurationScope.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentConfigurationScope? ToEnum(string value) - { - return value switch - { - "global" => PrivateLightAgentConfigurationScope.Global, - "hidden" => PrivateLightAgentConfigurationScope.Hidden, - "visible" => PrivateLightAgentConfigurationScope.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationStatus.g.cs deleted file mode 100644 index 7c6912e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationStatus.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Agent status - /// - public enum PrivateLightAgentConfigurationStatus - { - /// - /// - /// - Active, - /// - /// - /// - Archived, - /// - /// - /// - DisabledByAdmin, - /// - /// - /// - DisabledFreeWorkspace, - /// - /// - /// - DisabledMissingDatasource, - /// - /// - /// - Draft, - /// - /// - /// - Pending, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentConfigurationStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentConfigurationStatus value) - { - return value switch - { - PrivateLightAgentConfigurationStatus.Active => "active", - PrivateLightAgentConfigurationStatus.Archived => "archived", - PrivateLightAgentConfigurationStatus.DisabledByAdmin => "disabled_by_admin", - PrivateLightAgentConfigurationStatus.DisabledFreeWorkspace => "disabled_free_workspace", - PrivateLightAgentConfigurationStatus.DisabledMissingDatasource => "disabled_missing_datasource", - PrivateLightAgentConfigurationStatus.Draft => "draft", - PrivateLightAgentConfigurationStatus.Pending => "pending", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentConfigurationStatus? ToEnum(string value) - { - return value switch - { - "active" => PrivateLightAgentConfigurationStatus.Active, - "archived" => PrivateLightAgentConfigurationStatus.Archived, - "disabled_by_admin" => PrivateLightAgentConfigurationStatus.DisabledByAdmin, - "disabled_free_workspace" => PrivateLightAgentConfigurationStatus.DisabledFreeWorkspace, - "disabled_missing_datasource" => PrivateLightAgentConfigurationStatus.DisabledMissingDatasource, - "draft" => PrivateLightAgentConfigurationStatus.Draft, - "pending" => PrivateLightAgentConfigurationStatus.Pending, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.Json.g.cs deleted file mode 100644 index f6db5b2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfigurationTag - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationTag? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfigurationTag), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfigurationTag; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationTag? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfigurationTag? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfigurationTag), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfigurationTag; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.g.cs deleted file mode 100644 index 26ae6f3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationTag.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentConfigurationTag - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfigurationTag( - string? sId, - string? name) - { - this.SId = sId; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfigurationTag() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.Json.g.cs deleted file mode 100644 index 5ac849f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentConfigurationUsage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationUsage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentConfigurationUsage), - jsonSerializerContext) as global::Dust.PrivateLightAgentConfigurationUsage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentConfigurationUsage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentConfigurationUsage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentConfigurationUsage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentConfigurationUsage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.g.cs deleted file mode 100644 index 3a37989..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentConfigurationUsage.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Optional, returned when withUsage query param is set - /// - public sealed partial class PrivateLightAgentConfigurationUsage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageCount")] - public int? MessageCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationCount")] - public int? ConversationCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userCount")] - public int? UserCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timePeriodSec")] - public int? TimePeriodSec { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentConfigurationUsage( - int? messageCount, - int? conversationCount, - int? userCount, - int? timePeriodSec) - { - this.MessageCount = messageCount; - this.ConversationCount = conversationCount; - this.UserCount = userCount; - this.TimePeriodSec = timePeriodSec; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentConfigurationUsage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.Json.g.cs deleted file mode 100644 index 3ab40ac..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessage), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.g.cs deleted file mode 100644 index 0fe6de1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.g.cs +++ /dev/null @@ -1,282 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A lighter agent message used in paginated message list responses. - /// - public sealed partial class PrivateLightAgentMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentMessageTypeJsonConverter))] - public global::Dust.PrivateLightAgentMessageType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public int? Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("completedTs")] - public int? CompletedTs { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentMessageVisibilityJsonConverter))] - public global::Dust.PrivateLightAgentMessageVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Rank { get; set; } - - /// - /// Legacy, always null. Branches were removed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchId")] - public string? BranchId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentMessageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ParentMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parentAgentMessageId")] - public string? ParentAgentMessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentMessageStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateLightAgentMessageStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chainOfThought")] - public string? ChainOfThought { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Dust.PrivateLightAgentMessageError? Error { get; set; } - - /// - /// Minimal agent configuration info - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configuration")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateLightAgentMessageConfiguration Configuration { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("citations")] - public global::System.Collections.Generic.Dictionary? Citations { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("generatedFiles")] - public global::System.Collections.Generic.IList? GeneratedFiles { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("richMentions")] - public global::System.Collections.Generic.IList? RichMentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("completionDurationMs")] - public int? CompletionDurationMs { get; set; } - - /// - /// Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("costCredits")] - public int? CostCredits { get; set; } - - /// - /// Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("subAgentCostCredits")] - public double? SubAgentCostCredits { get; set; } - - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolvedModel")] - public global::Dust.PrivateLightAgentMessageResolvedModel? ResolvedModel { get; set; } - - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelResolutionMethod")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentMessageModelResolutionMethodJsonConverter))] - public global::Dust.PrivateLightAgentMessageModelResolutionMethod? ModelResolutionMethod { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("activitySteps")] - public global::System.Collections.Generic.IList? ActivitySteps { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reactions")] - public global::System.Collections.Generic.IList? Reactions { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// Minimal agent configuration info - /// - /// - /// - /// - /// - /// - /// Legacy, always null. Branches were removed. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message. - /// - /// - /// Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise. - /// - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessage( - string sId, - int version, - int rank, - string parentMessageId, - global::Dust.PrivateLightAgentMessageStatus status, - global::Dust.PrivateLightAgentMessageConfiguration configuration, - global::Dust.PrivateLightAgentMessageType type, - int? created, - int? completedTs, - global::Dust.PrivateLightAgentMessageVisibility? visibility, - string? branchId, - string? parentAgentMessageId, - string? content, - string? chainOfThought, - global::Dust.PrivateLightAgentMessageError? error, - global::System.Collections.Generic.Dictionary? citations, - global::System.Collections.Generic.IList? generatedFiles, - global::System.Collections.Generic.IList? richMentions, - int? completionDurationMs, - int? costCredits, - double? subAgentCostCredits, - global::Dust.PrivateLightAgentMessageResolvedModel? resolvedModel, - global::Dust.PrivateLightAgentMessageModelResolutionMethod? modelResolutionMethod, - global::System.Collections.Generic.IList? activitySteps, - global::System.Collections.Generic.IList? reactions) - { - this.Type = type; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Created = created; - this.CompletedTs = completedTs; - this.Visibility = visibility; - this.Version = version; - this.Rank = rank; - this.BranchId = branchId; - this.ParentMessageId = parentMessageId ?? throw new global::System.ArgumentNullException(nameof(parentMessageId)); - this.ParentAgentMessageId = parentAgentMessageId; - this.Status = status; - this.Content = content; - this.ChainOfThought = chainOfThought; - this.Error = error; - this.Configuration = configuration ?? throw new global::System.ArgumentNullException(nameof(configuration)); - this.Citations = citations; - this.GeneratedFiles = generatedFiles; - this.RichMentions = richMentions; - this.CompletionDurationMs = completionDurationMs; - this.CostCredits = costCredits; - this.SubAgentCostCredits = subAgentCostCredits; - this.ResolvedModel = resolvedModel; - this.ModelResolutionMethod = modelResolutionMethod; - this.ActivitySteps = activitySteps; - this.Reactions = reactions; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.Json.g.cs deleted file mode 100644 index 421f96e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageActivityStep - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageActivityStep? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageActivityStep), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageActivityStep; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageActivityStep? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageActivityStep? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageActivityStep), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageActivityStep; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.g.cs deleted file mode 100644 index 311f50d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStep.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentMessageActivityStep - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateLightAgentMessageActivityStepTypeJsonConverter))] - public global::Dust.PrivateLightAgentMessageActivityStepType? Type { get; set; } - - /// - /// Chain of thought text (thinking steps only) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// Action display label (action steps only) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - public string? Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - - /// - /// Action string identifier (action steps only) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actionId")] - public string? ActionId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Chain of thought text (thinking steps only) - /// - /// - /// Action display label (action steps only) - /// - /// - /// - /// Action string identifier (action steps only) - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessageActivityStep( - global::Dust.PrivateLightAgentMessageActivityStepType? type, - string? content, - string? label, - string? id, - string? actionId) - { - this.Type = type; - this.Content = content; - this.Label = label; - this.Id = id; - this.ActionId = actionId; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessageActivityStep() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStepType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStepType.g.cs deleted file mode 100644 index 4b1f9ce..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageActivityStepType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentMessageActivityStepType - { - /// - /// - /// - Action, - /// - /// - /// - Thinking, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentMessageActivityStepTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentMessageActivityStepType value) - { - return value switch - { - PrivateLightAgentMessageActivityStepType.Action => "action", - PrivateLightAgentMessageActivityStepType.Thinking => "thinking", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentMessageActivityStepType? ToEnum(string value) - { - return value switch - { - "action" => PrivateLightAgentMessageActivityStepType.Action, - "thinking" => PrivateLightAgentMessageActivityStepType.Thinking, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.Json.g.cs deleted file mode 100644 index 8d5008f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageCitations - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageCitations? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageCitations), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageCitations; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageCitations? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageCitations? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageCitations), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageCitations; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.g.cs deleted file mode 100644 index 3400e7d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageCitations.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentMessageCitations - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.Json.g.cs deleted file mode 100644 index 86901f1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageConfiguration - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageConfiguration? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageConfiguration), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageConfiguration; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageConfiguration? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageConfiguration? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageConfiguration), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageConfiguration; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.g.cs deleted file mode 100644 index 422f57e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageConfiguration.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Minimal agent configuration info - /// - public sealed partial class PrivateLightAgentMessageConfiguration - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - public string? PictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("canRead")] - public bool? CanRead { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessageConfiguration( - string? sId, - string? name, - string? pictureUrl, - string? status, - bool? canRead) - { - this.SId = sId; - this.Name = name; - this.PictureUrl = pictureUrl; - this.Status = status; - this.CanRead = canRead; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessageConfiguration() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.Json.g.cs deleted file mode 100644 index c1bc3c0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageError), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.g.cs deleted file mode 100644 index 50c08e7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageError.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentMessageError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessageError( - string? code, - string? message, - object? metadata) - { - this.Code = code; - this.Message = message; - this.Metadata = metadata; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessageError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.Json.g.cs deleted file mode 100644 index d342b5d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageErrorMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageErrorMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageErrorMetadata), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageErrorMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageErrorMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageErrorMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageErrorMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageErrorMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.g.cs deleted file mode 100644 index ff26dcf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageErrorMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentMessageErrorMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.Json.g.cs deleted file mode 100644 index 43b0ea4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageGeneratedFile - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageGeneratedFile? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageGeneratedFile), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageGeneratedFile; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageGeneratedFile? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageGeneratedFile? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageGeneratedFile), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageGeneratedFile; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.g.cs deleted file mode 100644 index ddd92a9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageGeneratedFile.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateLightAgentMessageGeneratedFile - { - /// - /// Dust file id for DB-backed files, or null for path-backed files. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - public string? FileId { get; set; } - - /// - /// Canonical scoped path for path-backed files. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filePath")] - public string? FilePath { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - public string? ContentType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("publicUrl")] - public string? PublicUrl { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Dust file id for DB-backed files, or null for path-backed files. - /// - /// - /// Canonical scoped path for path-backed files. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessageGeneratedFile( - string? fileId, - string? filePath, - string? title, - string? contentType, - string? publicUrl) - { - this.FileId = fileId; - this.FilePath = filePath; - this.Title = title; - this.ContentType = contentType; - this.PublicUrl = publicUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessageGeneratedFile() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageModelResolutionMethod.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageModelResolutionMethod.g.cs deleted file mode 100644 index 9c0eb7f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageModelResolutionMethod.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy). - /// - public enum PrivateLightAgentMessageModelResolutionMethod - { - /// - /// - /// - Agent, - /// - /// - /// - Auto, - /// - /// - /// - AutoComplex, - /// - /// - /// - AutoFast, - /// - /// - /// - FairUseDowngrade, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentMessageModelResolutionMethodExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentMessageModelResolutionMethod value) - { - return value switch - { - PrivateLightAgentMessageModelResolutionMethod.Agent => "agent", - PrivateLightAgentMessageModelResolutionMethod.Auto => "auto", - PrivateLightAgentMessageModelResolutionMethod.AutoComplex => "auto_complex", - PrivateLightAgentMessageModelResolutionMethod.AutoFast => "auto_fast", - PrivateLightAgentMessageModelResolutionMethod.FairUseDowngrade => "fair_use_downgrade", - PrivateLightAgentMessageModelResolutionMethod.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentMessageModelResolutionMethod? ToEnum(string value) - { - return value switch - { - "agent" => PrivateLightAgentMessageModelResolutionMethod.Agent, - "auto" => PrivateLightAgentMessageModelResolutionMethod.Auto, - "auto_complex" => PrivateLightAgentMessageModelResolutionMethod.AutoComplex, - "auto_fast" => PrivateLightAgentMessageModelResolutionMethod.AutoFast, - "fair_use_downgrade" => PrivateLightAgentMessageModelResolutionMethod.FairUseDowngrade, - "user" => PrivateLightAgentMessageModelResolutionMethod.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.Json.g.cs deleted file mode 100644 index faa8ab2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateLightAgentMessageResolvedModel - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageResolvedModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateLightAgentMessageResolvedModel), - jsonSerializerContext) as global::Dust.PrivateLightAgentMessageResolvedModel; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateLightAgentMessageResolvedModel? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateLightAgentMessageResolvedModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateLightAgentMessageResolvedModel), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateLightAgentMessageResolvedModel; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.g.cs deleted file mode 100644 index 88e00d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageResolvedModel.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Model triplet used to generate the message. Null when the agent ran its configured model (legacy). - /// - public sealed partial class PrivateLightAgentMessageResolvedModel - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] - public string? ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelId")] - public string? ModelId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoningEffort")] - public string? ReasoningEffort { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateLightAgentMessageResolvedModel( - string? providerId, - string? modelId, - string? reasoningEffort) - { - this.ProviderId = providerId; - this.ModelId = modelId; - this.ReasoningEffort = reasoningEffort; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateLightAgentMessageResolvedModel() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageStatus.g.cs deleted file mode 100644 index 2a2930c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentMessageStatus - { - /// - /// - /// - Cancelled, - /// - /// - /// - Created, - /// - /// - /// - Failed, - /// - /// - /// - Succeeded, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentMessageStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentMessageStatus value) - { - return value switch - { - PrivateLightAgentMessageStatus.Cancelled => "cancelled", - PrivateLightAgentMessageStatus.Created => "created", - PrivateLightAgentMessageStatus.Failed => "failed", - PrivateLightAgentMessageStatus.Succeeded => "succeeded", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentMessageStatus? ToEnum(string value) - { - return value switch - { - "cancelled" => PrivateLightAgentMessageStatus.Cancelled, - "created" => PrivateLightAgentMessageStatus.Created, - "failed" => PrivateLightAgentMessageStatus.Failed, - "succeeded" => PrivateLightAgentMessageStatus.Succeeded, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageType.g.cs deleted file mode 100644 index 476a596..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentMessageType - { - /// - /// - /// - AgentMessage, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentMessageTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentMessageType value) - { - return value switch - { - PrivateLightAgentMessageType.AgentMessage => "agent_message", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentMessageType? ToEnum(string value) - { - return value switch - { - "agent_message" => PrivateLightAgentMessageType.AgentMessage, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageVisibility.g.cs deleted file mode 100644 index b0f8c82..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessageVisibility.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateLightAgentMessageVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateLightAgentMessageVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateLightAgentMessageVisibility value) - { - return value switch - { - PrivateLightAgentMessageVisibility.Deleted => "deleted", - PrivateLightAgentMessageVisibility.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateLightAgentMessageVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateLightAgentMessageVisibility.Deleted, - "visible" => PrivateLightAgentMessageVisibility.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMention.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMention.Json.g.cs deleted file mode 100644 index 2a51ab8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMention.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateMention - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateMention? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateMention), - jsonSerializerContext) as global::Dust.PrivateMention; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateMention? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateMention? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateMention), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateMention; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMention.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMention.g.cs deleted file mode 100644 index 1e34e74..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMention.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A mention in a message (agent or user). - /// - public sealed partial class PrivateMention - { - /// - /// Agent configuration sId (for agent mentions) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - public string? ConfigurationId { get; set; } - - /// - /// Present only for user mentions - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateMentionTypeJsonConverter))] - public global::Dust.PrivateMentionType? Type { get; set; } - - /// - /// User sId (for user mentions) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - public string? UserId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Agent configuration sId (for agent mentions) - /// - /// - /// Present only for user mentions - /// - /// - /// User sId (for user mentions) - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateMention( - string? configurationId, - global::Dust.PrivateMentionType? type, - string? userId) - { - this.ConfigurationId = configurationId; - this.Type = type; - this.UserId = userId; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateMention() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.Json.g.cs deleted file mode 100644 index e3f20c4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateMentionSuggestion - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateMentionSuggestion? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateMentionSuggestion), - jsonSerializerContext) as global::Dust.PrivateMentionSuggestion; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateMentionSuggestion? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateMentionSuggestion? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateMentionSuggestion), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateMentionSuggestion; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.g.cs deleted file mode 100644 index 8e7005a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestion.g.cs +++ /dev/null @@ -1,103 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A rich mention suggestion for agents or users. - /// - public sealed partial class PrivateMentionSuggestion - { - /// - /// Agent sId or user sId - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateMentionSuggestionTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateMentionSuggestionType Type { get; set; } - - /// - /// Display name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PictureUrl { get; set; } - - /// - /// Agent description or user email - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } - - /// - /// Whether the agent is a user favorite (agent mentions only) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userFavorite")] - public bool? UserFavorite { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Agent sId or user sId - /// - /// - /// - /// Display name - /// - /// - /// - /// Agent description or user email - /// - /// - /// Whether the agent is a user favorite (agent mentions only) - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateMentionSuggestion( - string id, - global::Dust.PrivateMentionSuggestionType type, - string label, - string pictureUrl, - string description, - bool? userFavorite) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Type = type; - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.PictureUrl = pictureUrl ?? throw new global::System.ArgumentNullException(nameof(pictureUrl)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.UserFavorite = userFavorite; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateMentionSuggestion() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestionType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestionType.g.cs deleted file mode 100644 index bb3370d..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMentionSuggestionType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateMentionSuggestionType - { - /// - /// - /// - Agent, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateMentionSuggestionTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateMentionSuggestionType value) - { - return value switch - { - PrivateMentionSuggestionType.Agent => "agent", - PrivateMentionSuggestionType.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateMentionSuggestionType? ToEnum(string value) - { - return value switch - { - "agent" => PrivateMentionSuggestionType.Agent, - "user" => PrivateMentionSuggestionType.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateMentionType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateMentionType.g.cs deleted file mode 100644 index 90b5abe..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateMentionType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Present only for user mentions - /// - public enum PrivateMentionType - { - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateMentionTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateMentionType value) - { - return value switch - { - PrivateMentionType.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateMentionType? ToEnum(string value) - { - return value switch - { - "user" => PrivateMentionType.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProject.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProject.Json.g.cs deleted file mode 100644 index 529de64..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProject.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct PrivateProject - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateProject? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateProject), - jsonSerializerContext) as global::Dust.PrivateProject?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateProject? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateProject? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateProject), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateProject?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProject.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProject.g.cs deleted file mode 100644 index 34a7737..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProject.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Dust -{ - /// - /// A project space with additional metadata. - /// - public readonly partial struct PrivateProject : global::System.IEquatable - { - /// - /// A space in the workspace. - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateSpace? Space { get; init; } -#else - public global::Dust.PrivateSpace? Space { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Space))] -#endif - public bool IsSpace => Space != null; - - /// - /// - /// - public bool TryPickSpace( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateSpace? value) - { - value = Space; - return IsSpace; - } - - /// - /// - /// - public global::Dust.PrivateSpace PickSpace() => IsSpace - ? Space! - : throw new global::System.InvalidOperationException($"Expected union variant 'Space' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateProjectVariant2? PrivateProjectVariant2 { get; init; } -#else - public global::Dust.PrivateProjectVariant2? PrivateProjectVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PrivateProjectVariant2))] -#endif - public bool IsPrivateProjectVariant2 => PrivateProjectVariant2 != null; - - /// - /// - /// - public bool TryPickPrivateProjectVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateProjectVariant2? value) - { - value = PrivateProjectVariant2; - return IsPrivateProjectVariant2; - } - - /// - /// - /// - public global::Dust.PrivateProjectVariant2 PickPrivateProjectVariant2() => IsPrivateProjectVariant2 - ? PrivateProjectVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'PrivateProjectVariant2' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator PrivateProject(global::Dust.PrivateSpace value) => new PrivateProject((global::Dust.PrivateSpace?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateSpace?(PrivateProject @this) => @this.Space; - - /// - /// - /// - public PrivateProject(global::Dust.PrivateSpace? value) - { - Space = value; - } - - /// - /// - /// - public static PrivateProject FromSpace(global::Dust.PrivateSpace? value) => new PrivateProject(value); - - /// - /// - /// - public static implicit operator PrivateProject(global::Dust.PrivateProjectVariant2 value) => new PrivateProject((global::Dust.PrivateProjectVariant2?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateProjectVariant2?(PrivateProject @this) => @this.PrivateProjectVariant2; - - /// - /// - /// - public PrivateProject(global::Dust.PrivateProjectVariant2? value) - { - PrivateProjectVariant2 = value; - } - - /// - /// - /// - public static PrivateProject FromPrivateProjectVariant2(global::Dust.PrivateProjectVariant2? value) => new PrivateProject(value); - - /// - /// - /// - public PrivateProject( - global::Dust.PrivateSpace? space, - global::Dust.PrivateProjectVariant2? privateProjectVariant2 - ) - { - Space = space; - PrivateProjectVariant2 = privateProjectVariant2; - } - - /// - /// - /// - public object? Object => - PrivateProjectVariant2 as object ?? - Space as object - ; - - /// - /// - /// - public override string? ToString() => - Space?.ToString() ?? - PrivateProjectVariant2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsSpace && IsPrivateProjectVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? space = null, - global::System.Func? privateProjectVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSpace && space != null) - { - return space(Space!); - } - else if (IsPrivateProjectVariant2 && privateProjectVariant2 != null) - { - return privateProjectVariant2(PrivateProjectVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? space = null, - - global::System.Action? privateProjectVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSpace) - { - space?.Invoke(Space!); - } - else if (IsPrivateProjectVariant2) - { - privateProjectVariant2?.Invoke(PrivateProjectVariant2!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? space = null, - global::System.Action? privateProjectVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSpace) - { - space?.Invoke(Space!); - } - else if (IsPrivateProjectVariant2) - { - privateProjectVariant2?.Invoke(PrivateProjectVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Space, - typeof(global::Dust.PrivateSpace), - PrivateProjectVariant2, - typeof(global::Dust.PrivateProjectVariant2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(PrivateProject other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Space, other.Space) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(PrivateProjectVariant2, other.PrivateProjectVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(PrivateProject obj1, PrivateProject obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(PrivateProject obj1, PrivateProject obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is PrivateProject o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.Json.g.cs deleted file mode 100644 index 9e80627..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateProjectVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateProjectVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateProjectVariant2), - jsonSerializerContext) as global::Dust.PrivateProjectVariant2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateProjectVariant2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateProjectVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateProjectVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateProjectVariant2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.g.cs deleted file mode 100644 index d309e17..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2.g.cs +++ /dev/null @@ -1,136 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateProjectVariant2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groupIds")] - public global::System.Collections.Generic.IList? GroupIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isRestricted")] - public bool? IsRestricted { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isMember")] - public bool? IsMember { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("archivedAt")] - public int? ArchivedAt { get; set; } - - /// - /// Whether automatic todo suggestions from project activity are enabled. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("todoGenerationEnabled")] - public bool? TodoGenerationEnabled { get; set; } - - /// - /// Unix timestamp (ms) of the last automatic todo suggestion scan, if any. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastTodoAnalysisAt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - public global::System.DateTimeOffset? LastTodoAnalysisAt { get; set; } - - /// - /// Scoped path to the frame file pinned as the Pod banner (e.g. project/banner.html). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pinnedFramePath")] - public string? PinnedFramePath { get; set; } - - /// - /// Frames promoted as custom Pod tabs (shared for all members). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("frameTabs")] - public global::System.Collections.Generic.IList? FrameTabs { get; set; } - - /// - /// Interleaved system tab ids and frame paths before Settings. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tabsOrder")] - public global::System.Collections.Generic.IList? TabsOrder { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// Whether automatic todo suggestions from project activity are enabled. - /// - /// - /// Unix timestamp (ms) of the last automatic todo suggestion scan, if any. - /// - /// - /// Scoped path to the frame file pinned as the Pod banner (e.g. project/banner.html). - /// - /// - /// Frames promoted as custom Pod tabs (shared for all members). - /// - /// - /// Interleaved system tab ids and frame paths before Settings. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateProjectVariant2( - global::System.Collections.Generic.IList? groupIds, - bool? isRestricted, - string? description, - bool? isMember, - int? archivedAt, - bool? todoGenerationEnabled, - global::System.DateTimeOffset? lastTodoAnalysisAt, - string? pinnedFramePath, - global::System.Collections.Generic.IList? frameTabs, - global::System.Collections.Generic.IList? tabsOrder) - { - this.GroupIds = groupIds; - this.IsRestricted = isRestricted; - this.Description = description; - this.IsMember = isMember; - this.ArchivedAt = archivedAt; - this.TodoGenerationEnabled = todoGenerationEnabled; - this.LastTodoAnalysisAt = lastTodoAnalysisAt; - this.PinnedFramePath = pinnedFramePath; - this.FrameTabs = frameTabs; - this.TabsOrder = tabsOrder; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateProjectVariant2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.Json.g.cs deleted file mode 100644 index 6817cfd..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateProjectVariant2FrameTab - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateProjectVariant2FrameTab? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateProjectVariant2FrameTab), - jsonSerializerContext) as global::Dust.PrivateProjectVariant2FrameTab; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateProjectVariant2FrameTab? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateProjectVariant2FrameTab? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateProjectVariant2FrameTab), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateProjectVariant2FrameTab; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.g.cs deleted file mode 100644 index b0fbc41..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateProjectVariant2FrameTab.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateProjectVariant2FrameTab - { - /// - /// Canonical scoped path to the frame file in the Pod filesystem. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Path { get; set; } - - /// - /// Display title for the tab. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// Action icon name (e.g. ActionDashboardIcon). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("icon")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Icon { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Canonical scoped path to the frame file in the Pod filesystem. - /// - /// - /// Display title for the tab. - /// - /// - /// Action icon name (e.g. ActionDashboardIcon). - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateProjectVariant2FrameTab( - string path, - string title, - string icon) - { - this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.Icon = icon ?? throw new global::System.ArgumentNullException(nameof(icon)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateProjectVariant2FrameTab() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateReaction.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateReaction.Json.g.cs deleted file mode 100644 index b6629e6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateReaction.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateReaction - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateReaction? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateReaction), - jsonSerializerContext) as global::Dust.PrivateReaction; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateReaction? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateReaction? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateReaction), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateReaction; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateReaction.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateReaction.g.cs deleted file mode 100644 index 6e19801..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateReaction.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A reaction on a message. - /// - public sealed partial class PrivateReaction - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emoji")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Emoji { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("users")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Users { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateReaction( - string emoji, - global::System.Collections.Generic.IList users) - { - this.Emoji = emoji ?? throw new global::System.ArgumentNullException(nameof(emoji)); - this.Users = users ?? throw new global::System.ArgumentNullException(nameof(users)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateReaction() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.Json.g.cs deleted file mode 100644 index 6fa03a7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateReactionUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateReactionUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateReactionUser), - jsonSerializerContext) as global::Dust.PrivateReactionUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateReactionUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateReactionUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateReactionUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateReactionUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.g.cs deleted file mode 100644 index 6bd59fb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateReactionUser.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateReactionUser - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - public string? UserId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - public string? Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateReactionUser( - string? userId, - string? username, - string? fullName) - { - this.UserId = userId; - this.Username = username; - this.FullName = fullName; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateReactionUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.Json.g.cs deleted file mode 100644 index 8410e13..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateRichMentionWithStatus - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateRichMentionWithStatus? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateRichMentionWithStatus), - jsonSerializerContext) as global::Dust.PrivateRichMentionWithStatus; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateRichMentionWithStatus? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateRichMentionWithStatus? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateRichMentionWithStatus), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateRichMentionWithStatus; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.g.cs deleted file mode 100644 index 78f5a03..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatus.g.cs +++ /dev/null @@ -1,116 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A rich mention with approval status, used in message responses. - /// - public sealed partial class PrivateRichMentionWithStatus - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateRichMentionWithStatusTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateRichMentionWithStatusType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pictureUrl")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userFavorite")] - public bool? UserFavorite { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dismissed")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Dismissed { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateRichMentionWithStatusStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateRichMentionWithStatusStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateRichMentionWithStatus( - string id, - global::Dust.PrivateRichMentionWithStatusType type, - string label, - string pictureUrl, - string description, - bool dismissed, - global::Dust.PrivateRichMentionWithStatusStatus status, - bool? userFavorite) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Type = type; - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.PictureUrl = pictureUrl ?? throw new global::System.ArgumentNullException(nameof(pictureUrl)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.UserFavorite = userFavorite; - this.Dismissed = dismissed; - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateRichMentionWithStatus() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusStatus.g.cs deleted file mode 100644 index d6fc6de..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusStatus.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateRichMentionWithStatusStatus - { - /// - /// - /// - AgentRestrictedBySpaceUsage, - /// - /// - /// - Approved, - /// - /// - /// - PendingConversationAccess, - /// - /// - /// - PendingProjectMembership, - /// - /// - /// - Rejected, - /// - /// - /// - UserRestrictedByConversationAccess, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateRichMentionWithStatusStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateRichMentionWithStatusStatus value) - { - return value switch - { - PrivateRichMentionWithStatusStatus.AgentRestrictedBySpaceUsage => "agent_restricted_by_space_usage", - PrivateRichMentionWithStatusStatus.Approved => "approved", - PrivateRichMentionWithStatusStatus.PendingConversationAccess => "pending_conversation_access", - PrivateRichMentionWithStatusStatus.PendingProjectMembership => "pending_project_membership", - PrivateRichMentionWithStatusStatus.Rejected => "rejected", - PrivateRichMentionWithStatusStatus.UserRestrictedByConversationAccess => "user_restricted_by_conversation_access", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateRichMentionWithStatusStatus? ToEnum(string value) - { - return value switch - { - "agent_restricted_by_space_usage" => PrivateRichMentionWithStatusStatus.AgentRestrictedBySpaceUsage, - "approved" => PrivateRichMentionWithStatusStatus.Approved, - "pending_conversation_access" => PrivateRichMentionWithStatusStatus.PendingConversationAccess, - "pending_project_membership" => PrivateRichMentionWithStatusStatus.PendingProjectMembership, - "rejected" => PrivateRichMentionWithStatusStatus.Rejected, - "user_restricted_by_conversation_access" => PrivateRichMentionWithStatusStatus.UserRestrictedByConversationAccess, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusType.g.cs deleted file mode 100644 index ebf4834..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateRichMentionWithStatusType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateRichMentionWithStatusType - { - /// - /// - /// - Agent, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateRichMentionWithStatusTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateRichMentionWithStatusType value) - { - return value switch - { - PrivateRichMentionWithStatusType.Agent => "agent", - PrivateRichMentionWithStatusType.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateRichMentionWithStatusType? ToEnum(string value) - { - return value switch - { - "agent" => PrivateRichMentionWithStatusType.Agent, - "user" => PrivateRichMentionWithStatusType.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.Json.g.cs deleted file mode 100644 index 53ec772..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationCreatedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationCreatedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationCreatedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.g.cs deleted file mode 100644 index 9dc5356..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEvent.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateSandboxFunctionInvocationCreatedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventTypeJsonConverter))] - public global::Dust.PrivateSandboxFunctionInvocationCreatedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("invocation")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation Invocation { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationCreatedEvent( - int created, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation invocation, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventType type) - { - this.Type = type; - this.Created = created; - this.Invocation = invocation ?? throw new global::System.ArgumentNullException(nameof(invocation)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationCreatedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.Json.g.cs deleted file mode 100644 index d1ad6a4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationCreatedEventInvocation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocation; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.g.cs deleted file mode 100644 index 65537f1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocation.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateSandboxFunctionInvocationCreatedEventInvocation - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FunctionId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSandboxFunctionInvocationCreatedEventInvocationStatusJsonConverter))] - public global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTime CreatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationCreatedEventInvocation( - string sId, - string functionId, - global::System.DateTime createdAt, - global::Dust.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus status) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.FunctionId = functionId ?? throw new global::System.ArgumentNullException(nameof(functionId)); - this.Status = status; - this.CreatedAt = createdAt; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationCreatedEventInvocation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs deleted file mode 100644 index fb53f97..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSandboxFunctionInvocationCreatedEventInvocationStatus - { - /// - /// - /// - Created, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSandboxFunctionInvocationCreatedEventInvocationStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSandboxFunctionInvocationCreatedEventInvocationStatus value) - { - return value switch - { - PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.Created => "created", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSandboxFunctionInvocationCreatedEventInvocationStatus? ToEnum(string value) - { - return value switch - { - "created" => PrivateSandboxFunctionInvocationCreatedEventInvocationStatus.Created, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventType.g.cs deleted file mode 100644 index 99266d4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationCreatedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSandboxFunctionInvocationCreatedEventType - { - /// - /// - /// - SandboxFunctionInvocationCreated, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSandboxFunctionInvocationCreatedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSandboxFunctionInvocationCreatedEventType value) - { - return value switch - { - PrivateSandboxFunctionInvocationCreatedEventType.SandboxFunctionInvocationCreated => "sandbox_function_invocation_created", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSandboxFunctionInvocationCreatedEventType? ToEnum(string value) - { - return value switch - { - "sandbox_function_invocation_created" => PrivateSandboxFunctionInvocationCreatedEventType.SandboxFunctionInvocationCreated, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.Json.g.cs deleted file mode 100644 index 2b0dce4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationErrorEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationErrorEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationErrorEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationErrorEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationErrorEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationErrorEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.g.cs deleted file mode 100644 index a0c69bb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEvent.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateSandboxFunctionInvocationErrorEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSandboxFunctionInvocationErrorEventTypeJsonConverter))] - public global::Dust.PrivateSandboxFunctionInvocationErrorEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("invocationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string InvocationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FunctionId { get; set; } - - /// - /// A structured error describing why the invocation failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateSandboxFunctionInvocationErrorEventError Error { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// A structured error describing why the invocation failed. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationErrorEvent( - int created, - string invocationId, - string functionId, - global::Dust.PrivateSandboxFunctionInvocationErrorEventError error, - global::Dust.PrivateSandboxFunctionInvocationErrorEventType type) - { - this.Type = type; - this.Created = created; - this.InvocationId = invocationId ?? throw new global::System.ArgumentNullException(nameof(invocationId)); - this.FunctionId = functionId ?? throw new global::System.ArgumentNullException(nameof(functionId)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationErrorEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.Json.g.cs deleted file mode 100644 index 0a1cee5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationErrorEventError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationErrorEventError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventError), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationErrorEventError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationErrorEventError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationErrorEventError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEventError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationErrorEventError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.g.cs deleted file mode 100644 index 8ad00f3..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventError.g.cs +++ /dev/null @@ -1,66 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A structured error describing why the invocation failed. - /// - public sealed partial class PrivateSandboxFunctionInvocationErrorEventError - { - /// - /// Whatever classified the failure, forwarded as-is (a runner code such as `threw` or `http_error`, or the `type` of the API error that failed the call). Open by design, branch on the codes you handle and treat the rest as generic failures. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public int? Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Whatever classified the failure, forwarded as-is (a runner code such as `threw` or `http_error`, or the `type` of the API error that failed the call). Open by design, branch on the codes you handle and treat the rest as generic failures. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationErrorEventError( - string code, - string message, - int? status) - { - this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationErrorEventError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventType.g.cs deleted file mode 100644 index a233de1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationErrorEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSandboxFunctionInvocationErrorEventType - { - /// - /// - /// - SandboxFunctionInvocationError, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSandboxFunctionInvocationErrorEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSandboxFunctionInvocationErrorEventType value) - { - return value switch - { - PrivateSandboxFunctionInvocationErrorEventType.SandboxFunctionInvocationError => "sandbox_function_invocation_error", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSandboxFunctionInvocationErrorEventType? ToEnum(string value) - { - return value switch - { - "sandbox_function_invocation_error" => PrivateSandboxFunctionInvocationErrorEventType.SandboxFunctionInvocationError, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.Json.g.cs deleted file mode 100644 index afb02ae..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct PrivateSandboxFunctionInvocationEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationEvent), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationEvent?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationEvent?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.g.cs deleted file mode 100644 index 703c30b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEvent.g.cs +++ /dev/null @@ -1,386 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Dust -{ - /// - /// Server-Sent Event for sandbox function invocation streaming. Discriminated on the `type` field. - /// - public readonly partial struct PrivateSandboxFunctionInvocationEvent : global::System.IEquatable - { - /// - /// - /// - public global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? Type { get; } - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? SandboxFunctionInvocationCreated { get; init; } -#else - public global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? SandboxFunctionInvocationCreated { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SandboxFunctionInvocationCreated))] -#endif - public bool IsSandboxFunctionInvocationCreated => SandboxFunctionInvocationCreated != null; - - /// - /// - /// - public bool TryPickSandboxFunctionInvocationCreated( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? value) - { - value = SandboxFunctionInvocationCreated; - return IsSandboxFunctionInvocationCreated; - } - - /// - /// - /// - public global::Dust.PrivateSandboxFunctionInvocationCreatedEvent PickSandboxFunctionInvocationCreated() => IsSandboxFunctionInvocationCreated - ? SandboxFunctionInvocationCreated! - : throw new global::System.InvalidOperationException($"Expected union variant 'SandboxFunctionInvocationCreated' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateSandboxFunctionInvocationResultEvent? SandboxFunctionInvocationResult { get; init; } -#else - public global::Dust.PrivateSandboxFunctionInvocationResultEvent? SandboxFunctionInvocationResult { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SandboxFunctionInvocationResult))] -#endif - public bool IsSandboxFunctionInvocationResult => SandboxFunctionInvocationResult != null; - - /// - /// - /// - public bool TryPickSandboxFunctionInvocationResult( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateSandboxFunctionInvocationResultEvent? value) - { - value = SandboxFunctionInvocationResult; - return IsSandboxFunctionInvocationResult; - } - - /// - /// - /// - public global::Dust.PrivateSandboxFunctionInvocationResultEvent PickSandboxFunctionInvocationResult() => IsSandboxFunctionInvocationResult - ? SandboxFunctionInvocationResult! - : throw new global::System.InvalidOperationException($"Expected union variant 'SandboxFunctionInvocationResult' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Dust.PrivateSandboxFunctionInvocationErrorEvent? SandboxFunctionInvocationError { get; init; } -#else - public global::Dust.PrivateSandboxFunctionInvocationErrorEvent? SandboxFunctionInvocationError { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SandboxFunctionInvocationError))] -#endif - public bool IsSandboxFunctionInvocationError => SandboxFunctionInvocationError != null; - - /// - /// - /// - public bool TryPickSandboxFunctionInvocationError( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Dust.PrivateSandboxFunctionInvocationErrorEvent? value) - { - value = SandboxFunctionInvocationError; - return IsSandboxFunctionInvocationError; - } - - /// - /// - /// - public global::Dust.PrivateSandboxFunctionInvocationErrorEvent PickSandboxFunctionInvocationError() => IsSandboxFunctionInvocationError - ? SandboxFunctionInvocationError! - : throw new global::System.InvalidOperationException($"Expected union variant 'SandboxFunctionInvocationError' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent value) => new PrivateSandboxFunctionInvocationEvent((global::Dust.PrivateSandboxFunctionInvocationCreatedEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateSandboxFunctionInvocationCreatedEvent?(PrivateSandboxFunctionInvocationEvent @this) => @this.SandboxFunctionInvocationCreated; - - /// - /// - /// - public PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? value) - { - SandboxFunctionInvocationCreated = value; - } - - /// - /// - /// - public static PrivateSandboxFunctionInvocationEvent FromSandboxFunctionInvocationCreated(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? value) => new PrivateSandboxFunctionInvocationEvent(value); - - /// - /// - /// - public static implicit operator PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationResultEvent value) => new PrivateSandboxFunctionInvocationEvent((global::Dust.PrivateSandboxFunctionInvocationResultEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateSandboxFunctionInvocationResultEvent?(PrivateSandboxFunctionInvocationEvent @this) => @this.SandboxFunctionInvocationResult; - - /// - /// - /// - public PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationResultEvent? value) - { - SandboxFunctionInvocationResult = value; - } - - /// - /// - /// - public static PrivateSandboxFunctionInvocationEvent FromSandboxFunctionInvocationResult(global::Dust.PrivateSandboxFunctionInvocationResultEvent? value) => new PrivateSandboxFunctionInvocationEvent(value); - - /// - /// - /// - public static implicit operator PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationErrorEvent value) => new PrivateSandboxFunctionInvocationEvent((global::Dust.PrivateSandboxFunctionInvocationErrorEvent?)value); - - /// - /// - /// - public static implicit operator global::Dust.PrivateSandboxFunctionInvocationErrorEvent?(PrivateSandboxFunctionInvocationEvent @this) => @this.SandboxFunctionInvocationError; - - /// - /// - /// - public PrivateSandboxFunctionInvocationEvent(global::Dust.PrivateSandboxFunctionInvocationErrorEvent? value) - { - SandboxFunctionInvocationError = value; - } - - /// - /// - /// - public static PrivateSandboxFunctionInvocationEvent FromSandboxFunctionInvocationError(global::Dust.PrivateSandboxFunctionInvocationErrorEvent? value) => new PrivateSandboxFunctionInvocationEvent(value); - - /// - /// - /// - public PrivateSandboxFunctionInvocationEvent( - global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? type, - global::Dust.PrivateSandboxFunctionInvocationCreatedEvent? sandboxFunctionInvocationCreated, - global::Dust.PrivateSandboxFunctionInvocationResultEvent? sandboxFunctionInvocationResult, - global::Dust.PrivateSandboxFunctionInvocationErrorEvent? sandboxFunctionInvocationError - ) - { - Type = type; - - SandboxFunctionInvocationCreated = sandboxFunctionInvocationCreated; - SandboxFunctionInvocationResult = sandboxFunctionInvocationResult; - SandboxFunctionInvocationError = sandboxFunctionInvocationError; - } - - /// - /// - /// - public object? Object => - SandboxFunctionInvocationError as object ?? - SandboxFunctionInvocationResult as object ?? - SandboxFunctionInvocationCreated as object - ; - - /// - /// - /// - public override string? ToString() => - SandboxFunctionInvocationCreated?.ToString() ?? - SandboxFunctionInvocationResult?.ToString() ?? - SandboxFunctionInvocationError?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsSandboxFunctionInvocationCreated && !IsSandboxFunctionInvocationResult && !IsSandboxFunctionInvocationError || !IsSandboxFunctionInvocationCreated && IsSandboxFunctionInvocationResult && !IsSandboxFunctionInvocationError || !IsSandboxFunctionInvocationCreated && !IsSandboxFunctionInvocationResult && IsSandboxFunctionInvocationError; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? sandboxFunctionInvocationCreated = null, - global::System.Func? sandboxFunctionInvocationResult = null, - global::System.Func? sandboxFunctionInvocationError = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSandboxFunctionInvocationCreated && sandboxFunctionInvocationCreated != null) - { - return sandboxFunctionInvocationCreated(SandboxFunctionInvocationCreated!); - } - else if (IsSandboxFunctionInvocationResult && sandboxFunctionInvocationResult != null) - { - return sandboxFunctionInvocationResult(SandboxFunctionInvocationResult!); - } - else if (IsSandboxFunctionInvocationError && sandboxFunctionInvocationError != null) - { - return sandboxFunctionInvocationError(SandboxFunctionInvocationError!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? sandboxFunctionInvocationCreated = null, - - global::System.Action? sandboxFunctionInvocationResult = null, - - global::System.Action? sandboxFunctionInvocationError = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSandboxFunctionInvocationCreated) - { - sandboxFunctionInvocationCreated?.Invoke(SandboxFunctionInvocationCreated!); - } - else if (IsSandboxFunctionInvocationResult) - { - sandboxFunctionInvocationResult?.Invoke(SandboxFunctionInvocationResult!); - } - else if (IsSandboxFunctionInvocationError) - { - sandboxFunctionInvocationError?.Invoke(SandboxFunctionInvocationError!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? sandboxFunctionInvocationCreated = null, - global::System.Action? sandboxFunctionInvocationResult = null, - global::System.Action? sandboxFunctionInvocationError = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsSandboxFunctionInvocationCreated) - { - sandboxFunctionInvocationCreated?.Invoke(SandboxFunctionInvocationCreated!); - } - else if (IsSandboxFunctionInvocationResult) - { - sandboxFunctionInvocationResult?.Invoke(SandboxFunctionInvocationResult!); - } - else if (IsSandboxFunctionInvocationError) - { - sandboxFunctionInvocationError?.Invoke(SandboxFunctionInvocationError!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - SandboxFunctionInvocationCreated, - typeof(global::Dust.PrivateSandboxFunctionInvocationCreatedEvent), - SandboxFunctionInvocationResult, - typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent), - SandboxFunctionInvocationError, - typeof(global::Dust.PrivateSandboxFunctionInvocationErrorEvent), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(PrivateSandboxFunctionInvocationEvent other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(SandboxFunctionInvocationCreated, other.SandboxFunctionInvocationCreated) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SandboxFunctionInvocationResult, other.SandboxFunctionInvocationResult) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(SandboxFunctionInvocationError, other.SandboxFunctionInvocationError) - ; - } - - /// - /// - /// - public static bool operator ==(PrivateSandboxFunctionInvocationEvent obj1, PrivateSandboxFunctionInvocationEvent obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(PrivateSandboxFunctionInvocationEvent obj1, PrivateSandboxFunctionInvocationEvent obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is PrivateSandboxFunctionInvocationEvent o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.Json.g.cs deleted file mode 100644 index d39b86a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationEventDiscriminator - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationEventDiscriminator; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.g.cs deleted file mode 100644 index b1425c5..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateSandboxFunctionInvocationEventDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSandboxFunctionInvocationEventDiscriminatorTypeJsonConverter))] - public global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationEventDiscriminator( - global::Dust.PrivateSandboxFunctionInvocationEventDiscriminatorType? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationEventDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs deleted file mode 100644 index 08d4b99..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationEventDiscriminatorType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSandboxFunctionInvocationEventDiscriminatorType - { - /// - /// - /// - SandboxFunctionInvocationCreated, - /// - /// - /// - SandboxFunctionInvocationError, - /// - /// - /// - SandboxFunctionInvocationResult, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSandboxFunctionInvocationEventDiscriminatorTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSandboxFunctionInvocationEventDiscriminatorType value) - { - return value switch - { - PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationCreated => "sandbox_function_invocation_created", - PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationError => "sandbox_function_invocation_error", - PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationResult => "sandbox_function_invocation_result", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSandboxFunctionInvocationEventDiscriminatorType? ToEnum(string value) - { - return value switch - { - "sandbox_function_invocation_created" => PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationCreated, - "sandbox_function_invocation_error" => PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationError, - "sandbox_function_invocation_result" => PrivateSandboxFunctionInvocationEventDiscriminatorType.SandboxFunctionInvocationResult, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.Json.g.cs deleted file mode 100644 index 1b14d54..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationResultEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationResultEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationResultEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationResultEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationResultEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationResultEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationResultEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.g.cs deleted file mode 100644 index 75a56bf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEvent.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateSandboxFunctionInvocationResultEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSandboxFunctionInvocationResultEventTypeJsonConverter))] - public global::Dust.PrivateSandboxFunctionInvocationResultEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("invocationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string InvocationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FunctionId { get; set; } - - /// - /// Parsed result validated against the sandbox function output schema. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Result { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// Parsed result validated against the sandbox function output schema. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSandboxFunctionInvocationResultEvent( - int created, - string invocationId, - string functionId, - object result, - global::Dust.PrivateSandboxFunctionInvocationResultEventType type) - { - this.Type = type; - this.Created = created; - this.InvocationId = invocationId ?? throw new global::System.ArgumentNullException(nameof(invocationId)); - this.FunctionId = functionId ?? throw new global::System.ArgumentNullException(nameof(functionId)); - this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSandboxFunctionInvocationResultEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.Json.g.cs deleted file mode 100644 index 1ef6d50..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSandboxFunctionInvocationResultEventResult - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationResultEventResult? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventResult), - jsonSerializerContext) as global::Dust.PrivateSandboxFunctionInvocationResultEventResult; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSandboxFunctionInvocationResultEventResult? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSandboxFunctionInvocationResultEventResult? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSandboxFunctionInvocationResultEventResult), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSandboxFunctionInvocationResultEventResult; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.g.cs deleted file mode 100644 index 46eb811..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventResult.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Parsed result validated against the sandbox function output schema. - /// - public sealed partial class PrivateSandboxFunctionInvocationResultEventResult - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventType.g.cs deleted file mode 100644 index 65fd904..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSandboxFunctionInvocationResultEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSandboxFunctionInvocationResultEventType - { - /// - /// - /// - SandboxFunctionInvocationResult, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSandboxFunctionInvocationResultEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSandboxFunctionInvocationResultEventType value) - { - return value switch - { - PrivateSandboxFunctionInvocationResultEventType.SandboxFunctionInvocationResult => "sandbox_function_invocation_result", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSandboxFunctionInvocationResultEventType? ToEnum(string value) - { - return value switch - { - "sandbox_function_invocation_result" => PrivateSandboxFunctionInvocationResultEventType.SandboxFunctionInvocationResult, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSpace.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSpace.Json.g.cs deleted file mode 100644 index 0bcbb3c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSpace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateSpace - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateSpace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateSpace), - jsonSerializerContext) as global::Dust.PrivateSpace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateSpace? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateSpace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateSpace), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateSpace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSpace.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSpace.g.cs deleted file mode 100644 index 01197cf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSpace.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A space in the workspace. - /// - public sealed partial class PrivateSpace - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("kind")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateSpaceKindJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateSpaceKind Kind { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - public int? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] - public int? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateSpace( - string sId, - string name, - global::Dust.PrivateSpaceKind kind, - int? createdAt, - int? updatedAt) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Kind = kind; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateSpace() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateSpaceKind.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateSpaceKind.g.cs deleted file mode 100644 index f1858a7..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateSpaceKind.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateSpaceKind - { - /// - /// - /// - Conversations, - /// - /// - /// - Global, - /// - /// - /// - Project, - /// - /// - /// - Regular, - /// - /// - /// - System, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateSpaceKindExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateSpaceKind value) - { - return value switch - { - PrivateSpaceKind.Conversations => "conversations", - PrivateSpaceKind.Global => "global", - PrivateSpaceKind.Project => "project", - PrivateSpaceKind.Regular => "regular", - PrivateSpaceKind.System => "system", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateSpaceKind? ToEnum(string value) - { - return value switch - { - "conversations" => PrivateSpaceKind.Conversations, - "global" => PrivateSpaceKind.Global, - "project" => PrivateSpaceKind.Project, - "regular" => PrivateSpaceKind.Regular, - "system" => PrivateSpaceKind.System, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.Json.g.cs deleted file mode 100644 index d67b1bc..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolApproveExecutionEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolApproveExecutionEvent), - jsonSerializerContext) as global::Dust.PrivateToolApproveExecutionEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolApproveExecutionEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolApproveExecutionEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolApproveExecutionEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.g.cs deleted file mode 100644 index c525ea2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEvent.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Sent when a tool requires user approval before execution. - /// - public sealed partial class PrivateToolApproveExecutionEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolApproveExecutionEventTypeJsonConverter))] - public global::Dust.PrivateToolApproveExecutionEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ActionId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Inputs { get; set; } - - /// - /// Risk level of the tool execution - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stake")] - public string? Stake { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isLastBlockingEventForStep")] - public bool? IsLastBlockingEventForStep { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Risk level of the tool execution - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolApproveExecutionEvent( - int created, - string conversationId, - string messageId, - string actionId, - string configurationId, - object inputs, - global::Dust.PrivateToolApproveExecutionEventType type, - string? stake, - bool? isLastBlockingEventForStep, - object? metadata, - int? step) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.ActionId = actionId ?? throw new global::System.ArgumentNullException(nameof(actionId)); - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); - this.Stake = stake; - this.IsLastBlockingEventForStep = isLastBlockingEventForStep; - this.Metadata = metadata; - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolApproveExecutionEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.Json.g.cs deleted file mode 100644 index 20a3844..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolApproveExecutionEventInputs - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEventInputs? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolApproveExecutionEventInputs), - jsonSerializerContext) as global::Dust.PrivateToolApproveExecutionEventInputs; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEventInputs? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolApproveExecutionEventInputs? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolApproveExecutionEventInputs), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolApproveExecutionEventInputs; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.g.cs deleted file mode 100644 index 176da76..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventInputs.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolApproveExecutionEventInputs - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.Json.g.cs deleted file mode 100644 index 12674d8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolApproveExecutionEventMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEventMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolApproveExecutionEventMetadata), - jsonSerializerContext) as global::Dust.PrivateToolApproveExecutionEventMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolApproveExecutionEventMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolApproveExecutionEventMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolApproveExecutionEventMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolApproveExecutionEventMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.g.cs deleted file mode 100644 index 0ccbace..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolApproveExecutionEventMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventType.g.cs deleted file mode 100644 index d5b716f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolApproveExecutionEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolApproveExecutionEventType - { - /// - /// - /// - ToolApproveExecution, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolApproveExecutionEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolApproveExecutionEventType value) - { - return value switch - { - PrivateToolApproveExecutionEventType.ToolApproveExecution => "tool_approve_execution", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolApproveExecutionEventType? ToEnum(string value) - { - return value switch - { - "tool_approve_execution" => PrivateToolApproveExecutionEventType.ToolApproveExecution, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.Json.g.cs deleted file mode 100644 index 771e326..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolCallStartedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolCallStartedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolCallStartedEvent), - jsonSerializerContext) as global::Dust.PrivateToolCallStartedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolCallStartedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolCallStartedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolCallStartedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolCallStartedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.g.cs deleted file mode 100644 index e51e841..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEvent.g.cs +++ /dev/null @@ -1,112 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolCallStartedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolCallStartedEventTypeJsonConverter))] - public global::Dust.PrivateToolCallStartedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolCallId")] - public string? ToolCallId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolCallIndex")] - public int? ToolCallIndex { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ToolName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolCallStartedEvent( - int created, - string configurationId, - string messageId, - string toolName, - global::Dust.PrivateToolCallStartedEventType type, - string? toolCallId, - int? toolCallIndex, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.ToolCallId = toolCallId; - this.ToolCallIndex = toolCallIndex; - this.ToolName = toolName ?? throw new global::System.ArgumentNullException(nameof(toolName)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolCallStartedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEventType.g.cs deleted file mode 100644 index 61f8f60..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolCallStartedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolCallStartedEventType - { - /// - /// - /// - ToolCallStarted, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolCallStartedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolCallStartedEventType value) - { - return value switch - { - PrivateToolCallStartedEventType.ToolCallStarted => "tool_call_started", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolCallStartedEventType? ToEnum(string value) - { - return value switch - { - "tool_call_started" => PrivateToolCallStartedEventType.ToolCallStarted, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.Json.g.cs deleted file mode 100644 index c4f2656..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolErrorEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolErrorEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolErrorEvent), - jsonSerializerContext) as global::Dust.PrivateToolErrorEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolErrorEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolErrorEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolErrorEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolErrorEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.g.cs deleted file mode 100644 index c5d4074..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEvent.g.cs +++ /dev/null @@ -1,114 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolErrorEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolErrorEventTypeJsonConverter))] - public global::Dust.PrivateToolErrorEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateToolErrorEventError Error { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("isLastBlockingEventForStep")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsLastBlockingEventForStep { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolErrorEvent( - int created, - string configurationId, - string messageId, - string conversationId, - global::Dust.PrivateToolErrorEventError error, - bool isLastBlockingEventForStep, - global::Dust.PrivateToolErrorEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); - this.IsLastBlockingEventForStep = isLastBlockingEventForStep; - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolErrorEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.Json.g.cs deleted file mode 100644 index 8b9da2a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolErrorEventError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolErrorEventError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolErrorEventError), - jsonSerializerContext) as global::Dust.PrivateToolErrorEventError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolErrorEventError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolErrorEventError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolErrorEventError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolErrorEventError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.g.cs deleted file mode 100644 index 268474b..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolErrorEventError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolErrorEventError( - string? code, - string? message) - { - this.Code = code; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolErrorEventError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventType.g.cs deleted file mode 100644 index 7188086..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolErrorEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolErrorEventType - { - /// - /// - /// - ToolError, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolErrorEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolErrorEventType value) - { - return value switch - { - PrivateToolErrorEventType.ToolError => "tool_error", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolErrorEventType? ToEnum(string value) - { - return value switch - { - "tool_error" => PrivateToolErrorEventType.ToolError, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.Json.g.cs deleted file mode 100644 index d78c97c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolFileAuthRequiredEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolFileAuthRequiredEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolFileAuthRequiredEvent), - jsonSerializerContext) as global::Dust.PrivateToolFileAuthRequiredEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolFileAuthRequiredEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolFileAuthRequiredEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolFileAuthRequiredEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolFileAuthRequiredEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.g.cs deleted file mode 100644 index 5a8875f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEvent.g.cs +++ /dev/null @@ -1,114 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Sent when a tool requires file access authorization (e.g., Google Drive). - /// - public sealed partial class PrivateToolFileAuthRequiredEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolFileAuthRequiredEventTypeJsonConverter))] - public global::Dust.PrivateToolFileAuthRequiredEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ActionId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileAuthError")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateToolFileAuthRequiredEventFileAuthError FileAuthError { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolFileAuthRequiredEvent( - int created, - string conversationId, - string messageId, - string actionId, - string configurationId, - global::Dust.PrivateToolFileAuthRequiredEventFileAuthError fileAuthError, - global::Dust.PrivateToolFileAuthRequiredEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.ActionId = actionId ?? throw new global::System.ArgumentNullException(nameof(actionId)); - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.FileAuthError = fileAuthError ?? throw new global::System.ArgumentNullException(nameof(fileAuthError)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolFileAuthRequiredEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.Json.g.cs deleted file mode 100644 index dd57f59..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolFileAuthRequiredEventFileAuthError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolFileAuthRequiredEventFileAuthError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolFileAuthRequiredEventFileAuthError), - jsonSerializerContext) as global::Dust.PrivateToolFileAuthRequiredEventFileAuthError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolFileAuthRequiredEventFileAuthError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolFileAuthRequiredEventFileAuthError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolFileAuthRequiredEventFileAuthError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolFileAuthRequiredEventFileAuthError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.g.cs deleted file mode 100644 index 2bd8473..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventFileAuthError.g.cs +++ /dev/null @@ -1,89 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolFileAuthRequiredEventFileAuthError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileId")] - public string? FileId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] - public string? FileName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("connectionId")] - public string? ConnectionId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolFileAuthRequiredEventFileAuthError( - string? fileId, - string? fileName, - string? connectionId, - string? mimeType, - string? toolName, - string? message) - { - this.FileId = fileId; - this.FileName = fileName; - this.ConnectionId = connectionId; - this.MimeType = mimeType; - this.ToolName = toolName; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolFileAuthRequiredEventFileAuthError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventType.g.cs deleted file mode 100644 index 5199dc9..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolFileAuthRequiredEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolFileAuthRequiredEventType - { - /// - /// - /// - ToolFileAuthRequired, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolFileAuthRequiredEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolFileAuthRequiredEventType value) - { - return value switch - { - PrivateToolFileAuthRequiredEventType.ToolFileAuthRequired => "tool_file_auth_required", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolFileAuthRequiredEventType? ToEnum(string value) - { - return value switch - { - "tool_file_auth_required" => PrivateToolFileAuthRequiredEventType.ToolFileAuthRequired, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.Json.g.cs deleted file mode 100644 index 8d58af8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolNotificationEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolNotificationEvent), - jsonSerializerContext) as global::Dust.PrivateToolNotificationEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolNotificationEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolNotificationEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolNotificationEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.g.cs deleted file mode 100644 index 32f8aac..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEvent.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Progress notification from a running tool. - /// - public sealed partial class PrivateToolNotificationEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolNotificationEventTypeJsonConverter))] - public global::Dust.PrivateToolNotificationEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// The MCP action producing the notification - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Action { get; set; } - - /// - /// Progress notification content - /// - [global::System.Text.Json.Serialization.JsonPropertyName("notification")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Notification { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// The MCP action producing the notification - /// - /// - /// Progress notification content - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolNotificationEvent( - int created, - string configurationId, - string conversationId, - string messageId, - object action, - object notification, - global::Dust.PrivateToolNotificationEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Action = action ?? throw new global::System.ArgumentNullException(nameof(action)); - this.Notification = notification ?? throw new global::System.ArgumentNullException(nameof(notification)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolNotificationEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.Json.g.cs deleted file mode 100644 index be76293..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolNotificationEventAction - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEventAction? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolNotificationEventAction), - jsonSerializerContext) as global::Dust.PrivateToolNotificationEventAction; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEventAction? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolNotificationEventAction? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolNotificationEventAction), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolNotificationEventAction; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.g.cs deleted file mode 100644 index e38ae20..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventAction.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// The MCP action producing the notification - /// - public sealed partial class PrivateToolNotificationEventAction - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.Json.g.cs deleted file mode 100644 index 415a088..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolNotificationEventNotification - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEventNotification? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolNotificationEventNotification), - jsonSerializerContext) as global::Dust.PrivateToolNotificationEventNotification; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolNotificationEventNotification? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolNotificationEventNotification? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolNotificationEventNotification), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolNotificationEventNotification; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.g.cs deleted file mode 100644 index f7e07f0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventNotification.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Progress notification content - /// - public sealed partial class PrivateToolNotificationEventNotification - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventType.g.cs deleted file mode 100644 index 92a9453..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolNotificationEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolNotificationEventType - { - /// - /// - /// - ToolNotification, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolNotificationEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolNotificationEventType value) - { - return value switch - { - PrivateToolNotificationEventType.ToolNotification => "tool_notification", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolNotificationEventType? ToEnum(string value) - { - return value switch - { - "tool_notification" => PrivateToolNotificationEventType.ToolNotification, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.Json.g.cs deleted file mode 100644 index 269b374..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolParamsEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolParamsEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolParamsEvent), - jsonSerializerContext) as global::Dust.PrivateToolParamsEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolParamsEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolParamsEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolParamsEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolParamsEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.g.cs deleted file mode 100644 index 525a78c..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEvent.g.cs +++ /dev/null @@ -1,105 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolParamsEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolParamsEventTypeJsonConverter))] - public global::Dust.PrivateToolParamsEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// The MCP action with its parameters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Action { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("runIds")] - public global::System.Collections.Generic.IList? RunIds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// The MCP action with its parameters - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolParamsEvent( - int created, - string configurationId, - string messageId, - object action, - global::Dust.PrivateToolParamsEventType type, - global::System.Collections.Generic.IList? runIds, - int? step) - { - this.Type = type; - this.Created = created; - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Action = action ?? throw new global::System.ArgumentNullException(nameof(action)); - this.RunIds = runIds; - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolParamsEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.Json.g.cs deleted file mode 100644 index ce5a1e8..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolParamsEventAction - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolParamsEventAction? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolParamsEventAction), - jsonSerializerContext) as global::Dust.PrivateToolParamsEventAction; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolParamsEventAction? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolParamsEventAction? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolParamsEventAction), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolParamsEventAction; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.g.cs deleted file mode 100644 index 650f4aa..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventAction.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// The MCP action with its parameters - /// - public sealed partial class PrivateToolParamsEventAction - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventType.g.cs deleted file mode 100644 index 87ff2da..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolParamsEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolParamsEventType - { - /// - /// - /// - ToolParams, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolParamsEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolParamsEventType value) - { - return value switch - { - PrivateToolParamsEventType.ToolParams => "tool_params", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolParamsEventType? ToEnum(string value) - { - return value switch - { - "tool_params" => PrivateToolParamsEventType.ToolParams, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.Json.g.cs deleted file mode 100644 index 92a6816..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolPersonalAuthRequiredEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolPersonalAuthRequiredEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent), - jsonSerializerContext) as global::Dust.PrivateToolPersonalAuthRequiredEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolPersonalAuthRequiredEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolPersonalAuthRequiredEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolPersonalAuthRequiredEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolPersonalAuthRequiredEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.g.cs deleted file mode 100644 index 525a308..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEvent.g.cs +++ /dev/null @@ -1,114 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Sent when a tool requires personal OAuth authentication. - /// - public sealed partial class PrivateToolPersonalAuthRequiredEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateToolPersonalAuthRequiredEventTypeJsonConverter))] - public global::Dust.PrivateToolPersonalAuthRequiredEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("actionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ActionId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("configurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("authError")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateToolPersonalAuthRequiredEventAuthError AuthError { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolPersonalAuthRequiredEvent( - int created, - string conversationId, - string messageId, - string actionId, - string configurationId, - global::Dust.PrivateToolPersonalAuthRequiredEventAuthError authError, - global::Dust.PrivateToolPersonalAuthRequiredEventType type, - int? step) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.ActionId = actionId ?? throw new global::System.ArgumentNullException(nameof(actionId)); - this.ConfigurationId = configurationId ?? throw new global::System.ArgumentNullException(nameof(configurationId)); - this.AuthError = authError ?? throw new global::System.ArgumentNullException(nameof(authError)); - this.Step = step; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolPersonalAuthRequiredEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.Json.g.cs deleted file mode 100644 index 6d3b79e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateToolPersonalAuthRequiredEventAuthError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateToolPersonalAuthRequiredEventAuthError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateToolPersonalAuthRequiredEventAuthError), - jsonSerializerContext) as global::Dust.PrivateToolPersonalAuthRequiredEventAuthError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateToolPersonalAuthRequiredEventAuthError? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateToolPersonalAuthRequiredEventAuthError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateToolPersonalAuthRequiredEventAuthError), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateToolPersonalAuthRequiredEventAuthError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.g.cs deleted file mode 100644 index 48d3b4a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventAuthError.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateToolPersonalAuthRequiredEventAuthError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mcpServerId")] - public string? McpServerId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scope")] - public string? Scope { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateToolPersonalAuthRequiredEventAuthError( - string? mcpServerId, - string? provider, - string? scope, - string? toolName, - string? message) - { - this.McpServerId = mcpServerId; - this.Provider = provider; - this.Scope = scope; - this.ToolName = toolName; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateToolPersonalAuthRequiredEventAuthError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventType.g.cs deleted file mode 100644 index c1379d4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateToolPersonalAuthRequiredEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateToolPersonalAuthRequiredEventType - { - /// - /// - /// - ToolPersonalAuthRequired, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateToolPersonalAuthRequiredEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateToolPersonalAuthRequiredEventType value) - { - return value switch - { - PrivateToolPersonalAuthRequiredEventType.ToolPersonalAuthRequired => "tool_personal_auth_required", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateToolPersonalAuthRequiredEventType? ToEnum(string value) - { - return value switch - { - "tool_personal_auth_required" => PrivateToolPersonalAuthRequiredEventType.ToolPersonalAuthRequired, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUser.Json.g.cs deleted file mode 100644 index 4c8fd90..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateUser), - jsonSerializerContext) as global::Dust.PrivateUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUser.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUser.g.cs deleted file mode 100644 index 532e755..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUser.g.cs +++ /dev/null @@ -1,196 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Authenticated user with their workspaces and subscriber hash. - /// - public sealed partial class PrivateUser - { - /// - /// Unique string identifier for the user - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// Numeric model identifier - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// Unix timestamp of user creation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.UnixTimestampJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.DateTimeOffset CreatedAt { get; set; } - - /// - /// Authentication provider - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateUserProviderJsonConverter))] - public global::Dust.PrivateUserProvider? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("firstName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FirstName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastName")] - public string? LastName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FullName { get; set; } - - /// - /// URL of the user's profile image - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public string? Image { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("lastLoginAt")] - public int? LastLoginAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("workspaces")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Workspaces { get; set; } - - /// - /// sId of the currently selected workspace - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedWorkspace")] - public string? SelectedWorkspace { get; set; } - - /// - /// How the user joined (e.g. invitation, provisioned) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("origin")] - public string? Origin { get; set; } - - /// - /// Hash used for Intercom identity verification - /// - [global::System.Text.Json.Serialization.JsonPropertyName("subscriberHash")] - public string? SubscriberHash { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Unique string identifier for the user - /// - /// - /// Numeric model identifier - /// - /// - /// Unix timestamp of user creation - /// - /// - /// - /// - /// - /// - /// - /// Authentication provider - /// - /// - /// - /// URL of the user's profile image - /// - /// - /// - /// sId of the currently selected workspace - /// - /// - /// How the user joined (e.g. invitation, provisioned) - /// - /// - /// Hash used for Intercom identity verification - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateUser( - string sId, - int id, - global::System.DateTimeOffset createdAt, - string username, - string email, - string firstName, - string fullName, - global::System.Collections.Generic.IList workspaces, - global::Dust.PrivateUserProvider? provider, - string? lastName, - string? image, - int? lastLoginAt, - string? selectedWorkspace, - string? origin, - string? subscriberHash) - { - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Id = id; - this.CreatedAt = createdAt; - this.Provider = provider; - this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); - this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email)); - this.FirstName = firstName ?? throw new global::System.ArgumentNullException(nameof(firstName)); - this.LastName = lastName; - this.FullName = fullName ?? throw new global::System.ArgumentNullException(nameof(fullName)); - this.Image = image; - this.LastLoginAt = lastLoginAt; - this.Workspaces = workspaces ?? throw new global::System.ArgumentNullException(nameof(workspaces)); - this.SelectedWorkspace = selectedWorkspace; - this.Origin = origin; - this.SubscriberHash = subscriberHash; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.Json.g.cs deleted file mode 100644 index ebe7c68..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateUserMessage - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateUserMessage), - jsonSerializerContext) as global::Dust.PrivateUserMessage; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessage? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateUserMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateUserMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateUserMessage; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.g.cs deleted file mode 100644 index 5e188e2..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessage.g.cs +++ /dev/null @@ -1,174 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A user message in a conversation. - /// - public sealed partial class PrivateUserMessage - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public int? Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateUserMessageTypeJsonConverter))] - public global::Dust.PrivateUserMessageType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateUserMessageVisibilityJsonConverter))] - public global::Dust.PrivateUserMessageVisibility? Visibility { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Version { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Rank { get; set; } - - /// - /// Legacy, always null. Branches were removed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("branchId")] - public string? BranchId { get; set; } - - /// - /// The user who sent the message - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user")] - public global::Dust.PrivateUserMessageUser? User { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mentions")] - public global::System.Collections.Generic.IList? Mentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("richMentions")] - public global::System.Collections.Generic.IList? RichMentions { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Content { get; set; } - - /// - /// Context metadata for a user message. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("context")] - public global::Dust.PrivateUserMessageContext? Context { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reactions")] - public global::System.Collections.Generic.IList? Reactions { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Legacy, always null. Branches were removed. - /// - /// - /// The user who sent the message - /// - /// - /// - /// - /// Context metadata for a user message. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateUserMessage( - string sId, - int created, - int version, - int rank, - string content, - int? id, - global::Dust.PrivateUserMessageType type, - global::Dust.PrivateUserMessageVisibility? visibility, - string? branchId, - global::Dust.PrivateUserMessageUser? user, - global::System.Collections.Generic.IList? mentions, - global::System.Collections.Generic.IList? richMentions, - global::Dust.PrivateUserMessageContext? context, - global::System.Collections.Generic.IList? reactions) - { - this.Id = id; - this.Type = type; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Created = created; - this.Visibility = visibility; - this.Version = version; - this.Rank = rank; - this.BranchId = branchId; - this.User = user; - this.Mentions = mentions; - this.RichMentions = richMentions; - this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); - this.Context = context; - this.Reactions = reactions; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateUserMessage() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.Json.g.cs deleted file mode 100644 index ff6e503..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateUserMessageContext - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageContext? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateUserMessageContext), - jsonSerializerContext) as global::Dust.PrivateUserMessageContext; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageContext? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateUserMessageContext? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateUserMessageContext), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateUserMessageContext; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.g.cs deleted file mode 100644 index 74deaf1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContext.g.cs +++ /dev/null @@ -1,102 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Context metadata for a user message. - /// - public sealed partial class PrivateUserMessageContext - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("email")] - public string? Email { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("profilePictureUrl")] - public string? ProfilePictureUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Timezone { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("origin")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateUserMessageContextOriginJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateUserMessageContextOrigin Origin { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("selectedSpaceIds")] - public global::System.Collections.Generic.IList? SelectedSpaceIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateUserMessageContext( - string username, - string timezone, - global::Dust.PrivateUserMessageContextOrigin origin, - string? fullName, - string? email, - string? profilePictureUrl, - global::System.Collections.Generic.IList? selectedSpaceIds) - { - this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); - this.FullName = fullName; - this.Email = email; - this.ProfilePictureUrl = profilePictureUrl; - this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); - this.Origin = origin; - this.SelectedSpaceIds = selectedSpaceIds; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateUserMessageContext() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContextOrigin.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContextOrigin.g.cs deleted file mode 100644 index b4c3961..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageContextOrigin.g.cs +++ /dev/null @@ -1,189 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateUserMessageContextOrigin - { - /// - /// - /// - AgentSidekick, - /// - /// - /// - AnalyticsPanel, - /// - /// - /// - Api, - /// - /// - /// - Cli, - /// - /// - /// - CliProgrammatic, - /// - /// - /// - Email, - /// - /// - /// - Excel, - /// - /// - /// - Extension, - /// - /// - /// - Gsheet, - /// - /// - /// - Make, - /// - /// - /// - N8n, - /// - /// - /// - OnboardingConversation, - /// - /// - /// - Powerpoint, - /// - /// - /// - ProjectKickoff, - /// - /// - /// - Raycast, - /// - /// - /// - Slack, - /// - /// - /// - SlackWorkflow, - /// - /// - /// - Teams, - /// - /// - /// - Transcript, - /// - /// - /// - Triggered, - /// - /// - /// - TriggeredProgrammatic, - /// - /// - /// - Wakeup, - /// - /// - /// - Web, - /// - /// - /// - Zapier, - /// - /// - /// - Zendesk, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateUserMessageContextOriginExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateUserMessageContextOrigin value) - { - return value switch - { - PrivateUserMessageContextOrigin.AgentSidekick => "agent_sidekick", - PrivateUserMessageContextOrigin.AnalyticsPanel => "analytics_panel", - PrivateUserMessageContextOrigin.Api => "api", - PrivateUserMessageContextOrigin.Cli => "cli", - PrivateUserMessageContextOrigin.CliProgrammatic => "cli_programmatic", - PrivateUserMessageContextOrigin.Email => "email", - PrivateUserMessageContextOrigin.Excel => "excel", - PrivateUserMessageContextOrigin.Extension => "extension", - PrivateUserMessageContextOrigin.Gsheet => "gsheet", - PrivateUserMessageContextOrigin.Make => "make", - PrivateUserMessageContextOrigin.N8n => "n8n", - PrivateUserMessageContextOrigin.OnboardingConversation => "onboarding_conversation", - PrivateUserMessageContextOrigin.Powerpoint => "powerpoint", - PrivateUserMessageContextOrigin.ProjectKickoff => "project_kickoff", - PrivateUserMessageContextOrigin.Raycast => "raycast", - PrivateUserMessageContextOrigin.Slack => "slack", - PrivateUserMessageContextOrigin.SlackWorkflow => "slack_workflow", - PrivateUserMessageContextOrigin.Teams => "teams", - PrivateUserMessageContextOrigin.Transcript => "transcript", - PrivateUserMessageContextOrigin.Triggered => "triggered", - PrivateUserMessageContextOrigin.TriggeredProgrammatic => "triggered_programmatic", - PrivateUserMessageContextOrigin.Wakeup => "wakeup", - PrivateUserMessageContextOrigin.Web => "web", - PrivateUserMessageContextOrigin.Zapier => "zapier", - PrivateUserMessageContextOrigin.Zendesk => "zendesk", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateUserMessageContextOrigin? ToEnum(string value) - { - return value switch - { - "agent_sidekick" => PrivateUserMessageContextOrigin.AgentSidekick, - "analytics_panel" => PrivateUserMessageContextOrigin.AnalyticsPanel, - "api" => PrivateUserMessageContextOrigin.Api, - "cli" => PrivateUserMessageContextOrigin.Cli, - "cli_programmatic" => PrivateUserMessageContextOrigin.CliProgrammatic, - "email" => PrivateUserMessageContextOrigin.Email, - "excel" => PrivateUserMessageContextOrigin.Excel, - "extension" => PrivateUserMessageContextOrigin.Extension, - "gsheet" => PrivateUserMessageContextOrigin.Gsheet, - "make" => PrivateUserMessageContextOrigin.Make, - "n8n" => PrivateUserMessageContextOrigin.N8n, - "onboarding_conversation" => PrivateUserMessageContextOrigin.OnboardingConversation, - "powerpoint" => PrivateUserMessageContextOrigin.Powerpoint, - "project_kickoff" => PrivateUserMessageContextOrigin.ProjectKickoff, - "raycast" => PrivateUserMessageContextOrigin.Raycast, - "slack" => PrivateUserMessageContextOrigin.Slack, - "slack_workflow" => PrivateUserMessageContextOrigin.SlackWorkflow, - "teams" => PrivateUserMessageContextOrigin.Teams, - "transcript" => PrivateUserMessageContextOrigin.Transcript, - "triggered" => PrivateUserMessageContextOrigin.Triggered, - "triggered_programmatic" => PrivateUserMessageContextOrigin.TriggeredProgrammatic, - "wakeup" => PrivateUserMessageContextOrigin.Wakeup, - "web" => PrivateUserMessageContextOrigin.Web, - "zapier" => PrivateUserMessageContextOrigin.Zapier, - "zendesk" => PrivateUserMessageContextOrigin.Zendesk, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.Json.g.cs deleted file mode 100644 index 2d801df..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateUserMessageNewEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageNewEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateUserMessageNewEvent), - jsonSerializerContext) as global::Dust.PrivateUserMessageNewEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageNewEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateUserMessageNewEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateUserMessageNewEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateUserMessageNewEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.g.cs deleted file mode 100644 index a2770f6..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEvent.g.cs +++ /dev/null @@ -1,77 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateUserMessageNewEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateUserMessageNewEventTypeJsonConverter))] - public global::Dust.PrivateUserMessageNewEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string MessageId { get; set; } - - /// - /// A user message in a conversation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateUserMessage Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// A user message in a conversation. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateUserMessageNewEvent( - int created, - string messageId, - global::Dust.PrivateUserMessage message, - global::Dust.PrivateUserMessageNewEventType type) - { - this.Type = type; - this.Created = created; - this.MessageId = messageId ?? throw new global::System.ArgumentNullException(nameof(messageId)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateUserMessageNewEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEventType.g.cs deleted file mode 100644 index 3c97909..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageNewEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateUserMessageNewEventType - { - /// - /// - /// - UserMessageNew, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateUserMessageNewEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateUserMessageNewEventType value) - { - return value switch - { - PrivateUserMessageNewEventType.UserMessageNew => "user_message_new", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateUserMessageNewEventType? ToEnum(string value) - { - return value switch - { - "user_message_new" => PrivateUserMessageNewEventType.UserMessageNew, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageType.g.cs deleted file mode 100644 index cc4c324..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateUserMessageType - { - /// - /// - /// - UserMessage, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateUserMessageTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateUserMessageType value) - { - return value switch - { - PrivateUserMessageType.UserMessage => "user_message", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateUserMessageType? ToEnum(string value) - { - return value switch - { - "user_message" => PrivateUserMessageType.UserMessage, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.Json.g.cs deleted file mode 100644 index a6888a0..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateUserMessageUser - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateUserMessageUser), - jsonSerializerContext) as global::Dust.PrivateUserMessageUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateUserMessageUser? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateUserMessageUser? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateUserMessageUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateUserMessageUser; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.g.cs deleted file mode 100644 index e4ddded..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageUser.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// The user who sent the message - /// - public sealed partial class PrivateUserMessageUser - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - public string? SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("username")] - public string? Username { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fullName")] - public string? FullName { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public string? Image { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateUserMessageUser( - string? sId, - string? username, - string? fullName, - string? image) - { - this.SId = sId; - this.Username = username; - this.FullName = fullName; - this.Image = image; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateUserMessageUser() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageVisibility.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageVisibility.g.cs deleted file mode 100644 index 7b88c6f..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserMessageVisibility.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateUserMessageVisibility - { - /// - /// - /// - Deleted, - /// - /// - /// - Visible, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateUserMessageVisibilityExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateUserMessageVisibility value) - { - return value switch - { - PrivateUserMessageVisibility.Deleted => "deleted", - PrivateUserMessageVisibility.Visible => "visible", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateUserMessageVisibility? ToEnum(string value) - { - return value switch - { - "deleted" => PrivateUserMessageVisibility.Deleted, - "visible" => PrivateUserMessageVisibility.Visible, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateUserProvider.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateUserProvider.g.cs deleted file mode 100644 index bc2e4f1..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateUserProvider.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Authentication provider - /// - public enum PrivateUserProvider - { - /// - /// - /// - Auth0, - /// - /// - /// - Github, - /// - /// - /// - Google, - /// - /// - /// - Okta, - /// - /// - /// - Samlp, - /// - /// - /// - Waad, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateUserProviderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateUserProvider value) - { - return value switch - { - PrivateUserProvider.Auth0 => "auth0", - PrivateUserProvider.Github => "github", - PrivateUserProvider.Google => "google", - PrivateUserProvider.Okta => "okta", - PrivateUserProvider.Samlp => "samlp", - PrivateUserProvider.Waad => "waad", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateUserProvider? ToEnum(string value) - { - return value switch - { - "auth0" => PrivateUserProvider.Auth0, - "github" => PrivateUserProvider.Github, - "google" => PrivateUserProvider.Google, - "okta" => PrivateUserProvider.Okta, - "samlp" => PrivateUserProvider.Samlp, - "waad" => PrivateUserProvider.Waad, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.Json.g.cs deleted file mode 100644 index 1800b2e..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWakeUp - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUp? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWakeUp), - jsonSerializerContext) as global::Dust.PrivateWakeUp; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUp? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWakeUp? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWakeUp), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWakeUp; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.g.cs deleted file mode 100644 index 762468a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUp.g.cs +++ /dev/null @@ -1,129 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// A wake-up scheduled in a conversation to re-invoke the agent at a later time. - /// - public sealed partial class PrivateWakeUp - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// Unix timestamp (milliseconds). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agentConfigurationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AgentConfigurationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scheduleConfig")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.OneOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.OneOf ScheduleConfig { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reason")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Reason { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateWakeUpStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateWakeUpStatus Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fireCount")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int FireCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxFires")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int MaxFires { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// Unix timestamp (milliseconds). - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateWakeUp( - int id, - string sId, - long createdAt, - string agentConfigurationId, - global::Dust.OneOf scheduleConfig, - string reason, - global::Dust.PrivateWakeUpStatus status, - int fireCount, - int maxFires) - { - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.CreatedAt = createdAt; - this.AgentConfigurationId = agentConfigurationId ?? throw new global::System.ArgumentNullException(nameof(agentConfigurationId)); - this.ScheduleConfig = scheduleConfig; - this.Reason = reason ?? throw new global::System.ArgumentNullException(nameof(reason)); - this.Status = status; - this.FireCount = fireCount; - this.MaxFires = maxFires; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateWakeUp() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.Json.g.cs deleted file mode 100644 index 89d0edf..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWakeUpScheduleConfigVariant1 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpScheduleConfigVariant1? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1), - jsonSerializerContext) as global::Dust.PrivateWakeUpScheduleConfigVariant1; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpScheduleConfigVariant1? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWakeUpScheduleConfigVariant1? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWakeUpScheduleConfigVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWakeUpScheduleConfigVariant1; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.g.cs deleted file mode 100644 index 1201150..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateWakeUpScheduleConfigVariant1 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant1TypeJsonConverter))] - public global::Dust.PrivateWakeUpScheduleConfigVariant1Type Type { get; set; } - - /// - /// Unix timestamp (milliseconds) when the wake-up should fire. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fireAt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required long FireAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Unix timestamp (milliseconds) when the wake-up should fire. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateWakeUpScheduleConfigVariant1( - long fireAt, - global::Dust.PrivateWakeUpScheduleConfigVariant1Type type) - { - this.Type = type; - this.FireAt = fireAt; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateWakeUpScheduleConfigVariant1() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1Type.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1Type.g.cs deleted file mode 100644 index 6b6e7eb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant1Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateWakeUpScheduleConfigVariant1Type - { - /// - /// - /// - OneShot, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateWakeUpScheduleConfigVariant1TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateWakeUpScheduleConfigVariant1Type value) - { - return value switch - { - PrivateWakeUpScheduleConfigVariant1Type.OneShot => "one_shot", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateWakeUpScheduleConfigVariant1Type? ToEnum(string value) - { - return value switch - { - "one_shot" => PrivateWakeUpScheduleConfigVariant1Type.OneShot, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.Json.g.cs deleted file mode 100644 index d1b293a..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWakeUpScheduleConfigVariant2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpScheduleConfigVariant2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2), - jsonSerializerContext) as global::Dust.PrivateWakeUpScheduleConfigVariant2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpScheduleConfigVariant2? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWakeUpScheduleConfigVariant2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWakeUpScheduleConfigVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWakeUpScheduleConfigVariant2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.g.cs deleted file mode 100644 index 11d7e39..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateWakeUpScheduleConfigVariant2 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateWakeUpScheduleConfigVariant2TypeJsonConverter))] - public global::Dust.PrivateWakeUpScheduleConfigVariant2Type Type { get; set; } - - /// - /// 5-field cron expression. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cron")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Cron { get; set; } - - /// - /// IANA timezone name. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Timezone { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// 5-field cron expression. - /// - /// - /// IANA timezone name. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateWakeUpScheduleConfigVariant2( - string cron, - string timezone, - global::Dust.PrivateWakeUpScheduleConfigVariant2Type type) - { - this.Type = type; - this.Cron = cron ?? throw new global::System.ArgumentNullException(nameof(cron)); - this.Timezone = timezone ?? throw new global::System.ArgumentNullException(nameof(timezone)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateWakeUpScheduleConfigVariant2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2Type.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2Type.g.cs deleted file mode 100644 index ba264b4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpScheduleConfigVariant2Type.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateWakeUpScheduleConfigVariant2Type - { - /// - /// - /// - Cron, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateWakeUpScheduleConfigVariant2TypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateWakeUpScheduleConfigVariant2Type value) - { - return value switch - { - PrivateWakeUpScheduleConfigVariant2Type.Cron => "cron", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateWakeUpScheduleConfigVariant2Type? ToEnum(string value) - { - return value switch - { - "cron" => PrivateWakeUpScheduleConfigVariant2Type.Cron, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpStatus.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpStatus.g.cs deleted file mode 100644 index 21ddf04..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateWakeUpStatus - { - /// - /// - /// - Cancelled, - /// - /// - /// - Expired, - /// - /// - /// - Fired, - /// - /// - /// - Scheduled, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateWakeUpStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateWakeUpStatus value) - { - return value switch - { - PrivateWakeUpStatus.Cancelled => "cancelled", - PrivateWakeUpStatus.Expired => "expired", - PrivateWakeUpStatus.Fired => "fired", - PrivateWakeUpStatus.Scheduled => "scheduled", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateWakeUpStatus? ToEnum(string value) - { - return value switch - { - "cancelled" => PrivateWakeUpStatus.Cancelled, - "expired" => PrivateWakeUpStatus.Expired, - "fired" => PrivateWakeUpStatus.Fired, - "scheduled" => PrivateWakeUpStatus.Scheduled, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.Json.g.cs deleted file mode 100644 index 23137ff..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWakeUpUpdatedEvent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpUpdatedEvent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWakeUpUpdatedEvent), - jsonSerializerContext) as global::Dust.PrivateWakeUpUpdatedEvent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWakeUpUpdatedEvent? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWakeUpUpdatedEvent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWakeUpUpdatedEvent), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWakeUpUpdatedEvent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.g.cs deleted file mode 100644 index f5369d4..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEvent.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateWakeUpUpdatedEvent - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateWakeUpUpdatedEventTypeJsonConverter))] - public global::Dust.PrivateWakeUpUpdatedEventType Type { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Created { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("conversationId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ConversationId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wakeUpId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string WakeUpId { get; set; } - - /// - /// sId of the user who owns the wake-up. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("userId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string UserId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// sId of the user who owns the wake-up. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateWakeUpUpdatedEvent( - int created, - string conversationId, - string wakeUpId, - string userId, - global::Dust.PrivateWakeUpUpdatedEventType type) - { - this.Type = type; - this.Created = created; - this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); - this.WakeUpId = wakeUpId ?? throw new global::System.ArgumentNullException(nameof(wakeUpId)); - this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateWakeUpUpdatedEvent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEventType.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEventType.g.cs deleted file mode 100644 index d2d4982..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWakeUpUpdatedEventType.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateWakeUpUpdatedEventType - { - /// - /// - /// - WakeUpUpdated, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateWakeUpUpdatedEventTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateWakeUpUpdatedEventType value) - { - return value switch - { - PrivateWakeUpUpdatedEventType.WakeUpUpdated => "wake_up_updated", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateWakeUpUpdatedEventType? ToEnum(string value) - { - return value switch - { - "wake_up_updated" => PrivateWakeUpUpdatedEventType.WakeUpUpdated, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.Json.g.cs deleted file mode 100644 index edabaeb..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWorkspace - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWorkspace? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWorkspace), - jsonSerializerContext) as global::Dust.PrivateWorkspace; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWorkspace? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWorkspace? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWorkspace), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWorkspace; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.g.cs deleted file mode 100644 index 02d7a27..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspace.g.cs +++ /dev/null @@ -1,135 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Workspace as returned by the private API, includes SSO and provider settings. - /// - public sealed partial class PrivateWorkspace - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Dust.JsonConverters.PrivateWorkspaceRoleJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Dust.PrivateWorkspaceRole Role { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("segmentation")] - public string? Segmentation { get; set; } - - /// - /// Allowed model provider IDs - /// - [global::System.Text.Json.Serialization.JsonPropertyName("whiteListedProviders")] - public global::System.Collections.Generic.IList? WhiteListedProviders { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("defaultEmbeddingProvider")] - public string? DefaultEmbeddingProvider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ssoEnforced")] - public bool? SsoEnforced { get; set; } - - /// - /// When true, only models whose regionalAvailability includes the workspace's region are usable. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("regionalModelsOnly")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool RegionalModelsOnly { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// When true, only models whose regionalAvailability includes the workspace's region are usable. - /// - /// - /// - /// Allowed model provider IDs - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PrivateWorkspace( - int id, - string sId, - string name, - global::Dust.PrivateWorkspaceRole role, - bool regionalModelsOnly, - string? segmentation, - global::System.Collections.Generic.IList? whiteListedProviders, - string? defaultEmbeddingProvider, - bool? ssoEnforced, - object? metadata) - { - this.Id = id; - this.SId = sId ?? throw new global::System.ArgumentNullException(nameof(sId)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Role = role; - this.Segmentation = segmentation; - this.WhiteListedProviders = whiteListedProviders; - this.DefaultEmbeddingProvider = defaultEmbeddingProvider; - this.SsoEnforced = ssoEnforced; - this.RegionalModelsOnly = regionalModelsOnly; - this.Metadata = metadata; - } - - /// - /// Initializes a new instance of the class. - /// - public PrivateWorkspace() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.Json.g.cs deleted file mode 100644 index 1f239ee..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public sealed partial class PrivateWorkspaceMetadata - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.PrivateWorkspaceMetadata? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.PrivateWorkspaceMetadata), - jsonSerializerContext) as global::Dust.PrivateWorkspaceMetadata; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.PrivateWorkspaceMetadata? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.PrivateWorkspaceMetadata? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.PrivateWorkspaceMetadata), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.PrivateWorkspaceMetadata; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.g.cs deleted file mode 100644 index 77df842..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceMetadata.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public sealed partial class PrivateWorkspaceMetadata - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceRole.g.cs b/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceRole.g.cs deleted file mode 100644 index 5ce7935..0000000 --- a/src/libs/Dust/Generated/Dust.Models.PrivateWorkspaceRole.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public enum PrivateWorkspaceRole - { - /// - /// - /// - Admin, - /// - /// - /// - Builder, - /// - /// - /// - None, - /// - /// - /// - User, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PrivateWorkspaceRoleExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PrivateWorkspaceRole value) - { - return value switch - { - PrivateWorkspaceRole.Admin => "admin", - PrivateWorkspaceRole.Builder => "builder", - PrivateWorkspaceRole.None => "none", - PrivateWorkspaceRole.User => "user", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PrivateWorkspaceRole? ToEnum(string value) - { - return value switch - { - "admin" => PrivateWorkspaceRole.Admin, - "builder" => PrivateWorkspaceRole.Builder, - "none" => PrivateWorkspaceRole.None, - "user" => PrivateWorkspaceRole.User, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.OneOf.3.Json.g.cs b/src/libs/Dust/Generated/Dust.OneOf.3.Json.g.cs deleted file mode 100644 index 01ccaad..0000000 --- a/src/libs/Dust/Generated/Dust.OneOf.3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Dust -{ - public readonly partial struct OneOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Dust.OneOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Dust.OneOf), - jsonSerializerContext) as global::Dust.OneOf?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Dust.OneOf? FromJson( - string json) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Dust.OneOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Dust.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::Dust.OneOf?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Dust.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.OneOf.3.g.cs b/src/libs/Dust/Generated/Dust.OneOf.3.g.cs deleted file mode 100644 index 7833951..0000000 --- a/src/libs/Dust/Generated/Dust.OneOf.3.g.cs +++ /dev/null @@ -1,377 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// - /// - public readonly partial struct OneOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => IsValue1 - ? Value1! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => IsValue2 - ? Value2! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T3? Value3 { get; init; } -#else - public T3? Value3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; - - /// - /// - /// - public bool TryPickValue3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T3? value) - { - value = Value3; - return IsValue3; - } - - /// - /// - /// - public T3 PickValue3() => IsValue3 - ? Value3! - : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - - /// - /// - /// - public OneOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static OneOf FromValue1(T1? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(OneOf @this) => @this.Value2; - - /// - /// - /// - public OneOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static OneOf FromValue2(T2? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); - - /// - /// - /// - public static implicit operator T3?(OneOf @this) => @this.Value3; - - /// - /// - /// - public OneOf(T3? value) - { - Value3 = value; - } - - /// - /// - /// - public static OneOf FromValue3(T3? value) => new OneOf(value); - - /// - /// - /// - public OneOf( - T1? value1, - T2? value2, - T3? value3 - ) - { - Value1 = value1; - Value2 = value2; - Value3 = value3; - } - - /// - /// - /// - public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1 && value1 != null) - { - return value1(Value1!); - } - else if (IsValue2 && value2 != null) - { - return value2(Value2!); - } - else if (IsValue3 && value3 != null) - { - return value3(Value3!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - - global::System.Action? value3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - else if (IsValue3) - { - value3?.Invoke(Value3!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsValue1) - { - value1?.Invoke(Value1!); - } - else if (IsValue2) - { - value2?.Invoke(Value2!); - } - else if (IsValue3) - { - value3?.Invoke(Value3!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - Value3, - typeof(T3), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(OneOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) - ; - } - - /// - /// - /// - public static bool operator ==(OneOf obj1, OneOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(OneOf obj1, OneOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is OneOf o && Equals(o); - } - } -} diff --git a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs b/src/libs/Dust/Generated/Dust.PrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs deleted file mode 100644 index 4ceef03..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.CreateWByWIdAssistantAgentConfigurations.g.cs +++ /dev/null @@ -1,521 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAgentsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantAgentConfigurationsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantAgentConfigurationsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantAgentConfigurationsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantAgentConfigurationsSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantAgentConfigurationsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - global::Dust.CreateWAssistantAgentConfigurationsRequest request); - partial void PrepareCreateWByWIdAssistantAgentConfigurationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - global::Dust.CreateWAssistantAgentConfigurationsRequest request); - partial void ProcessCreateWByWIdAssistantAgentConfigurationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantAgentConfigurationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantAgentConfigurationsAsync( - string wId, - - global::Dust.CreateWAssistantAgentConfigurationsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantAgentConfigurationsAsResponseAsync( - wId: wId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantAgentConfigurationsAsResponseAsync( - string wId, - - global::Dust.CreateWAssistantAgentConfigurationsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantAgentConfigurationsArguments( - httpClient: HttpClient, - wId: ref wId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantAgentConfigurationsSecurityRequirements, - operationName: "CreateWByWIdAssistantAgentConfigurationsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/agent_configurations", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantAgentConfigurationsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantAgentConfigurationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantAgentConfigurations", - methodName: "CreateWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantAgentConfigurations", - methodName: "CreateWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantAgentConfigurations", - methodName: "CreateWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantAgentConfigurationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantAgentConfigurations", - methodName: "CreateWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantAgentConfigurations", - methodName: "CreateWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantAgentConfigurationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantAgentConfigurationsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantAgentConfigurationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create an agent configuration
- /// Creates a new agent configuration in the workspace. - ///
- /// - /// - /// Agent configuration to create - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantAgentConfigurationsAsync( - string wId, - object assistant, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantAgentConfigurationsRequest - { - Assistant = assistant, - }; - - return await CreateWByWIdAssistantAgentConfigurationsAsync( - wId: wId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs b/src/libs/Dust/Generated/Dust.PrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs deleted file mode 100644 index 67e0ebf..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.GetWByWIdAssistantAgentConfigurations.g.cs +++ /dev/null @@ -1,545 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAgentsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantAgentConfigurationsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantAgentConfigurationsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantAgentConfigurationsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantAgentConfigurationsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantAgentConfigurationsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref global::Dust.GetWAssistantAgentConfigurationsView2? view, - ref int? limit, - ref global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage, - ref global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors, - ref global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks, - ref global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors, - ref string? sort); - partial void PrepareGetWByWIdAssistantAgentConfigurationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - global::Dust.GetWAssistantAgentConfigurationsView2? view, - int? limit, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors, - string? sort); - partial void ProcessGetWByWIdAssistantAgentConfigurationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantAgentConfigurationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List agent configurations
- /// Returns all agent configurations in the workspace. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantAgentConfigurationsAsync( - string wId, - global::Dust.GetWAssistantAgentConfigurationsView2? view = default, - int? limit = default, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage = default, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors = default, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks = default, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors = default, - string? sort = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantAgentConfigurationsAsResponseAsync( - wId: wId, - view: view, - limit: limit, - withUsage: withUsage, - withAuthors: withAuthors, - withFeedbacks: withFeedbacks, - withEditors: withEditors, - sort: sort, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List agent configurations
- /// Returns all agent configurations in the workspace. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantAgentConfigurationsAsResponseAsync( - string wId, - global::Dust.GetWAssistantAgentConfigurationsView2? view = default, - int? limit = default, - global::Dust.GetWAssistantAgentConfigurationsWithUsage? withUsage = default, - global::Dust.GetWAssistantAgentConfigurationsWithAuthors2? withAuthors = default, - global::Dust.GetWAssistantAgentConfigurationsWithFeedbacks? withFeedbacks = default, - global::Dust.GetWAssistantAgentConfigurationsWithEditors? withEditors = default, - string? sort = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantAgentConfigurationsArguments( - httpClient: HttpClient, - wId: ref wId, - view: ref view, - limit: ref limit, - withUsage: ref withUsage, - withAuthors: ref withAuthors, - withFeedbacks: ref withFeedbacks, - withEditors: ref withEditors, - sort: ref sort); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantAgentConfigurationsSecurityRequirements, - operationName: "GetWByWIdAssistantAgentConfigurationsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/agent_configurations", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantAgentConfigurationsServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("view", view?.ToValueString()) - .AddOptionalParameter("limit", limit?.ToString()) - .AddOptionalParameter("withUsage", withUsage?.ToValueString()) - .AddOptionalParameter("withAuthors", withAuthors?.ToValueString()) - .AddOptionalParameter("withFeedbacks", withFeedbacks?.ToValueString()) - .AddOptionalParameter("withEditors", withEditors?.ToValueString()) - .AddOptionalParameter("sort", sort) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantAgentConfigurationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - view: view, - limit: limit, - withUsage: withUsage, - withAuthors: withAuthors, - withFeedbacks: withFeedbacks, - withEditors: withEditors, - sort: sort); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantAgentConfigurations", - methodName: "GetWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantAgentConfigurations", - methodName: "GetWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantAgentConfigurations", - methodName: "GetWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantAgentConfigurationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantAgentConfigurations", - methodName: "GetWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantAgentConfigurations", - methodName: "GetWByWIdAssistantAgentConfigurationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/agent_configurations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantAgentConfigurationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantAgentConfigurationsResponse3.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantAgentConfigurationsResponse3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateAgentsClient.g.cs deleted file mode 100644 index 89a9664..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAgentsClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Agent configurations
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateAgentsClient : global::Dust.IPrivateAgentsClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateAgentsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAgentsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAgentsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAgentsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAgentsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAgentsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.g.cs deleted file mode 100644 index 25ce1ac..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAnalyticsClient.g.cs +++ /dev/null @@ -1,291 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateAnalyticsClient : global::Dust.IPrivateAnalyticsClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateAnalyticsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAnalyticsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAnalyticsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAnalyticsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAnalyticsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAnalyticsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs b/src/libs/Dust/Generated/Dust.PrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs deleted file mode 100644 index 76cbca6..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAssistantClient.GetWByWIdAssistantGoTemplate.g.cs +++ /dev/null @@ -1,517 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAssistantClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantGoTemplateServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantGoTemplateSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantGoTemplateSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantGoTemplateSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantGoTemplateArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string slug); - partial void PrepareGetWByWIdAssistantGoTemplateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string slug); - partial void ProcessGetWByWIdAssistantGoTemplateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantGoTemplateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Resolve a conversation go template draft
- /// Fetches a Contentful conversation go template by slug and returns a composer-ready draft with optional pre-uploaded attachments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantGoTemplateAsync( - string wId, - string slug, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantGoTemplateAsResponseAsync( - wId: wId, - slug: slug, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Resolve a conversation go template draft
- /// Fetches a Contentful conversation go template by slug and returns a composer-ready draft with optional pre-uploaded attachments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantGoTemplateAsResponseAsync( - string wId, - string slug, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantGoTemplateArguments( - httpClient: HttpClient, - wId: ref wId, - slug: ref slug); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantGoTemplateSecurityRequirements, - operationName: "GetWByWIdAssistantGoTemplateAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/go-template", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantGoTemplateServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddRequiredParameter("slug", slug) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantGoTemplateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - slug: slug!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantGoTemplate", - methodName: "GetWByWIdAssistantGoTemplateAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/go-template\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantGoTemplate", - methodName: "GetWByWIdAssistantGoTemplateAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/go-template\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantGoTemplate", - methodName: "GetWByWIdAssistantGoTemplateAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/go-template\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantGoTemplateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantGoTemplate", - methodName: "GetWByWIdAssistantGoTemplateAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/go-template\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantGoTemplate", - methodName: "GetWByWIdAssistantGoTemplateAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/go-template\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantGoTemplateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetGoTemplateDraftResponseBody.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetGoTemplateDraftResponseBody.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAssistantClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateAssistantClient.g.cs deleted file mode 100644 index 51c427d..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAssistantClient.g.cs +++ /dev/null @@ -1,291 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateAssistantClient : global::Dust.IPrivateAssistantClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateAssistantClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAssistantClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAssistantClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAssistantClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAssistantClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAssistantClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs b/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs deleted file mode 100644 index f57cc5d..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosAuthenticate.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAuthenticationClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWorkosAuthenticateServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - partial void PrepareCreateWorkosAuthenticateArguments( - global::System.Net.Http.HttpClient httpClient, - global::Dust.CreateWorkosAuthenticateRequest request); - partial void PrepareCreateWorkosAuthenticateRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Dust.CreateWorkosAuthenticateRequest request); - partial void ProcessCreateWorkosAuthenticateResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWorkosAuthenticateResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWorkosAuthenticateAsync( - - global::Dust.CreateWorkosAuthenticateRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWorkosAuthenticateAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWorkosAuthenticateAsResponseAsync( - - global::Dust.CreateWorkosAuthenticateRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWorkosAuthenticateArguments( - httpClient: HttpClient, - request: request); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: "/api/workos/authenticate", - baseUri: ResolveBaseUri( - servers: s_CreateWorkosAuthenticateServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWorkosAuthenticateRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosAuthenticate", - methodName: "CreateWorkosAuthenticateAsync", - pathTemplate: "\"/api/workos/authenticate\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosAuthenticate", - methodName: "CreateWorkosAuthenticateAsync", - pathTemplate: "\"/api/workos/authenticate\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosAuthenticate", - methodName: "CreateWorkosAuthenticateAsync", - pathTemplate: "\"/api/workos/authenticate\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWorkosAuthenticateResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosAuthenticate", - methodName: "CreateWorkosAuthenticateAsync", - pathTemplate: "\"/api/workos/authenticate\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosAuthenticate", - methodName: "CreateWorkosAuthenticateAsync", - pathTemplate: "\"/api/workos/authenticate\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWorkosAuthenticateResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWorkosAuthenticateResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWorkosAuthenticateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Exchange code or refresh token
- /// Exchanges an authorization code or refresh token for access tokens via WorkOS. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWorkosAuthenticateAsync( - string? code = default, - global::Dust.CreateWorkosAuthenticateRequestGrantType? grantType = default, - string? refreshToken = default, - string? codeVerifier = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWorkosAuthenticateRequest - { - Code = code, - GrantType = grantType, - RefreshToken = refreshToken, - CodeVerifier = codeVerifier, - }; - - return await CreateWorkosAuthenticateAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs b/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs deleted file mode 100644 index f691669..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.CreateWorkosRevokeSession.g.cs +++ /dev/null @@ -1,464 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAuthenticationClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWorkosRevokeSessionServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - partial void PrepareCreateWorkosRevokeSessionArguments( - global::System.Net.Http.HttpClient httpClient, - global::Dust.CreateWorkosRevokeSessionRequest request); - partial void PrepareCreateWorkosRevokeSessionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Dust.CreateWorkosRevokeSessionRequest request); - partial void ProcessCreateWorkosRevokeSessionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWorkosRevokeSessionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWorkosRevokeSessionAsync( - - global::Dust.CreateWorkosRevokeSessionRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWorkosRevokeSessionAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWorkosRevokeSessionAsResponseAsync( - - global::Dust.CreateWorkosRevokeSessionRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWorkosRevokeSessionArguments( - httpClient: HttpClient, - request: request); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: "/api/workos/revoke-session", - baseUri: ResolveBaseUri( - servers: s_CreateWorkosRevokeSessionServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWorkosRevokeSessionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosRevokeSession", - methodName: "CreateWorkosRevokeSessionAsync", - pathTemplate: "\"/api/workos/revoke-session\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosRevokeSession", - methodName: "CreateWorkosRevokeSessionAsync", - pathTemplate: "\"/api/workos/revoke-session\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosRevokeSession", - methodName: "CreateWorkosRevokeSessionAsync", - pathTemplate: "\"/api/workos/revoke-session\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWorkosRevokeSessionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosRevokeSession", - methodName: "CreateWorkosRevokeSessionAsync", - pathTemplate: "\"/api/workos/revoke-session\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWorkosRevokeSession", - methodName: "CreateWorkosRevokeSessionAsync", - pathTemplate: "\"/api/workos/revoke-session\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWorkosRevokeSessionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWorkosRevokeSessionResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWorkosRevokeSessionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Revoke a session
- /// Revokes a WorkOS session by session ID. Used by the Chrome extension for logout. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWorkosRevokeSessionAsync( - string sessionId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWorkosRevokeSessionRequest - { - SessionId = sessionId, - }; - - return await CreateWorkosRevokeSessionAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.GetWorkosLogin.g.cs b/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.GetWorkosLogin.g.cs deleted file mode 100644 index b6a2799..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.GetWorkosLogin.g.cs +++ /dev/null @@ -1,462 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateAuthenticationClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWorkosLoginServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - partial void PrepareGetWorkosLoginArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? redirectUri, - ref string? codeChallenge, - ref string? codeChallengeMethod); - partial void PrepareGetWorkosLoginRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? redirectUri, - string? codeChallenge, - string? codeChallengeMethod); - partial void ProcessGetWorkosLoginResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Initiate WorkOS login
- /// Redirects to WorkOS AuthKit for authentication. Supports PKCE flow for extensions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWorkosLoginAsync( - string? redirectUri = default, - string? codeChallenge = default, - string? codeChallengeMethod = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await GetWorkosLoginAsResponseAsync( - redirectUri: redirectUri, - codeChallenge: codeChallenge, - codeChallengeMethod: codeChallengeMethod, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Initiate WorkOS login
- /// Redirects to WorkOS AuthKit for authentication. Supports PKCE flow for extensions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWorkosLoginAsResponseAsync( - string? redirectUri = default, - string? codeChallenge = default, - string? codeChallengeMethod = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWorkosLoginArguments( - httpClient: HttpClient, - redirectUri: ref redirectUri, - codeChallenge: ref codeChallenge, - codeChallengeMethod: ref codeChallengeMethod); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: "/api/workos/login", - baseUri: ResolveBaseUri( - servers: s_GetWorkosLoginServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("redirect_uri", redirectUri) - .AddOptionalParameter("code_challenge", codeChallenge) - .AddOptionalParameter("code_challenge_method", codeChallengeMethod) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWorkosLoginRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - redirectUri: redirectUri, - codeChallenge: codeChallenge, - codeChallengeMethod: codeChallengeMethod); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWorkosLogin", - methodName: "GetWorkosLoginAsync", - pathTemplate: "\"/api/workos/login\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWorkosLogin", - methodName: "GetWorkosLoginAsync", - pathTemplate: "\"/api/workos/login\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWorkosLogin", - methodName: "GetWorkosLoginAsync", - pathTemplate: "\"/api/workos/login\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWorkosLoginResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWorkosLogin", - methodName: "GetWorkosLoginAsync", - pathTemplate: "\"/api/workos/login\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWorkosLogin", - methodName: "GetWorkosLoginAsync", - pathTemplate: "\"/api/workos/login\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 302) - { - string? __content_302 = null; - global::System.Exception? __exception_302 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_302 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_302, - responseBody: __content_302, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.g.cs deleted file mode 100644 index cb72e37..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateAuthenticationClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Authentication (WorkOS)
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateAuthenticationClient : global::Dust.IPrivateAuthenticationClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateAuthenticationClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAuthenticationClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAuthenticationClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAuthenticationClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateAuthenticationClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateAuthenticationClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs deleted file mode 100644 index b655d39..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversations.g.cs +++ /dev/null @@ -1,540 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - global::Dust.CreateWAssistantConversationsRequest2 request); - partial void PrepareCreateWByWIdAssistantConversationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - global::Dust.CreateWAssistantConversationsRequest2 request); - partial void ProcessCreateWByWIdAssistantConversationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsAsync( - string wId, - - global::Dust.CreateWAssistantConversationsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsAsResponseAsync( - wId: wId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsAsResponseAsync( - string wId, - - global::Dust.CreateWAssistantConversationsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsArguments( - httpClient: HttpClient, - wId: ref wId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversations", - methodName: "CreateWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversations", - methodName: "CreateWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversations", - methodName: "CreateWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversations", - methodName: "CreateWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversations", - methodName: "CreateWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create a conversation
- /// Create a new conversation, optionally with an initial user message and content fragments. - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsAsync( - string wId, - string? title = default, - global::Dust.CreateWAssistantConversationsRequestVisibility? visibility = default, - string? spaceId = default, - global::Dust.CreateWAssistantConversationsRequestMessage? message = default, - global::System.Collections.Generic.IList? contentFragments = default, - global::Dust.CreateWAssistantConversationsRequestMetadata? metadata = default, - global::System.Collections.Generic.IList? selectedSpaceIds = default, - bool? skipToolsValidation = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsRequest2 - { - Title = title, - Visibility = visibility, - SpaceId = spaceId, - Message = message, - ContentFragments = contentFragments, - Metadata = metadata, - SelectedSpaceIds = selectedSpaceIds, - SkipToolsValidation = skipToolsValidation, - }; - - return await CreateWByWIdAssistantConversationsAsync( - wId: wId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs deleted file mode 100644 index 9ba4950..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCancel.g.cs +++ /dev/null @@ -1,534 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdCancelServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdCancelSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdCancelSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdCancelSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdCancelArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.CreateWAssistantConversationsCancelRequest2 request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdCancelRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCancelRequest2 request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdCancelResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdCancelResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCancelAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCancelRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdCancelAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdCancelAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCancelRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdCancelArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdCancelSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdCancelAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/cancel", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdCancelServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdCancelRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCancel", - methodName: "CreateWByWIdAssistantConversationsByCIdCancelAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/cancel\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCancel", - methodName: "CreateWByWIdAssistantConversationsByCIdCancelAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/cancel\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCancel", - methodName: "CreateWByWIdAssistantConversationsByCIdCancelAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/cancel\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdCancelResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCancel", - methodName: "CreateWByWIdAssistantConversationsByCIdCancelAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/cancel\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCancel", - methodName: "CreateWByWIdAssistantConversationsByCIdCancelAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/cancel\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdCancelResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsCancelResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsCancelResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Cancel message generation
- /// Cancels the generation of messages in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCancelAsync( - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCancelRequestAction action, - global::System.Collections.Generic.IList messageIds, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsCancelRequest2 - { - Action = action, - MessageIds = messageIds, - }; - - return await CreateWByWIdAssistantConversationsByCIdCancelAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs deleted file mode 100644 index 8097152..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdCompactions.g.cs +++ /dev/null @@ -1,595 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdCompactionsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdCompactionsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdCompactionsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdCompactionsSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdCompactionsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.CreateWAssistantConversationsCompactionsRequest request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdCompactionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCompactionsRequest request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdCompactionsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdCompactionsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCompactionsAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCompactionsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdCompactionsAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdCompactionsAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsCompactionsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdCompactionsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdCompactionsSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/compactions", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdCompactionsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdCompactionsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCompactions", - methodName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/compactions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCompactions", - methodName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/compactions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCompactions", - methodName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/compactions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdCompactionsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCompactions", - methodName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/compactions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdCompactions", - methodName: "CreateWByWIdAssistantConversationsByCIdCompactionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/compactions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 409) - { - string? __content_409 = null; - global::System.Exception? __exception_409 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_409 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_409, - responseBody: __content_409, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdCompactionsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsCompactionsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsCompactionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Compact a conversation
- /// Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdCompactionsAsync( - string wId, - string cId, - global::Dust.CreateWAssistantConversationsCompactionsRequestModel model, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsCompactionsRequest - { - Model = model, - }; - - return await CreateWByWIdAssistantConversationsByCIdCompactionsAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs deleted file mode 100644 index 2a67eca..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdContentFragment.g.cs +++ /dev/null @@ -1,548 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdContentFragmentServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdContentFragmentSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdContentFragmentSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdContentFragmentSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdContentFragmentArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.CreateWAssistantConversationsContentFragmentRequest request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdContentFragmentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.CreateWAssistantConversationsContentFragmentRequest request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdContentFragmentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdContentFragmentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdContentFragmentAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsContentFragmentRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdContentFragmentAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdContentFragmentAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsContentFragmentRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdContentFragmentArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdContentFragmentSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/content_fragment", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdContentFragmentServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdContentFragmentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdContentFragment", - methodName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/content_fragment\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdContentFragment", - methodName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/content_fragment\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdContentFragment", - methodName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/content_fragment\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdContentFragmentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdContentFragment", - methodName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/content_fragment\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdContentFragment", - methodName: "CreateWByWIdAssistantConversationsByCIdContentFragmentAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/content_fragment\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdContentFragmentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsContentFragmentResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsContentFragmentResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create a content fragment
- /// Post a new content fragment to an existing conversation. - ///
- /// - /// - /// - /// - /// - /// MIME type of the content - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdContentFragmentAsync( - string wId, - string cId, - string title, - string content, - string contentType, - global::Dust.CreateWAssistantConversationsContentFragmentRequestContext context, - string? url = default, - string? fileId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsContentFragmentRequest - { - Title = title, - Content = content, - ContentType = contentType, - Url = url, - Context = context, - FileId = fileId, - }; - - return await CreateWByWIdAssistantConversationsByCIdContentFragmentAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs deleted file mode 100644 index a62fec1..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdParticipants.g.cs +++ /dev/null @@ -1,459 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdParticipantsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdParticipantsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdParticipantsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdParticipantsSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdParticipantsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareCreateWByWIdAssistantConversationsByCIdParticipantsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessCreateWByWIdAssistantConversationsByCIdParticipantsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Add a participant to a conversation
- /// Adds the authenticated user as a participant to a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdParticipantsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await CreateWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Add a participant to a conversation
- /// Adds the authenticated user as a participant to a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdParticipantsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdParticipantsSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/participants", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdParticipantsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdParticipantsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdParticipants", - methodName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdParticipants", - methodName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdParticipants", - methodName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdParticipantsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdParticipants", - methodName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdParticipants", - methodName: "CreateWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs deleted file mode 100644 index 968dc7e..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.CreateWByWIdAssistantConversationsByCIdSelectedSpaces.g.cs +++ /dev/null @@ -1,534 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdSelectedSpacesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdSelectedSpacesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdSelectedSpacesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdSelectedSpacesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsSelectedSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdSelectedSpacesArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdSelectedSpacesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdSelectedSpacesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdSelectedSpaces", - methodName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdSelectedSpaces", - methodName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdSelectedSpaces", - methodName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdSelectedSpacesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdSelectedSpaces", - methodName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdSelectedSpaces", - methodName: "CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selected_spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdSelectedSpacesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsSelectedSpacesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsSelectedSpacesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Select Spaces for a conversation
- /// Appends regular Spaces to a conversation's explicit selected scope. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync( - string wId, - string cId, - global::System.Collections.Generic.IList spaceIds, - global::Dust.CreateWAssistantConversationsSelectedSpacesRequestMode mode = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsSelectedSpacesRequest - { - Mode = mode, - SpaceIds = spaceIds, - }; - - return await CreateWByWIdAssistantConversationsByCIdSelectedSpacesAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index 8161f98..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,459 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdAssistantConversationsByCIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdAssistantConversationsByCIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdAssistantConversationsByCIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdAssistantConversationsByCIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdAssistantConversationsByCIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareDeleteWByWIdAssistantConversationsByCIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessDeleteWByWIdAssistantConversationsByCIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete or leave a conversation
- /// Delete a conversation or leave it if it is shared. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await DeleteWByWIdAssistantConversationsByCIdAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete or leave a conversation
- /// Delete a conversation or leave it if it is shared. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdAssistantConversationsByCIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdAssistantConversationsByCIdSecurityRequirements, - operationName: "DeleteWByWIdAssistantConversationsByCIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdAssistantConversationsByCIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdAssistantConversationsByCIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCId", - methodName: "DeleteWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCId", - methodName: "DeleteWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCId", - methodName: "DeleteWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdAssistantConversationsByCIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCId", - methodName: "DeleteWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCId", - methodName: "DeleteWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs deleted file mode 100644 index 95e3258..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.DeleteWByWIdAssistantConversationsByCIdWakeupsByWuId.g.cs +++ /dev/null @@ -1,523 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string wuId); - partial void PrepareDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string wuId); - partial void ProcessDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Cancel a wake-up
- /// Cancel a scheduled wake-up. Only the wake-up owner or a workspace admin can cancel. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync( - string wId, - string cId, - string wuId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsResponseAsync( - wId: wId, - cId: cId, - wuId: wuId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Cancel a wake-up
- /// Cancel a scheduled wake-up. Only the wake-up owner or a workspace admin can cancel. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsResponseAsync( - string wId, - string cId, - string wuId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - wuId: ref wuId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdSecurityRequirements, - operationName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - wuId: wuId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdWakeupsByWuId", - methodName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdWakeupsByWuId", - methodName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdWakeupsByWuId", - methodName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdWakeupsByWuId", - methodName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdWakeupsByWuId", - methodName: "DeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteWByWIdAssistantConversationsByCIdWakeupsByWuIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.DeleteWAssistantConversationsWakeupsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.DeleteWAssistantConversationsWakeupsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index ad04629..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.EditWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,526 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_EditWByWIdAssistantConversationsByCIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_EditWByWIdAssistantConversationsByCIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_EditWByWIdAssistantConversationsByCIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_EditWByWIdAssistantConversationsByCIdSecurityRequirement0, - }; - partial void PrepareEditWByWIdAssistantConversationsByCIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.OneOf request); - partial void PrepareEditWByWIdAssistantConversationsByCIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.OneOf request); - partial void ProcessEditWByWIdAssistantConversationsByCIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditWByWIdAssistantConversationsByCIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - - global::Dust.OneOf request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditWByWIdAssistantConversationsByCIdAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> EditWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - - global::Dust.OneOf request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareEditWByWIdAssistantConversationsByCIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditWByWIdAssistantConversationsByCIdSecurityRequirements, - operationName: "EditWByWIdAssistantConversationsByCIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}", - baseUri: ResolveBaseUri( - servers: s_EditWByWIdAssistantConversationsByCIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditWByWIdAssistantConversationsByCIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdAssistantConversationsByCId", - methodName: "EditWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdAssistantConversationsByCId", - methodName: "EditWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdAssistantConversationsByCId", - methodName: "EditWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessEditWByWIdAssistantConversationsByCIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdAssistantConversationsByCId", - methodName: "EditWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdAssistantConversationsByCId", - methodName: "EditWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessEditWByWIdAssistantConversationsByCIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PatchWAssistantConversationsResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PatchWAssistantConversationsResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update a conversation
- /// Update a conversation's title, mark it as read, move it to a different space, or control URL access mode. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.OneOf - { - }; - - return await EditWByWIdAssistantConversationsByCIdAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversations.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversations.g.cs deleted file mode 100644 index e41254a..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversations.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId); - partial void PrepareGetWByWIdAssistantConversationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId); - partial void ProcessGetWByWIdAssistantConversationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List conversations
- /// Retrieve a paginated list of conversations for the authenticated user in the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsAsResponseAsync( - wId: wId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List conversations
- /// Retrieve a paginated list of conversations for the authenticated user in the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsArguments( - httpClient: HttpClient, - wId: ref wId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversations", - methodName: "GetWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversations", - methodName: "GetWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversations", - methodName: "GetWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversations", - methodName: "GetWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversations", - methodName: "GetWByWIdAssistantConversationsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs deleted file mode 100644 index 6429fa8..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCId.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a conversation
- /// Retrieve a specific conversation by its ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a conversation
- /// Retrieve a specific conversation by its ID. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCId", - methodName: "GetWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCId", - methodName: "GetWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCId", - methodName: "GetWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCId", - methodName: "GetWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCId", - methodName: "GetWByWIdAssistantConversationsByCIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs deleted file mode 100644 index 88c32aa..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdConsumptionServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdConsumptionSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdConsumptionSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdConsumptionSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdConsumptionArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdConsumptionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdConsumptionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdConsumptionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a conversation credit attribution
- /// Returns the latest stable credits billed for completed messages belonging directly to a conversation, plus an additive attribution reconciled exclusively through model input rows. In-progress messages are included after they reach a terminal state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdConsumptionAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdConsumptionAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a conversation credit attribution
- /// Returns the latest stable credits billed for completed messages belonging directly to a conversation, plus an additive attribution reconciled exclusively through model input rows. In-progress messages are included after they reach a terminal state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdConsumptionAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdConsumptionArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdConsumptionSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/consumption", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdConsumptionServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdConsumptionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdConsumptionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdConsumptionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsConsumptionResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsConsumptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs deleted file mode 100644 index aaa9868..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdFeedbacks.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdFeedbacksServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdFeedbacksSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdFeedbacksSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdFeedbacksSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdFeedbacksArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdFeedbacksRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdFeedbacksResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdFeedbacksResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get conversation feedbacks
- /// Retrieve all feedbacks for a conversation submitted by the authenticated user. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdFeedbacksAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdFeedbacksAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get conversation feedbacks
- /// Retrieve all feedbacks for a conversation submitted by the authenticated user. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdFeedbacksAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdFeedbacksArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdFeedbacksSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/feedbacks", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdFeedbacksServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdFeedbacksRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdFeedbacks", - methodName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/feedbacks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdFeedbacks", - methodName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/feedbacks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdFeedbacks", - methodName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/feedbacks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdFeedbacksResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdFeedbacks", - methodName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/feedbacks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdFeedbacks", - methodName: "GetWByWIdAssistantConversationsByCIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/feedbacks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdFeedbacksResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsFeedbacksResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsFeedbacksResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs deleted file mode 100644 index 77cae11..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdParticipants.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdParticipantsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdParticipantsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdParticipantsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdParticipantsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdParticipantsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdParticipantsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdParticipantsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdParticipantsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get conversation participants
- /// Returns the participants of a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdParticipantsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get conversation participants
- /// Returns the participants of a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdParticipantsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdParticipantsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdParticipantsSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/participants", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdParticipantsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdParticipantsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdParticipants", - methodName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdParticipants", - methodName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdParticipants", - methodName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdParticipantsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdParticipants", - methodName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdParticipants", - methodName: "GetWByWIdAssistantConversationsByCIdParticipantsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/participants\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdParticipantsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsParticipantsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsParticipantsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs deleted file mode 100644 index 1511e3d..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdSelectableSpaces.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdSelectableSpacesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdSelectableSpacesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdSelectableSpacesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdSelectableSpacesSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdSelectableSpacesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdSelectableSpacesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdSelectableSpacesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdSelectableSpacesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List selectable Spaces
- /// Lists regular Spaces the user can select for a conversation, with current selection state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdSelectableSpacesAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List selectable Spaces
- /// Lists regular Spaces the user can select for a conversation, with current selection state. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdSelectableSpacesAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdSelectableSpacesArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdSelectableSpacesSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdSelectableSpacesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdSelectableSpacesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdSelectableSpaces", - methodName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdSelectableSpaces", - methodName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdSelectableSpaces", - methodName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdSelectableSpacesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdSelectableSpaces", - methodName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdSelectableSpaces", - methodName: "GetWByWIdAssistantConversationsByCIdSelectableSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdSelectableSpacesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsSelectableSpacesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsSelectableSpacesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs deleted file mode 100644 index 677cf76..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.GetWByWIdAssistantConversationsByCIdWakeups.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateConversationsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdWakeupsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdWakeupsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdWakeupsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdWakeupsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdWakeupsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdWakeupsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdWakeupsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdWakeupsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List wake-ups for a conversation
- /// Retrieve all wake-ups scheduled in a conversation (any status). - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdWakeupsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdWakeupsAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List wake-ups for a conversation
- /// Retrieve all wake-ups scheduled in a conversation (any status). - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdWakeupsAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdWakeupsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdWakeupsSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/wakeups", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdWakeupsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdWakeupsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdWakeups", - methodName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdWakeups", - methodName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdWakeups", - methodName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdWakeupsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdWakeups", - methodName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdWakeups", - methodName: "GetWByWIdAssistantConversationsByCIdWakeupsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/wakeups\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdWakeupsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsWakeupsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsWakeupsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateConversationsClient.g.cs deleted file mode 100644 index 48a8ad7..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateConversationsClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Conversations
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateConversationsClient : global::Dust.IPrivateConversationsClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateConversationsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateConversationsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateConversationsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateConversationsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateConversationsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateConversationsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs b/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs deleted file mode 100644 index 3b1be7a..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdEvents.g.cs +++ /dev/null @@ -1,392 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateEventsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdEventsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdEventsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdEventsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdEventsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdEventsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdEventsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdEventsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Stream conversation events
- /// Stream real-time conversation events using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Collections.Generic.IAsyncEnumerable GetWByWIdAssistantConversationsByCIdEventsAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdEventsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdEventsSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdEventsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/events", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdEventsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdEventsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdEventsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - try - { - __response.EnsureSuccessStatusCode(); - } - catch (global::System.Net.Http.HttpRequestException __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - using var __stream = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser - .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) - { - var __content = __sseEvent.Data; - if (__content == "[DONE]") - { - yield break; - } - - var __streamedResponse = global::Dust.PrivateConversationEvent.FromJson(__content, JsonSerializerContext) ?? - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: $"Response deserialization failed for \"{__content}\" ", - innerException: null, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - - yield return __streamedResponse; - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs b/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs deleted file mode 100644 index 2710c56..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateEventsClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdEvents.g.cs +++ /dev/null @@ -1,398 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateEventsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Stream message events
- /// Stream real-time events for a specific agent message using Server-Sent Events (SSE). Only available for agent messages. This endpoint is redirected to /api/sse/ for SSE traffic routing. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Collections.Generic.IAsyncEnumerable GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdEventsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdEvents", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdEventsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - try - { - __response.EnsureSuccessStatusCode(); - } - catch (global::System.Net.Http.HttpRequestException __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - using var __stream = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser - .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) - { - var __content = __sseEvent.Data; - if (__content == "[DONE]") - { - yield break; - } - - var __streamedResponse = global::Dust.PrivateAgentMessageEvent.FromJson(__content, JsonSerializerContext) ?? - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: $"Response deserialization failed for \"{__content}\" ", - innerException: null, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - - yield return __streamedResponse; - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateEventsClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateEventsClient.g.cs deleted file mode 100644 index 5f323a2..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateEventsClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - SSE event streams
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateEventsClient : global::Dust.IPrivateEventsClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateEventsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateEventsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateEventsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateEventsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateEventsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateEventsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateExtensionClient.GetWByWIdExtensionConfig.g.cs b/src/libs/Dust/Generated/Dust.PrivateExtensionClient.GetWByWIdExtensionConfig.g.cs deleted file mode 100644 index 903c69f..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateExtensionClient.GetWByWIdExtensionConfig.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateExtensionClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdExtensionConfigServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdExtensionConfigSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdExtensionConfigSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdExtensionConfigSecurityRequirement0, - }; - partial void PrepareGetWByWIdExtensionConfigArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId); - partial void PrepareGetWByWIdExtensionConfigRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId); - partial void ProcessGetWByWIdExtensionConfigResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdExtensionConfigResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get extension configuration
- /// Returns the extension configuration for the workspace, including blacklisted domains. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdExtensionConfigAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdExtensionConfigAsResponseAsync( - wId: wId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get extension configuration
- /// Returns the extension configuration for the workspace, including blacklisted domains. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdExtensionConfigAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdExtensionConfigArguments( - httpClient: HttpClient, - wId: ref wId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdExtensionConfigSecurityRequirements, - operationName: "GetWByWIdExtensionConfigAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/extension/config", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdExtensionConfigServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdExtensionConfigRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdExtensionConfig", - methodName: "GetWByWIdExtensionConfigAsync", - pathTemplate: "$\"/api/w/{wId}/extension/config\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdExtensionConfig", - methodName: "GetWByWIdExtensionConfigAsync", - pathTemplate: "$\"/api/w/{wId}/extension/config\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdExtensionConfig", - methodName: "GetWByWIdExtensionConfigAsync", - pathTemplate: "$\"/api/w/{wId}/extension/config\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdExtensionConfigResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdExtensionConfig", - methodName: "GetWByWIdExtensionConfigAsync", - pathTemplate: "$\"/api/w/{wId}/extension/config\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdExtensionConfig", - methodName: "GetWByWIdExtensionConfigAsync", - pathTemplate: "$\"/api/w/{wId}/extension/config\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdExtensionConfigResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PrivateExtensionConfig.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PrivateExtensionConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateExtensionClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateExtensionClient.g.cs deleted file mode 100644 index b19ffa5..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateExtensionClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Extension configuration
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateExtensionClient : global::Dust.IPrivateExtensionClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateExtensionClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateExtensionClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateExtensionClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateExtensionClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateExtensionClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateExtensionClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFiles.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFiles.g.cs deleted file mode 100644 index 1c9ee56..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFiles.g.cs +++ /dev/null @@ -1,563 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateFilesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdFilesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdFilesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdFilesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdFilesSecurityRequirement0, - }; - partial void PrepareCreateWByWIdFilesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - global::Dust.CreateWFilesRequest3 request); - partial void PrepareCreateWByWIdFilesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - global::Dust.CreateWFilesRequest3 request); - partial void ProcessCreateWByWIdFilesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdFilesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdFilesAsync( - string wId, - - global::Dust.CreateWFilesRequest3 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdFilesAsResponseAsync( - wId: wId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdFilesAsResponseAsync( - string wId, - - global::Dust.CreateWFilesRequest3 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdFilesArguments( - httpClient: HttpClient, - wId: ref wId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdFilesSecurityRequirements, - operationName: "CreateWByWIdFilesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/files", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdFilesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdFilesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFiles", - methodName: "CreateWByWIdFilesAsync", - pathTemplate: "$\"/api/w/{wId}/files\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFiles", - methodName: "CreateWByWIdFilesAsync", - pathTemplate: "$\"/api/w/{wId}/files\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFiles", - methodName: "CreateWByWIdFilesAsync", - pathTemplate: "$\"/api/w/{wId}/files\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdFilesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFiles", - methodName: "CreateWByWIdFilesAsync", - pathTemplate: "$\"/api/w/{wId}/files\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFiles", - methodName: "CreateWByWIdFilesAsync", - pathTemplate: "$\"/api/w/{wId}/files\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - responseBody: __content_429, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdFilesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWFilesResponse3.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWFilesResponse3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create a file upload
- /// Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL. - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdFilesAsync( - string wId, - string contentType, - string fileName, - double fileSize, - global::Dust.CreateWFilesRequestUseCase useCase, - object? useCaseMetadata = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWFilesRequest3 - { - ContentType = contentType, - FileName = fileName, - FileSize = fileSize, - UseCase = useCase, - UseCaseMetadata = useCaseMetadata, - }; - - return await CreateWByWIdFilesAsync( - wId: wId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs deleted file mode 100644 index ce03dbe..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,639 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateFilesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdFilesByFileIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdFilesByFileIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdFilesByFileIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdFilesByFileIdSecurityRequirement0, - }; - partial void PrepareCreateWByWIdFilesByFileIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string fileId, - global::Dust.CreateWFilesRequest2 request); - partial void PrepareCreateWByWIdFilesByFileIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string fileId, - global::Dust.CreateWFilesRequest2 request); - partial void ProcessCreateWByWIdFilesByFileIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdFilesByFileIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdFilesByFileIdAsync( - string wId, - string fileId, - - global::Dust.CreateWFilesRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdFilesByFileIdAsResponseAsync( - wId: wId, - fileId: fileId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - - global::Dust.CreateWFilesRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdFilesByFileIdArguments( - httpClient: HttpClient, - wId: ref wId, - fileId: ref fileId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdFilesByFileIdSecurityRequirements, - operationName: "CreateWByWIdFilesByFileIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/files/{fileId}", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdFilesByFileIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - if (request.File != default) - { - - var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); - __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Filename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentFile, - name: "\"file\"", - fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); - if (__contentFile.Headers.ContentDisposition != null) - { - __contentFile.Headers.ContentDisposition.FileNameStar = null; - } - - } - - __httpRequest.Content = __httpRequestContent; - - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdFilesByFileIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - fileId: fileId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFilesByFileId", - methodName: "CreateWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFilesByFileId", - methodName: "CreateWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFilesByFileId", - methodName: "CreateWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdFilesByFileIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFilesByFileId", - methodName: "CreateWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdFilesByFileId", - methodName: "CreateWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdFilesByFileIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWFilesResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWFilesResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Upload file content
- /// Process and store the uploaded file content. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdFilesByFileIdAsync( - string wId, - string fileId, - byte[]? file = default, - string? filename = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWFilesRequest2 - { - File = file, - Filename = filename, - }; - - return await CreateWByWIdFilesByFileIdAsync( - wId: wId, - fileId: fileId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs deleted file mode 100644 index 98d8577..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.DeleteWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,523 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateFilesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdFilesByFileIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdFilesByFileIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdFilesByFileIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdFilesByFileIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdFilesByFileIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string fileId); - partial void PrepareDeleteWByWIdFilesByFileIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string fileId); - partial void ProcessDeleteWByWIdFilesByFileIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete a file
- /// Delete a file from the workspace. Files referenced by a skill or its version history cannot be deleted. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdFilesByFileIdAsync( - string wId, - string fileId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await DeleteWByWIdFilesByFileIdAsResponseAsync( - wId: wId, - fileId: fileId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete a file
- /// Delete a file from the workspace. Files referenced by a skill or its version history cannot be deleted. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdFilesByFileIdArguments( - httpClient: HttpClient, - wId: ref wId, - fileId: ref fileId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdFilesByFileIdSecurityRequirements, - operationName: "DeleteWByWIdFilesByFileIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/files/{fileId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdFilesByFileIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdFilesByFileIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - fileId: fileId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdFilesByFileId", - methodName: "DeleteWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdFilesByFileId", - methodName: "DeleteWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdFilesByFileId", - methodName: "DeleteWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdFilesByFileIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdFilesByFileId", - methodName: "DeleteWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdFilesByFileId", - methodName: "DeleteWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.GetWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.GetWByWIdFilesByFileId.g.cs deleted file mode 100644 index 20d7e83..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.GetWByWIdFilesByFileId.g.cs +++ /dev/null @@ -1,925 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateFilesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdFilesByFileIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdFilesByFileIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdFilesByFileIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdFilesByFileIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdFilesByFileIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string fileId, - ref global::Dust.GetWFilesVersion? version, - ref global::Dust.GetWFilesAction? action); - partial void PrepareGetWByWIdFilesByFileIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string fileId, - global::Dust.GetWFilesVersion? version, - global::Dust.GetWFilesAction? action); - partial void ProcessGetWByWIdFilesByFileIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdFilesByFileIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref byte[] content); - - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdFilesByFileIdAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdFilesByFileIdAsResponseAsync( - wId: wId, - fileId: fileId, - version: version, - action: action, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdFilesByFileIdAsStreamAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdFilesByFileIdArguments( - httpClient: HttpClient, - wId: ref wId, - fileId: ref fileId, - version: ref version, - action: ref action); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdFilesByFileIdSecurityRequirements, - operationName: "GetWByWIdFilesByFileIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/files/{fileId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdFilesByFileIdServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("version", version?.ToValueString()) - .AddOptionalParameter("action", action?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdFilesByFileIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - fileId: fileId!, - version: version, - action: action); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - try - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdFilesByFileIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 302) - { - string? __content_302 = null; - global::System.Exception? __exception_302 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_302 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_302, - responseBody: __content_302, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - try - { - __response.EnsureSuccessStatusCode(); - - var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::Dust.ResponseStream(__response, __content); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - } - catch - { - __response.Dispose(); - throw; - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Get or download a file
- /// View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdFilesByFileIdAsResponseAsync( - string wId, - string fileId, - global::Dust.GetWFilesVersion? version = default, - global::Dust.GetWFilesAction? action = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdFilesByFileIdArguments( - httpClient: HttpClient, - wId: ref wId, - fileId: ref fileId, - version: ref version, - action: ref action); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdFilesByFileIdSecurityRequirements, - operationName: "GetWByWIdFilesByFileIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/files/{fileId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdFilesByFileIdServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("version", version?.ToValueString()) - .AddOptionalParameter("action", action?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdFilesByFileIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - fileId: fileId!, - version: version, - action: action); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdFilesByFileIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFilesByFileId", - methodName: "GetWByWIdFilesByFileIdAsync", - pathTemplate: "$\"/api/w/{wId}/files/{fileId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 302) - { - string? __content_302 = null; - global::System.Exception? __exception_302 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_302 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_302 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_302 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_302, - responseBody: __content_302, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsByteArrayAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessGetWByWIdFilesByFileIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: null, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsByteArrayAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.g.cs deleted file mode 100644 index a9776c7..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - File uploads
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateFilesClient : global::Dust.IPrivateFilesClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateFilesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateFilesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateFilesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateFilesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateFilesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateFilesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs b/src/libs/Dust/Generated/Dust.PrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs deleted file mode 100644 index a32a778..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMentionsClient.GetWByWIdAssistantMentionsSuggestions.g.cs +++ /dev/null @@ -1,515 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMentionsClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantMentionsSuggestionsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantMentionsSuggestionsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantMentionsSuggestionsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantMentionsSuggestionsSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantMentionsSuggestionsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string? query, - ref global::Dust.GetWAssistantMentionsSuggestionsSelect? select, - ref global::Dust.GetWAssistantMentionsSuggestionsCurrent? current, - ref string? spaceId); - partial void PrepareGetWByWIdAssistantMentionsSuggestionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string? query, - global::Dust.GetWAssistantMentionsSuggestionsSelect? select, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? current, - string? spaceId); - partial void ProcessGetWByWIdAssistantMentionsSuggestionsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantMentionsSuggestionsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get mention suggestions
- /// Returns mention suggestions for the workspace. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantMentionsSuggestionsAsync( - string wId, - string? query = default, - global::Dust.GetWAssistantMentionsSuggestionsSelect? select = default, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? current = default, - string? spaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantMentionsSuggestionsAsResponseAsync( - wId: wId, - query: query, - select: select, - current: current, - spaceId: spaceId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get mention suggestions
- /// Returns mention suggestions for the workspace. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantMentionsSuggestionsAsResponseAsync( - string wId, - string? query = default, - global::Dust.GetWAssistantMentionsSuggestionsSelect? select = default, - global::Dust.GetWAssistantMentionsSuggestionsCurrent? current = default, - string? spaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantMentionsSuggestionsArguments( - httpClient: HttpClient, - wId: ref wId, - query: ref query, - select: ref select, - current: ref current, - spaceId: ref spaceId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantMentionsSuggestionsSecurityRequirements, - operationName: "GetWByWIdAssistantMentionsSuggestionsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/mentions/suggestions", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantMentionsSuggestionsServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("query", query) - .AddOptionalParameter("select", select?.ToValueString()) - .AddOptionalParameter("current", current?.ToValueString()) - .AddOptionalParameter("spaceId", spaceId) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantMentionsSuggestionsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - query: query, - select: select, - current: current, - spaceId: spaceId); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantMentionsSuggestions", - methodName: "GetWByWIdAssistantMentionsSuggestionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/mentions/suggestions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantMentionsSuggestions", - methodName: "GetWByWIdAssistantMentionsSuggestionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/mentions/suggestions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantMentionsSuggestions", - methodName: "GetWByWIdAssistantMentionsSuggestionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/mentions/suggestions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantMentionsSuggestionsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantMentionsSuggestions", - methodName: "GetWByWIdAssistantMentionsSuggestionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/mentions/suggestions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantMentionsSuggestions", - methodName: "GetWByWIdAssistantMentionsSuggestionsAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/mentions/suggestions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantMentionsSuggestionsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantMentionsSuggestionsResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantMentionsSuggestionsResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMentionsClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateMentionsClient.g.cs deleted file mode 100644 index 5283ac1..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMentionsClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Mention suggestions
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateMentionsClient : global::Dust.IPrivateMentionsClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateMentionsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMentionsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateMentionsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMentionsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateMentionsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMentionsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs deleted file mode 100644 index 5ee2cdf..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessages.g.cs +++ /dev/null @@ -1,545 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdMessagesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdMessagesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdMessagesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdMessagesSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - global::Dust.CreateWAssistantConversationsMessagesRequest request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - global::Dust.CreateWAssistantConversationsMessagesRequest request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsMessagesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - wId: wId, - cId: cId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - string wId, - string cId, - - global::Dust.CreateWAssistantConversationsMessagesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdMessagesSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdMessagesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessages", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessages", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessages", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessages", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessages", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsMessagesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Post a message to a conversation
- /// Post a new user message to an existing conversation, triggering agent responses. - ///
- /// - /// - /// - /// - /// - /// - /// - /// Optional per-message model override from the input-bar model picker (an explicit model pick). - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - string content, - global::System.Collections.Generic.IList mentions, - global::Dust.CreateWAssistantConversationsMessagesRequestContext context, - bool? skipToolsValidation = default, - global::Dust.CreateWAssistantConversationsMessagesRequestModelSelection? modelSelection = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsMessagesRequest - { - Content = content, - Mentions = mentions, - Context = context, - SkipToolsValidation = skipToolsValidation, - ModelSelection = modelSelection, - }; - - return await CreateWByWIdAssistantConversationsByCIdMessagesAsync( - wId: wId, - cId: cId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs deleted file mode 100644 index 976041f..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdEdit.g.cs +++ /dev/null @@ -1,546 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId, - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId, - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsResponseAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesEditRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdEdit", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdEdit", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdEdit", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdEdit", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdEdit", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdEditResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsMessagesEditResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsMessagesEditResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Edit a message
- /// Edit the content and mentions of an existing user message in a conversation. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync( - string wId, - string cId, - string mId, - string content, - global::System.Collections.Generic.IList mentions, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsMessagesEditRequest2 - { - Content = content, - Mentions = mentions, - }; - - return await CreateWByWIdAssistantConversationsByCIdMessagesByMIdEditAsync( - wId: wId, - cId: cId, - mId: mId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs deleted file mode 100644 index 99d3fe7..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs +++ /dev/null @@ -1,549 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request); - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request); - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - string wId, - string cId, - string mId, - - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Submit message feedback
- /// Create or update feedback (thumbs up/down) for a specific agent message. - ///
- /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2 thumbDirection, - string? feedbackContent = default, - bool? isConversationShared = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest2 - { - ThumbDirection = thumbDirection, - FeedbackContent = feedbackContent, - IsConversationShared = isConversationShared, - }; - - return await CreateWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - wId: wId, - cId: cId, - mId: mId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs deleted file mode 100644 index 8104893..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetry.g.cs +++ /dev/null @@ -1,491 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetrySecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetrySecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetrySecurityRequirement0, - }; - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Retry an agent message
- /// Retry generating an agent message response, optionally retrying only blocked actions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Retry an agent message
- /// Retry generating an agent message response, optionally retrying only blocked actions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetrySecurityRequirements, - operationName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdRetry", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdRetry", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdRetry", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdRetry", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdAssistantConversationsByCIdMessagesByMIdRetry", - methodName: "CreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdAssistantConversationsByCIdMessagesByMIdRetryResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWAssistantConversationsMessagesRetryResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWAssistantConversationsMessagesRetryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs deleted file mode 100644 index 54fc326..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMId.g.cs +++ /dev/null @@ -1,523 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete a message
- /// Soft-delete a user or agent message from a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete a message
- /// Soft-delete a user or agent message from a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirements, - operationName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.DeleteWAssistantConversationsMessagesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.DeleteWAssistantConversationsMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs deleted file mode 100644 index 247d013..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks.g.cs +++ /dev/null @@ -1,491 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete message feedback
- /// Remove the authenticated user's feedback for a specific agent message. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete message feedback
- /// Remove the authenticated user's feedback for a specific agent message. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksSecurityRequirements, - operationName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacks", - methodName: "DeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteWByWIdAssistantConversationsByCIdMessagesByMIdFeedbacksResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs deleted file mode 100644 index ad159ac..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessages.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdMessagesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdMessagesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdMessagesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdMessagesSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId); - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId); - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List messages in a conversation
- /// Retrieve a paginated list of messages for a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - wId: wId, - cId: cId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List messages in a conversation
- /// Retrieve a paginated list of messages for a specific conversation. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesAsResponseAsync( - string wId, - string cId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdMessagesArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdMessagesSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdMessagesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdMessagesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdMessagesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessages", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessages", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessages", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdMessagesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessages", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessages", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdMessagesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsMessagesResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsMessagesResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs deleted file mode 100644 index c69255c..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMId.g.cs +++ /dev/null @@ -1,523 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a message
- /// Retrieve a specific message by its ID within a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a message
- /// Retrieve a specific message by its ID within a conversation. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsMessagesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsMessagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs deleted file mode 100644 index 75b8fd1..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId.g.cs +++ /dev/null @@ -1,564 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId, - ref string aId); - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId, - string aId); - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a single action
- /// Retrieve a single action by its ID within an agent message, along with the message status. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync( - string wId, - string cId, - string mId, - string aId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - aId: aId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a single action
- /// Retrieve a single action by its ID within an agent message, along with the message status. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsResponseAsync( - string wId, - string cId, - string mId, - string aId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId, - aId: ref aId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!, - aId: aId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAId", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdActionsByAIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsMessagesActionsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsMessagesActionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs deleted file mode 100644 index 0c3c4f4..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumption.g.cs +++ /dev/null @@ -1,523 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateMessagesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionSecurityRequirement0, - }; - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string cId, - ref string mId); - partial void PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string cId, - string mId); - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get an agent message credit attribution
- /// Returns direct and total billed credits. Run-agent tool rows combine invocation cost with the bill of their sub-agent subtree. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsResponseAsync( - wId: wId, - cId: cId, - mId: mId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get an agent message credit attribution
- /// Returns direct and total billed credits. Run-agent tool rows combine invocation cost with the bill of their sub-agent subtree. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsResponseAsync( - string wId, - string cId, - string mId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionArguments( - httpClient: HttpClient, - wId: ref wId, - cId: ref cId, - mId: ref mId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionSecurityRequirements, - operationName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - cId: cId!, - mId: mId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdAssistantConversationsByCIdMessagesByMIdConsumption", - methodName: "GetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionAsync", - pathTemplate: "$\"/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdAssistantConversationsByCIdMessagesByMIdConsumptionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWAssistantConversationsMessagesConsumptionResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWAssistantConversationsMessagesConsumptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateMessagesClient.g.cs deleted file mode 100644 index 28fd0b6..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateMessagesClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Messages
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateMessagesClient : global::Dust.IPrivateMessagesClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateMessagesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMessagesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateMessagesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMessagesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateMessagesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateMessagesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpaces.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpaces.g.cs deleted file mode 100644 index 1c9cb56..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpaces.g.cs +++ /dev/null @@ -1,535 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdSpacesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdSpacesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdSpacesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdSpacesSecurityRequirement0, - }; - partial void PrepareCreateWByWIdSpacesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - global::Dust.CreateWSpacesRequest request); - partial void PrepareCreateWByWIdSpacesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - global::Dust.CreateWSpacesRequest request); - partial void ProcessCreateWByWIdSpacesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdSpacesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdSpacesAsync( - string wId, - - global::Dust.CreateWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdSpacesAsResponseAsync( - wId: wId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdSpacesAsResponseAsync( - string wId, - - global::Dust.CreateWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdSpacesArguments( - httpClient: HttpClient, - wId: ref wId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdSpacesSecurityRequirements, - operationName: "CreateWByWIdSpacesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdSpacesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdSpacesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpaces", - methodName: "CreateWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpaces", - methodName: "CreateWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpaces", - methodName: "CreateWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdSpacesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpaces", - methodName: "CreateWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpaces", - methodName: "CreateWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdSpacesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWSpacesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWSpacesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create a space
- /// Creates a new space in the workspace. - ///
- /// - /// - /// - /// - /// - /// The space's manual member list. Omitted or empty means the space starts with no manual member. - /// - /// - /// The groups given access to the space. Omitted or empty means no group has access to it. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdSpacesAsync( - string wId, - bool isRestricted, - string name, - global::Dust.CreateWSpacesRequestSpaceKind spaceKind, - global::System.Collections.Generic.IList? memberIds = default, - global::System.Collections.Generic.IList? groupIds = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWSpacesRequest - { - IsRestricted = isRestricted, - Name = name, - SpaceKind = spaceKind, - MemberIds = memberIds, - GroupIds = groupIds, - }; - - return await CreateWByWIdSpacesAsync( - wId: wId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs deleted file mode 100644 index 3e95467..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.CreateWByWIdSpacesBySpaceIdDataSourceViews.g.cs +++ /dev/null @@ -1,534 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_CreateWByWIdSpacesBySpaceIdDataSourceViewsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_CreateWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_CreateWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_CreateWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirement0, - }; - partial void PrepareCreateWByWIdSpacesBySpaceIdDataSourceViewsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - global::Dust.CreateWSpacesDataSourceViewsRequest request); - partial void PrepareCreateWByWIdSpacesBySpaceIdDataSourceViewsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.CreateWSpacesDataSourceViewsRequest request); - partial void ProcessCreateWByWIdSpacesBySpaceIdDataSourceViewsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateWByWIdSpacesBySpaceIdDataSourceViewsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - - global::Dust.CreateWSpacesDataSourceViewsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - wId: wId, - spaceId: spaceId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> CreateWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - string wId, - string spaceId, - - global::Dust.CreateWSpacesDataSourceViewsRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateWByWIdSpacesBySpaceIdDataSourceViewsArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirements, - operationName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/data_source_views", - baseUri: ResolveBaseUri( - servers: s_CreateWByWIdSpacesBySpaceIdDataSourceViewsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateWByWIdSpacesBySpaceIdDataSourceViewsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessCreateWByWIdSpacesBySpaceIdDataSourceViewsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "createWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWByWIdSpacesBySpaceIdDataSourceViewsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.CreateWSpacesDataSourceViewsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.CreateWSpacesDataSourceViewsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create a data source view
- /// Creates a new data source view in a specific space. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - string dataSourceId, - global::System.Collections.Generic.IList? parentsIn = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.CreateWSpacesDataSourceViewsRequest - { - DataSourceId = dataSourceId, - ParentsIn = parentsIn, - }; - - return await CreateWByWIdSpacesBySpaceIdDataSourceViewsAsync( - wId: wId, - spaceId: spaceId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index 53e41cb..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,494 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdSpacesBySpaceIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdSpacesBySpaceIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdSpacesBySpaceIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdSpacesBySpaceIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdSpacesBySpaceIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref global::Dust.DeleteWSpacesForce? force); - partial void PrepareDeleteWByWIdSpacesBySpaceIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.DeleteWSpacesForce? force); - partial void ProcessDeleteWByWIdSpacesBySpaceIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteWByWIdSpacesBySpaceIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete a space
- /// Deletes a specific space from the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - global::Dust.DeleteWSpacesForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteWByWIdSpacesBySpaceIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - force: force, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete a space
- /// Deletes a specific space from the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> DeleteWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - global::Dust.DeleteWSpacesForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdSpacesBySpaceIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - force: ref force); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdSpacesBySpaceIdSecurityRequirements, - operationName: "DeleteWByWIdSpacesBySpaceIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdSpacesBySpaceIdServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("force", force?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdSpacesBySpaceIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - force: force); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceId", - methodName: "DeleteWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceId", - methodName: "DeleteWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceId", - methodName: "DeleteWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdSpacesBySpaceIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceId", - methodName: "DeleteWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceId", - methodName: "DeleteWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteWByWIdSpacesBySpaceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.DeleteWSpacesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.DeleteWSpacesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index f5350e8..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,480 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0, - }; - partial void PrepareDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref string dsvId, - ref global::Dust.DeleteWSpacesDataSourceViewsForce? force); - partial void PrepareDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - string dsvId, - global::Dust.DeleteWSpacesDataSourceViewsForce? force); - partial void ProcessDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Delete a data source view
- /// Deletes a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.DeleteWSpacesDataSourceViewsForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - await DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - dsvId: dsvId, - force: force, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - /// - /// Delete a data source view
- /// Deletes a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.DeleteWSpacesDataSourceViewsForce? force = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - dsvId: ref dsvId, - force: ref force); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements, - operationName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}", - baseUri: ResolveBaseUri( - servers: s_DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("force", force?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - dsvId: dsvId!, - force: force); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "deleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "DeleteWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index cd972e4..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,534 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_EditWByWIdSpacesBySpaceIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_EditWByWIdSpacesBySpaceIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_EditWByWIdSpacesBySpaceIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_EditWByWIdSpacesBySpaceIdSecurityRequirement0, - }; - partial void PrepareEditWByWIdSpacesBySpaceIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - global::Dust.PatchWSpacesRequest request); - partial void PrepareEditWByWIdSpacesBySpaceIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.PatchWSpacesRequest request); - partial void ProcessEditWByWIdSpacesBySpaceIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditWByWIdSpacesBySpaceIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditWByWIdSpacesBySpaceIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareEditWByWIdSpacesBySpaceIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditWByWIdSpacesBySpaceIdSecurityRequirements, - operationName: "EditWByWIdSpacesBySpaceIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}", - baseUri: ResolveBaseUri( - servers: s_EditWByWIdSpacesBySpaceIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditWByWIdSpacesBySpaceIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceId", - methodName: "EditWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceId", - methodName: "EditWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceId", - methodName: "EditWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessEditWByWIdSpacesBySpaceIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceId", - methodName: "EditWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceId", - methodName: "EditWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessEditWByWIdSpacesBySpaceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PatchWSpacesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PatchWSpacesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update a space
- /// Updates the properties of a specific space. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - string? name = default, - global::System.Collections.Generic.IList? content = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.PatchWSpacesRequest - { - Name = name, - Content = content, - }; - - return await EditWByWIdSpacesBySpaceIdAsync( - wId: wId, - spaceId: spaceId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index 1771030..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,543 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0, - }; - partial void PrepareEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref string dsvId, - global::Dust.PatchWSpacesDataSourceViewsRequest2 request); - partial void PrepareEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - string dsvId, - global::Dust.PatchWSpacesDataSourceViewsRequest2 request); - partial void ProcessEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - - global::Dust.PatchWSpacesDataSourceViewsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - dsvId: dsvId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - - global::Dust.PatchWSpacesDataSourceViewsRequest2 request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - dsvId: ref dsvId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements, - operationName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}", - baseUri: ResolveBaseUri( - servers: s_EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - dsvId: dsvId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessEditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PatchWSpacesDataSourceViewsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PatchWSpacesDataSourceViewsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update a data source view
- /// Updates a specific data source view. - ///
- /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::System.Collections.Generic.IList? parentsIn = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.PatchWSpacesDataSourceViewsRequest2 - { - ParentsIn = parentsIn, - }; - - return await EditWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - wId: wId, - spaceId: spaceId, - dsvId: dsvId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs deleted file mode 100644 index 769d82f..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.EditWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs +++ /dev/null @@ -1,563 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirement0, - }; - partial void PrepareEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request); - partial void PrepareEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request); - partial void ProcessEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - wId: wId, - spaceId: spaceId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - string wId, - string spaceId, - - global::Dust.PatchWSpacesProjectNotificationPreferencesRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirements, - operationName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences", - baseUri: ResolveBaseUri( - servers: s_EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessEditWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PatchWSpacesProjectNotificationPreferencesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PatchWSpacesProjectNotificationPreferencesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Set project notification preference
- /// Sets the current user's notification preference for a project space. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - global::Dust.PatchWSpacesProjectNotificationPreferencesRequestPreference preference, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.PatchWSpacesProjectNotificationPreferencesRequest - { - Preference = preference, - }; - - return await EditWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - wId: wId, - spaceId: spaceId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpaces.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpaces.g.cs deleted file mode 100644 index eab1788..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpaces.g.cs +++ /dev/null @@ -1,495 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSpacesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSpacesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSpacesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSpacesSecurityRequirement0, - }; - partial void PrepareGetWByWIdSpacesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string? role, - global::System.Collections.Generic.IList? kind); - partial void PrepareGetWByWIdSpacesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string? role, - global::System.Collections.Generic.IList? kind); - partial void ProcessGetWByWIdSpacesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdSpacesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List spaces
- /// Returns all spaces in the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdSpacesAsync( - string wId, - string? role = default, - global::System.Collections.Generic.IList? kind = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdSpacesAsResponseAsync( - wId: wId, - role: role, - kind: kind, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List spaces
- /// Returns all spaces in the workspace. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdSpacesAsResponseAsync( - string wId, - string? role = default, - global::System.Collections.Generic.IList? kind = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdSpacesArguments( - httpClient: HttpClient, - wId: ref wId, - role: ref role, - kind: kind); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSpacesSecurityRequirements, - operationName: "GetWByWIdSpacesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdSpacesServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("role", role) - .AddOptionalParameter("kind", kind, selector: static x => x.ToValueString(), delimiter: ",", explode: true) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdSpacesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - role: role, - kind: kind); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpaces", - methodName: "GetWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpaces", - methodName: "GetWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpaces", - methodName: "GetWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdSpacesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpaces", - methodName: "GetWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpaces", - methodName: "GetWByWIdSpacesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdSpacesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWSpacesResponse3.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWSpacesResponse3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs deleted file mode 100644 index cc9ca68..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceId.g.cs +++ /dev/null @@ -1,494 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSpacesBySpaceIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSpacesBySpaceIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSpacesBySpaceIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSpacesBySpaceIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdSpacesBySpaceIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers); - partial void PrepareGetWByWIdSpacesBySpaceIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers); - partial void ProcessGetWByWIdSpacesBySpaceIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdSpacesBySpaceIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a space
- /// Returns the details of a specific space including categories, members, and permissions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdSpacesBySpaceIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - includeAllMembers: includeAllMembers, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a space
- /// Returns the details of a specific space including categories, members, and permissions. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdAsResponseAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesIncludeAllMembers? includeAllMembers = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdSpacesBySpaceIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - includeAllMembers: ref includeAllMembers); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSpacesBySpaceIdSecurityRequirements, - operationName: "GetWByWIdSpacesBySpaceIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdSpacesBySpaceIdServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("includeAllMembers", includeAllMembers?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdSpacesBySpaceIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - includeAllMembers: includeAllMembers); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceId", - methodName: "GetWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceId", - methodName: "GetWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceId", - methodName: "GetWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdSpacesBySpaceIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceId", - methodName: "GetWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceId", - methodName: "GetWByWIdSpacesBySpaceIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdSpacesBySpaceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWSpacesResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWSpacesResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs deleted file mode 100644 index e974a28..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViews.g.cs +++ /dev/null @@ -1,514 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSpacesBySpaceIdDataSourceViewsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirement0, - }; - partial void PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref global::Dust.GetWSpacesDataSourceViewsCategory? category, - ref global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails, - ref global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy); - partial void PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - global::Dust.GetWSpacesDataSourceViewsCategory? category, - global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy); - partial void ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List data source views
- /// Returns all data source views in a specific space. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdDataSourceViewsAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesDataSourceViewsCategory? category = default, - global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails = default, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - wId: wId, - spaceId: spaceId, - category: category, - withDetails: withDetails, - includeEditedBy: includeEditedBy, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List data source views
- /// Returns all data source views in a specific space. - ///
- /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdDataSourceViewsAsResponseAsync( - string wId, - string spaceId, - global::Dust.GetWSpacesDataSourceViewsCategory? category = default, - global::Dust.GetWSpacesDataSourceViewsWithDetails? withDetails = default, - global::Dust.GetWSpacesDataSourceViewsIncludeEditedBy? includeEditedBy = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - category: ref category, - withDetails: ref withDetails, - includeEditedBy: ref includeEditedBy); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSpacesBySpaceIdDataSourceViewsSecurityRequirements, - operationName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/data_source_views", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdSpacesBySpaceIdDataSourceViewsServers, - defaultBaseUrl: "https://dust.tt/")); - __pathBuilder - .AddOptionalParameter("category", category?.ToValueString()) - .AddOptionalParameter("withDetails", withDetails?.ToValueString()) - .AddOptionalParameter("includeEditedBy", includeEditedBy?.ToValueString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - category: category, - withDetails: withDetails, - includeEditedBy: includeEditedBy); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViews", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWSpacesDataSourceViewsResponse3.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWSpacesDataSourceViewsResponse3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs deleted file mode 100644 index d194405..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvId.g.cs +++ /dev/null @@ -1,491 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirement0, - }; - partial void PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId, - ref string dsvId); - partial void PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId, - string dsvId); - partial void ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get a data source view
- /// Returns the details of a specific data source view. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - wId: wId, - spaceId: spaceId, - dsvId: dsvId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get a data source view
- /// Returns the details of a specific data source view. - ///
- /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsResponseAsync( - string wId, - string spaceId, - string dsvId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId, - dsvId: ref dsvId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdSecurityRequirements, - operationName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!, - dsvId: dsvId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdDataSourceViewsByDsvId", - methodName: "GetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdSpacesBySpaceIdDataSourceViewsByDsvIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWSpacesDataSourceViewsResponse2.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWSpacesDataSourceViewsResponse2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs deleted file mode 100644 index 818f982..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.GetWByWIdSpacesBySpaceIdProjectNotificationPreferences.g.cs +++ /dev/null @@ -1,514 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateSpacesClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirement0, - }; - partial void PrepareGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId, - ref string spaceId); - partial void PrepareGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId, - string spaceId); - partial void ProcessGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get project notification preference
- /// Returns the current user's notification preference for a project space. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync( - string wId, - string spaceId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - wId: wId, - spaceId: spaceId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get project notification preference
- /// Returns the current user's notification preference for a project space. - ///
- /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsResponseAsync( - string wId, - string spaceId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesArguments( - httpClient: HttpClient, - wId: ref wId, - spaceId: ref spaceId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesSecurityRequirements, - operationName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!, - spaceId: spaceId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdSpacesBySpaceIdProjectNotificationPreferences", - methodName: "GetWByWIdSpacesBySpaceIdProjectNotificationPreferencesAsync", - pathTemplate: "$\"/api/w/{wId}/spaces/{spaceId}/project_notification_preferences\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdSpacesBySpaceIdProjectNotificationPreferencesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetWSpacesProjectNotificationPreferencesResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetWSpacesProjectNotificationPreferencesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateSpacesClient.g.cs deleted file mode 100644 index 37a08c2..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateSpacesClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Spaces and data source views
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateSpacesClient : global::Dust.IPrivateSpacesClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateSpacesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateSpacesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateSpacesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateSpacesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateSpacesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateSpacesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateUserClient.EditUser.g.cs b/src/libs/Dust/Generated/Dust.PrivateUserClient.EditUser.g.cs deleted file mode 100644 index f1fa698..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateUserClient.EditUser.g.cs +++ /dev/null @@ -1,557 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateUserClient - { - - private static readonly global::Dust.AutoSDKServer[] s_EditUserServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_EditUserSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_EditUserSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_EditUserSecurityRequirement0, - }; - partial void PrepareEditUserArguments( - global::System.Net.Http.HttpClient httpClient, - global::Dust.PatchUserRequest request); - partial void PrepareEditUserRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Dust.PatchUserRequest request); - partial void ProcessEditUserResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessEditUserResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditUserAsync( - - global::Dust.PatchUserRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await EditUserAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> EditUserAsResponseAsync( - - global::Dust.PatchUserRequest request, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareEditUserArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_EditUserSecurityRequirements, - operationName: "EditUserAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: "/api/user", - baseUri: ResolveBaseUri( - servers: s_EditUserServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareEditUserRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editUser", - methodName: "EditUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editUser", - methodName: "EditUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editUser", - methodName: "EditUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessEditUserResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editUser", - methodName: "EditUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "editUser", - methodName: "EditUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessEditUserResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PatchUserResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PatchUserResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update current user
- /// Update the authenticated user's profile (name, job type, favorite platforms, image). - ///
- /// - /// - /// - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task EditUserAsync( - string firstName, - string lastName, - string? jobType = default, - string? imageUrl = default, - global::System.Collections.Generic.IList? favoritePlatforms = default, - string? emailProvider = default, - string? workspaceId = default, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Dust.PatchUserRequest - { - FirstName = firstName, - LastName = lastName, - JobType = jobType, - ImageUrl = imageUrl, - FavoritePlatforms = favoritePlatforms, - EmailProvider = emailProvider, - WorkspaceId = workspaceId, - }; - - return await EditUserAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateUserClient.GetUser.g.cs b/src/libs/Dust/Generated/Dust.PrivateUserClient.GetUser.g.cs deleted file mode 100644 index 02e8704..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateUserClient.GetUser.g.cs +++ /dev/null @@ -1,464 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateUserClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetUserServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetUserSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetUserSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetUserSecurityRequirement0, - }; - partial void PrepareGetUserArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetUserRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetUserResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetUserResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get current user
- /// Returns the authenticated user with their workspaces and subscriber hash. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetUserAsync( - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetUserAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get current user
- /// Returns the authenticated user with their workspaces and subscriber hash. - ///
- /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetUserAsResponseAsync( - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetUserArguments( - httpClient: HttpClient); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetUserSecurityRequirements, - operationName: "GetUserAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: "/api/user", - baseUri: ResolveBaseUri( - servers: s_GetUserServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetUserRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getUser", - methodName: "GetUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getUser", - methodName: "GetUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getUser", - methodName: "GetUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetUserResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getUser", - methodName: "GetUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getUser", - methodName: "GetUserAsync", - pathTemplate: "\"/api/user\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetUserResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.GetUserResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.GetUserResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateUserClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateUserClient.g.cs deleted file mode 100644 index a2cf1b4..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateUserClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - User
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateUserClient : global::Dust.IPrivateUserClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateUserClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateUserClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateUserClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateUserClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateUserClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateUserClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs b/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs deleted file mode 100644 index 3e818a9..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.GetWByWIdFeatureFlags.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace Dust -{ - public partial class PrivateWorkspaceClient - { - - private static readonly global::Dust.AutoSDKServer[] s_GetWByWIdFeatureFlagsServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - - private static readonly global::Dust.EndPointSecurityRequirement s_GetWByWIdFeatureFlagsSecurityRequirement0 = - new global::Dust.EndPointSecurityRequirement - { - Authorizations = new global::Dust.EndPointAuthorizationRequirement[] - { new global::Dust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Dust.EndPointSecurityRequirement[] s_GetWByWIdFeatureFlagsSecurityRequirements = - new global::Dust.EndPointSecurityRequirement[] - { s_GetWByWIdFeatureFlagsSecurityRequirement0, - }; - partial void PrepareGetWByWIdFeatureFlagsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string wId); - partial void PrepareGetWByWIdFeatureFlagsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string wId); - partial void ProcessGetWByWIdFeatureFlagsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetWByWIdFeatureFlagsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get workspace feature flags
- /// Returns the list of enabled feature flags for the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetWByWIdFeatureFlagsAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetWByWIdFeatureFlagsAsResponseAsync( - wId: wId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get workspace feature flags
- /// Returns the list of enabled feature flags for the workspace. - ///
- /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> GetWByWIdFeatureFlagsAsResponseAsync( - string wId, - global::Dust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetWByWIdFeatureFlagsArguments( - httpClient: HttpClient, - wId: ref wId); - - - var __authorizations = global::Dust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetWByWIdFeatureFlagsSecurityRequirements, - operationName: "GetWByWIdFeatureFlagsAsync"); - - using var __timeoutCancellationTokenSource = global::Dust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Dust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Dust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Dust.PathBuilder( - path: $"/api/w/{wId}/feature-flags", - baseUri: ResolveBaseUri( - servers: s_GetWByWIdFeatureFlagsServers, - defaultBaseUrl: "https://dust.tt/")); - var __path = __pathBuilder.ToString(); - __path = global::Dust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Dust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetWByWIdFeatureFlagsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - wId: wId!); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Dust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFeatureFlags", - methodName: "GetWByWIdFeatureFlagsAsync", - pathTemplate: "$\"/api/w/{wId}/feature-flags\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFeatureFlags", - methodName: "GetWByWIdFeatureFlagsAsync", - pathTemplate: "$\"/api/w/{wId}/feature-flags\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Dust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Dust.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFeatureFlags", - methodName: "GetWByWIdFeatureFlagsAsync", - pathTemplate: "$\"/api/w/{wId}/feature-flags\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Dust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetWByWIdFeatureFlagsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFeatureFlags", - methodName: "GetWByWIdFeatureFlagsAsync", - pathTemplate: "$\"/api/w/{wId}/feature-flags\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Dust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Dust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "getWByWIdFeatureFlags", - methodName: "GetWByWIdFeatureFlagsAsync", - pathTemplate: "$\"/api/w/{wId}/feature-flags\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetWByWIdFeatureFlagsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Dust.PrivateFeatureFlags.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Dust.PrivateFeatureFlags.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Dust.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Dust.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Dust.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.g.cs b/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.g.cs deleted file mode 100644 index 5f35e43..0000000 --- a/src/libs/Dust/Generated/Dust.PrivateWorkspaceClient.g.cs +++ /dev/null @@ -1,292 +0,0 @@ - -#nullable enable - -namespace Dust -{ - /// - /// Private API - Workspace settings
- /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class PrivateWorkspaceClient : global::Dust.IPrivateWorkspaceClient, global::System.IDisposable - { - /// - /// Dust.tt API (us-central1) - /// - public const string DefaultBaseUrl = "https://dust.tt/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => ResolveDisplayedBaseUri(); - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Dust.AutoSDKClientOptions Options { get; } - - - internal global::Dust.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::Dust.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Dust.SourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - - private static readonly global::Dust.AutoSDKServer[] s_availableServers = new global::Dust.AutoSDKServer[] - { new global::Dust.AutoSDKServer( - id: "https-dust-tt", - name: "Dust.tt API (us-central1)", - url: "https://dust.tt/", - description: "Dust.tt API (us-central1)"), - new global::Dust.AutoSDKServer( - id: "https-eu-dust-tt", - name: "Dust.tt API (europe-west1)", - url: "https://eu.dust.tt/", - description: "Dust.tt API (europe-west1)"), - }; - - /// - /// The server options available for this client. - /// - public global::System.Collections.Generic.IReadOnlyList AvailableServers => s_availableServers; - - /// - /// The currently selected server for this client, if any. - /// - public global::Dust.AutoSDKServer? SelectedServer - { - get => ResolveSelectedServer(); - set => SelectServer(value); - } - - /// - /// Creates a new instance of the PrivateWorkspaceClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateWorkspaceClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateWorkspaceClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateWorkspaceClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the PrivateWorkspaceClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public PrivateWorkspaceClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::Dust.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Dust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - /// - /// Selects one of the generated server options by id. - /// - public bool TrySelectServer(string serverId) - { - if (string.IsNullOrWhiteSpace(serverId)) - { - return false; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, serverId, global::System.StringComparison.OrdinalIgnoreCase)) - { - AutoSDKServerConfiguration.SelectedServer = server; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return true; - } - } - - return false; - } - - /// - /// Clears the currently selected server. - /// - public void ClearSelectedServer() - { - AutoSDKServerConfiguration.SelectedServer = null; - } - - private global::Dust.AutoSDKServer? ResolveSelectedServer() - { - var selectedServer = AutoSDKServerConfiguration.SelectedServer; - if (selectedServer is null) - { - return null; - } - - foreach (var server in s_availableServers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server; - } - } - - return null; - } - - private void SelectServer(global::Dust.AutoSDKServer? server) - { - if (server is null) - { - AutoSDKServerConfiguration.SelectedServer = null; - return; - } - - foreach (var candidate in s_availableServers) - { - if (string.Equals(candidate.Id, server.Id, global::System.StringComparison.Ordinal)) - { - AutoSDKServerConfiguration.SelectedServer = candidate; - AutoSDKServerConfiguration.ExplicitBaseUri = null; - return; - } - } - - throw new global::System.ArgumentException("The provided server is not available for this client.", nameof(server)); - } - - private global::System.Uri? ResolveDisplayedBaseUri() - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - return ResolveSelectedServer()?.Uri ?? (s_availableServers.Length > 0 ? s_availableServers[0].Uri : HttpClient.BaseAddress); - } - - private global::System.Uri? ResolveBaseUri( - global::Dust.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::Dust.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/Dust/openapi.yaml b/src/libs/Dust/openapi.yaml index 789faed..31cecfd 100644 --- a/src/libs/Dust/openapi.yaml +++ b/src/libs/Dust/openapi.yaml @@ -20,10 +20,18 @@ } ], "tags": [ + { + "name": "Users", + "description": "User management" + }, { "name": "Agents", "description": "Agent configurations" }, + { + "name": "Analytics", + "description": "Workspace analytics" + }, { "name": "Apps", "description": "Dust apps" @@ -32,14 +40,14 @@ "name": "Conversations", "description": "Conversations" }, - { - "name": "DatasourceViews", - "description": "Data source views" - }, { "name": "Datasources", "description": "Data sources" }, + { + "name": "DatasourceViews", + "description": "Data source views" + }, { "name": "Feedbacks", "description": "Message feedbacks" @@ -56,14 +64,6 @@ "name": "Search", "description": "Search" }, - { - "name": "Tools", - "description": "Tools" - }, - { - "name": "Triggers", - "description": "Triggers" - }, { "name": "Skills", "description": "Skills" @@ -73,33 +73,37 @@ "description": "Spaces" }, { - "name": "Workspace", - "description": "Workspace" + "name": "Tools", + "description": "Tools" }, { - "name": "Private User", - "description": "Private API - User" + "name": "Triggers", + "description": "Triggers" }, { - "name": "Private Authentication", - "description": "Private API - Authentication (WorkOS)" + "name": "Workspace", + "description": "Workspace" }, { "name": "Private Agents", "description": "Private API - Agent configurations" }, { - "name": "Private Conversations", - "description": "Private API - Conversations" + "name": "Private Authentication", + "description": "Private API - Authentication (WorkOS)" }, { - "name": "Private Messages", - "description": "Private API - Messages" + "name": "Private Conversations", + "description": "Private API - Conversations" }, { "name": "Private Events", "description": "Private API - SSE event streams" }, + { + "name": "Private Extension", + "description": "Private API - Extension configuration" + }, { "name": "Private Files", "description": "Private API - File uploads" @@ -108,13 +112,17 @@ "name": "Private Mentions", "description": "Private API - Mention suggestions" }, + { + "name": "Private Messages", + "description": "Private API - Messages" + }, { "name": "Private Spaces", "description": "Private API - Spaces and data source views" }, { - "name": "Private Extension", - "description": "Private API - Extension configuration" + "name": "Private User", + "description": "Private API - User" }, { "name": "Private Workspace", @@ -122,48 +130,27 @@ } ], "paths": { - "/api/user": { - "get": { - "summary": "Get current user", - "description": "Returns the authenticated user with their workspaces and subscriber hash.", + "/api/v1/w/{wId}/analytics/consumption/export": { + "post": { + "summary": "Export consumption analytics", + "description": "Export per-call consumption analytics for the workspace identified by {wId}.\nEach row represents one unit of billed credit consumption (an LLM call or a tool call).\nThe export can be filtered by various dimensions (agents, users, API keys, groups, models, tools, skills, sources, tags).\nThe export is limited to a maximum of 30 days per request and times out after 10 seconds: reduce the time range\nor apply filters to reduce the number of rows if you encounter a timeout.\nResults are streamed, if an error occurs, an error message is appended and the stream is closed.\n", "tags": [ - "Private User" + "Analytics" ], "security": [ { "BearerAuth": [] } ], - "responses": { - "200": { - "description": "The authenticated user", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/PrivateUser" - } - } - } - } - } - }, - "404": { - "description": "User not found" - } - } - }, - "patch": { - "summary": "Update current user", - "description": "Update the authenticated user's profile (name, job type, favorite platforms, image).", - "tags": [ - "Private User" - ], - "security": [ + "parameters": [ { - "BearerAuth": [] + "in": "path", + "name": "wId", + "required": true, + "description": "Unique string identifier for the workspace", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -173,34 +160,107 @@ "schema": { "type": "object", "required": [ - "firstName", - "lastName" + "startDate", + "endDate" ], "properties": { - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" + "startDate": { + "type": "string", + "format": "date-time", + "description": "Start of the time range (inclusive), ISO 8601 datetime", + "example": "2026-01-01T00:00:00Z" }, - "jobType": { - "type": "string" + "endDate": { + "type": "string", + "format": "date-time", + "description": "End of the time range (exclusive), ISO 8601 datetime. Must be after startDate, at most 30 days apart.", + "example": "2026-01-15T00:00:00Z" }, - "imageUrl": { + "format": { "type": "string", - "nullable": true + "enum": [ + "csv", + "ndjson" + ], + "description": "Output format (defaults to csv)" }, - "favoritePlatforms": { - "type": "array", - "items": { - "type": "string" + "filter": { + "type": "object", + "description": "Optional dimension filters. Each key maps to an array of string identifiers to include.\nEach value must be at most 256 characters. The total number of values across all dimensions must not exceed 500.\n", + "properties": { + "agents": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Agent sIds to filter on" + }, + "users": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "User IDs to filter on" + }, + "api_keys": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "API key names to filter on" + }, + "groups": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Group IDs to filter on" + }, + "models": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Model IDs to filter on" + }, + "tools": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Tool server names to filter on" + }, + "skills": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Skill IDs to filter on" + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Context origins to filter on (e.g. \"web\", \"slack\", \"api\")" + }, + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 256 + }, + "description": "Agent tag IDs to filter on" + } } - }, - "emailProvider": { - "type": "string" - }, - "workspaceId": { - "type": "string" } } } @@ -209,25 +269,29 @@ }, "responses": { "200": { - "description": "User updated successfully", + "description": "The consumption data in CSV or NDJSON format", "content": { - "application/json": { + "text/csv": { "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } + "type": "string" + } + }, + "application/x-ndjson": { + "schema": { + "type": "string", + "description": "Newline-delimited JSON, one row object per line" } } } }, "400": { - "description": "Invalid request body" + "description": "Invalid request body (missing fields, invalid dates, range exceeds 30 days)" }, - "404": { - "description": "User not found" + "403": { + "description": "Requires an API key with admin scope" + }, + "500": { + "description": "Internal Server Error" } } } @@ -6299,8019 +6363,10 @@ } } } - }, - "/api/w/{wId}/analytics/consumption/facets": { - "post": { - "summary": "List consumption analytics facets", - "description": "Lists current entities and historical indexed values present in the selected period for each consumption dimension. The workspace route requires a manager; the /me route is restricted server-side to the authenticated member; the agent route is restricted server-side to workspace managers and editors of the selected agent. A facet is disabled when it has no indexed document in that period after applying every active filter except the facet's own dimension.", - "tags": [ - "Private Analytics" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "period": { - "type": "string", - "enum": [ - "cycle", - "days" - ], - "default": "cycle" - }, - "days": { - "type": "integer", - "minimum": 1, - "default": 30 - }, - "scope": { - "type": "string", - "enum": [ - "all", - "automations" - ], - "default": "all", - "description": "Restricts which documents the facets are computed over. `automations` counts only trigger-originated runs." - }, - "dimensions": { - "type": "array", - "description": "Dimensions to compute facets for. Defaults to every dimension. Omitted dimensions come back as empty arrays. The personal route omits user and group dimensions, and the agent route omits the agent dimension.", - "items": { - "type": "string", - "enum": [ - "agent", - "user", - "api_key", - "group", - "model", - "tool", - "skill", - "source" - ] - } - }, - "filter": { - "type": "object", - "description": "Map of consumption dimensions to selected values.", - "additionalProperties": false, - "properties": { - "agents": { - "type": "array", - "items": { - "type": "string" - } - }, - "users": { - "type": "array", - "items": { - "type": "string" - } - }, - "api_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "models": { - "type": "array", - "items": { - "type": "string" - } - }, - "tools": { - "type": "array", - "items": { - "type": "string" - } - }, - "skills": { - "type": "array", - "items": { - "type": "string" - } - }, - "sources": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Consumption facets and their contextual availability", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "period", - "facets" - ], - "properties": { - "period": { - "type": "object", - "required": [ - "startDate", - "endDate" - ], - "properties": { - "startDate": { - "type": "string", - "format": "date-time" - }, - "endDate": { - "type": "string", - "format": "date-time" - } - } - }, - "facets": { - "type": "object", - "required": [ - "agent", - "user", - "api_key", - "group", - "model", - "tool", - "skill", - "source" - ], - "properties": { - "agent": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "user": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "api_key": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "group": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "model": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "tool": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "skill": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - }, - "source": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConsumptionFacet" - } - } - } - } - } - } - } - } - }, - "400": { - "description": "Invalid request body" - }, - "403": { - "description": "Not authorized for this analytics view" - }, - "500": { - "description": "Failed to retrieve consumption facets" - } - } - } - }, - "/api/w/{wId}/me/analytics/consumption/facets": { - "$ref": "#/paths/~1api~1w~1{wId}~1analytics~1consumption~1facets" - }, - "/api/w/{wId}/assistant/agent_configurations/{aId}/analytics/consumption/facets": { - "$ref": "#/paths/~1api~1w~1{wId}~1analytics~1consumption~1facets" - }, - "/api/w/{wId}/assistant/agent_configurations": { - "get": { - "summary": "List agent configurations", - "description": "Returns all agent configurations in the workspace.", - "tags": [ - "Private Agents" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "view", - "required": false, - "description": "Filter agents by view", - "schema": { - "type": "string", - "enum": [ - "all", - "analytics", - "list", - "favorites", - "published", - "admin_internal", - "manage_unrestricted", - "global", - "workspace" - ] - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "description": "Maximum number of results to return", - "schema": { - "type": "integer" - } - }, - { - "in": "query", - "name": "withUsage", - "required": false, - "description": "Include usage statistics", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - }, - { - "in": "query", - "name": "withAuthors", - "required": false, - "description": "Include recent authors", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - }, - { - "in": "query", - "name": "withFeedbacks", - "required": false, - "description": "Include feedback counts", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - }, - { - "in": "query", - "name": "withEditors", - "required": false, - "description": "Include editors list", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - }, - { - "in": "query", - "name": "sort", - "required": false, - "description": "Sort order", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "agentConfigurations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateLightAgentConfiguration" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Create an agent configuration", - "description": "Creates a new agent configuration in the workspace.", - "tags": [ - "Private Agents" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "assistant" - ], - "properties": { - "assistant": { - "type": "object", - "description": "Agent configuration to create" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "agentConfiguration": { - "$ref": "#/components/schemas/PrivateLightAgentConfiguration" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/cancel": { - "post": { - "summary": "Cancel message generation", - "description": "Cancels the generation of messages in a conversation.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "action", - "messageIds" - ], - "properties": { - "action": { - "type": "string", - "enum": [ - "cancel", - "gracefully_stop", - "interrupt" - ] - }, - "messageIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/compactions": { - "post": { - "summary": "Compact a conversation", - "description": "Trigger compaction of a conversation, summarizing older messages into a compaction message. Requires a model to use for summary generation.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "model" - ], - "properties": { - "model": { - "type": "object", - "required": [ - "providerId", - "modelId" - ], - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - } - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Compaction started", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "compactionMessage": { - "$ref": "#/components/schemas/PrivateCompactionMessage" - } - } - } - } - } - }, - "400": { - "description": "Invalid request body" - }, - "404": { - "description": "Conversation not found" - }, - "409": { - "description": "Conflict — compaction or agent message is already running" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/consumption": { - "get": { - "summary": "Get a conversation credit attribution", - "description": "Returns the latest stable credits billed for completed messages belonging directly to a conversation, plus an additive attribution reconciled exclusively through model input rows. In-progress messages are included after they reach a terminal state.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Conversation credit attribution", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "billedCredits", - "details" - ], - "properties": { - "billedCredits": { - "type": "number", - "description": "Latest stable credits billed across completed messages belonging directly to the conversation." - }, - "details": { - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/PrivateConversationConsumptionDetails" - } - ], - "nullable": true - } - } - } - } - } - }, - "404": { - "description": "Conversation not found" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/content_fragment": { - "post": { - "summary": "Create a content fragment", - "description": "Post a new content fragment to an existing conversation.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "title", - "content", - "contentType", - "context" - ], - "properties": { - "title": { - "type": "string" - }, - "content": { - "type": "string" - }, - "contentType": { - "type": "string", - "description": "MIME type of the content" - }, - "url": { - "type": "string", - "nullable": true - }, - "context": { - "type": "object", - "properties": { - "profilePictureUrl": { - "type": "string", - "nullable": true - } - } - }, - "fileId": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Successfully created content fragment", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "contentFragment": { - "$ref": "#/components/schemas/PrivateContentFragment" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/events": { - "get": { - "summary": "Stream conversation events", - "description": "Stream real-time conversation events using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing.", - "tags": [ - "Private Events" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "SSE event stream. Each event is sent as `data: {json}\\n\\n`.\nEvents are discriminated by the `type` field.\n", - "content": { - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/PrivateConversationEvent" - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/feedbacks": { - "get": { - "summary": "Get conversation feedbacks", - "description": "Retrieve all feedbacks for a conversation submitted by the authenticated user.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved feedbacks", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "feedbacks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateFeedback" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}": { - "get": { - "summary": "Get a conversation", - "description": "Retrieve a specific conversation by its ID.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved conversation", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "conversation": { - "$ref": "#/components/schemas/PrivateConversation" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "summary": "Delete or leave a conversation", - "description": "Delete a conversation or leave it if it is shared.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully deleted or left conversation" - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "summary": "Update a conversation", - "description": "Update a conversation's title, mark it as read, move it to a different space, or control URL access mode.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "type": "object", - "required": [ - "title" - ], - "properties": { - "title": { - "type": "string" - } - } - }, - { - "type": "object", - "required": [ - "read" - ], - "properties": { - "read": { - "type": "boolean" - } - } - }, - { - "type": "object", - "required": [ - "spaceId" - ], - "properties": { - "spaceId": { - "type": "string" - } - } - }, - { - "type": "object", - "required": [ - "accessMode" - ], - "properties": { - "accessMode": { - "type": "string", - "enum": [ - "participants_only", - "workspace_members" - ] - } - } - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successfully updated conversation", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}": { - "get": { - "summary": "Get a single action", - "description": "Retrieve a single action by its ID within an agent message, along with the message status.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "aId", - "required": true, - "description": "ID of the action", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the action", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/PrivateAgentMCPAction" - }, - "messageStatus": { - "type": "string", - "enum": [ - "created", - "succeeded", - "failed", - "cancelled", - "gracefully_stopped" - ] - } - } - } - } - } - }, - "400": { - "description": "Invalid request (missing parameters or message is not an agent message)" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Conversation, message, or action not found" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption": { - "get": { - "summary": "Get an agent message credit attribution", - "description": "Returns direct and total billed credits. Run-agent tool rows combine invocation cost with the bill of their sub-agent subtree.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Credit attribution for the agent message", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "billedCredits", - "details" - ], - "properties": { - "billedCredits": { - "type": "number", - "nullable": true, - "description": "Authoritative credits billed directly for this agent message, excluding sub-agents." - }, - "totalBilledCredits": { - "type": "number", - "description": "Total credits billed by this message and its recursively spawned sub-agents." - }, - "details": { - "type": "object", - "nullable": true, - "description": "Additive attribution reconciled to totalBilledCredits through model input rows. Each run-agent tool row includes its sub-agent subtree's bill. Null when no stored version is complete.", - "required": [ - "attributionVersion", - "agentWorkCredits", - "tools" - ], - "properties": { - "attributionVersion": { - "type": "integer", - "description": "Attribution version used for this breakdown." - }, - "agentWorkCredits": { - "type": "number", - "description": "Non-tool work for the originating message after assigning billing reconciliation exclusively to model input rows." - }, - "tools": { - "type": "array", - "items": { - "type": "object", - "required": [ - "label", - "internalMCPServerName", - "toolName", - "callCount", - "attributedCredits", - "directCredits", - "pending" - ], - "properties": { - "label": { - "type": "string" - }, - "internalMCPServerName": { - "type": "string", - "nullable": true - }, - "toolName": { - "type": "string" - }, - "callCount": { - "type": "integer" - }, - "attributedCredits": { - "type": "number", - "description": "Share of total billed credits after input-only reconciliation. Run-agent tools include their sub-agent subtree's bill." - }, - "directCredits": { - "type": "number" - }, - "pending": { - "type": "boolean" - } - } - } - } - } - } - } - } - } - } - }, - "403": { - "description": "The workspace does not have access to consumption details" - }, - "404": { - "description": "Conversation or agent message not found" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit": { - "post": { - "summary": "Edit a message", - "description": "Edit the content and mentions of an existing user message in a conversation.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "content", - "mentions" - ], - "properties": { - "content": { - "type": "string" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateMention" - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Successfully edited message", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "$ref": "#/components/schemas/PrivateUserMessage" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events": { - "get": { - "summary": "Stream message events", - "description": "Stream real-time events for a specific agent message using Server-Sent Events (SSE). Only available for agent messages. This endpoint is redirected to /api/sse/ for SSE traffic routing.", - "tags": [ - "Private Events" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "SSE event stream. Each event is sent as `data: {json}\\n\\n`.\nEvents are discriminated by the `type` field. Each event payload also includes a `step` integer.\n", - "content": { - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/PrivateAgentMessageEvent" - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks": { - "post": { - "summary": "Submit message feedback", - "description": "Create or update feedback (thumbs up/down) for a specific agent message.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "thumbDirection" - ], - "properties": { - "thumbDirection": { - "type": "string", - "enum": [ - "up", - "down" - ] - }, - "feedbackContent": { - "type": "string", - "nullable": true - }, - "isConversationShared": { - "type": "boolean" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Successfully submitted feedback", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "summary": "Delete message feedback", - "description": "Remove the authenticated user's feedback for a specific agent message.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully deleted feedback", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}": { - "get": { - "summary": "Get a message", - "description": "Retrieve a specific message by its ID within a conversation.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved message", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateUserMessage" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessage" - }, - { - "$ref": "#/components/schemas/PrivateContentFragment" - } - ] - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Message or conversation not found" - } - } - }, - "delete": { - "summary": "Delete a message", - "description": "Soft-delete a user or agent message from a conversation.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully deleted message", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Message or conversation not found" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry": { - "post": { - "summary": "Retry an agent message", - "description": "Retry generating an agent message response, optionally retrying only blocked actions.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "mId", - "required": true, - "description": "ID of the message", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retried message", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "$ref": "#/components/schemas/PrivateAgentMessage" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/messages": { - "get": { - "summary": "List messages in a conversation", - "description": "Retrieve a paginated list of messages for a specific conversation.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved messages", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "messages": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateUserMessage" - }, - { - "$ref": "#/components/schemas/PrivateLightAgentMessage" - }, - { - "$ref": "#/components/schemas/PrivateContentFragment" - } - ] - } - }, - "hasMore": { - "type": "boolean" - }, - "lastValue": { - "type": "integer", - "nullable": true - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Post a message to a conversation", - "description": "Post a new user message to an existing conversation, triggering agent responses.", - "tags": [ - "Private Messages" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "content", - "context", - "mentions" - ], - "properties": { - "content": { - "type": "string" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateMention" - } - }, - "context": { - "type": "object", - "properties": { - "timezone": { - "type": "string" - }, - "profilePictureUrl": { - "type": "string", - "nullable": true - }, - "origin": { - "type": "string", - "nullable": true - }, - "clientSideMCPServerIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "selectedMCPServerViewIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "selectedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "skipToolsValidation": { - "type": "boolean" - }, - "modelSelection": { - "type": "object", - "description": "Optional per-message model override from the input-bar model picker (an explicit model pick).", - "required": [ - "providerId", - "modelId" - ], - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "reasoningEffort": { - "type": "string" - } - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Successfully posted message", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "$ref": "#/components/schemas/PrivateUserMessage" - }, - "contentFragments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateContentFragment" - } - }, - "agentMessages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateAgentMessage" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/participants": { - "get": { - "summary": "Get conversation participants", - "description": "Returns the participants of a specific conversation.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "participants": { - "type": "object", - "properties": { - "agents": { - "type": "array", - "items": { - "type": "object", - "properties": { - "configurationId": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - } - } - }, - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "fullName": { - "type": "string", - "nullable": true - }, - "pictureUrl": { - "type": "string", - "nullable": true - } - } - } - } - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Add a participant to a conversation", - "description": "Adds the authenticated user as a participant to a specific conversation.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "201": { - "description": "Successfully added participant" - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/selectable_spaces": { - "get": { - "summary": "List selectable Spaces", - "description": "Lists regular Spaces the user can select for a conversation, with current selection state.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Selectable Spaces for the conversation.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "spaces": { - "type": "array", - "items": { - "allOf": [ - { - "$ref": "#/components/schemas/PrivateSpace" - }, - { - "type": "object", - "properties": { - "selected": { - "type": "boolean" - } - } - } - ] - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/selected_spaces": { - "post": { - "summary": "Select Spaces for a conversation", - "description": "Appends regular Spaces to a conversation's explicit selected scope.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "mode", - "spaceIds" - ], - "properties": { - "mode": { - "type": "string", - "enum": [ - "add" - ] - }, - "spaceIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Selected Spaces and effective ACL summary.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "selectedSpaces": { - "type": "array", - "items": { - "allOf": [ - { - "$ref": "#/components/schemas/PrivateSpace" - }, - { - "type": "object", - "properties": { - "selected": { - "type": "boolean" - } - } - } - ] - } - }, - "effectiveAcl": { - "type": "object", - "properties": { - "spaceIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "viewerMustHaveAll": { - "type": "boolean" - } - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}": { - "delete": { - "summary": "Cancel a wake-up", - "description": "Cancel a scheduled wake-up. Only the wake-up owner or a workspace admin can cancel.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "wuId", - "required": true, - "description": "sId of the wake-up to cancel", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully cancelled (or already terminal)", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "wakeUp": { - "$ref": "#/components/schemas/PrivateWakeUp" - } - } - } - } - } - }, - "403": { - "description": "Caller is not the wake-up owner or a workspace admin" - }, - "404": { - "description": "Wake-up not found in this conversation" - } - } - } - }, - "/api/w/{wId}/assistant/conversations/{cId}/wakeups": { - "get": { - "summary": "List wake-ups for a conversation", - "description": "Retrieve all wake-ups scheduled in a conversation (any status).", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "cId", - "required": true, - "description": "ID of the conversation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved wake-ups", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "wakeUps": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateWakeUp" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/conversations": { - "get": { - "summary": "List conversations", - "description": "Retrieve a paginated list of conversations for the authenticated user in the workspace.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Successfully retrieved conversations", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "conversations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversation" - } - }, - "hasMore": { - "type": "boolean" - }, - "lastValue": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Create a conversation", - "description": "Create a new conversation, optionally with an initial user message and content fragments.", - "tags": [ - "Private Conversations" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "title": { - "type": "string", - "nullable": true - }, - "visibility": { - "type": "string", - "enum": [ - "unlisted", - "deleted", - "test" - ] - }, - "spaceId": { - "type": "string", - "nullable": true - }, - "message": { - "type": "object", - "properties": { - "content": { - "type": "string" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateMention" - } - }, - "context": { - "type": "object", - "properties": { - "timezone": { - "type": "string" - }, - "profilePictureUrl": { - "type": "string", - "nullable": true - }, - "origin": { - "type": "string", - "nullable": true - }, - "clientSideMCPServerIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "selectedMCPServerViewIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "selectedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "contentFragments": { - "type": "array", - "items": { - "type": "object" - } - }, - "metadata": { - "type": "object", - "nullable": true, - "properties": { - "useDatabaseFileSystem": { - "type": "boolean", - "description": "Use the database-backed filesystem for a fresh standalone conversation." - } - } - }, - "selectedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "skipToolsValidation": { - "type": "boolean" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Successfully created conversation", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "conversation": { - "$ref": "#/components/schemas/PrivateFullConversation" - }, - "message": { - "$ref": "#/components/schemas/PrivateUserMessage" - }, - "contentFragments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateContentFragment" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/assistant/go-template": { - "get": { - "summary": "Resolve a conversation go template draft", - "description": "Fetches a Contentful conversation go template by slug and returns a composer-ready draft with optional pre-uploaded attachments.", - "tags": [ - "Private Assistant" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "slug", - "required": true, - "description": "Contentful template slug", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Composer draft resolved from the template", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetGoTemplateDraftResponseBody" - } - } - } - }, - "404": { - "description": "Template not found or disabled" - }, - "422": { - "description": "Missing slug query parameter" - } - } - } - }, - "/api/w/{wId}/assistant/mentions/suggestions": { - "get": { - "summary": "Get mention suggestions", - "description": "Returns mention suggestions for the workspace.", - "tags": [ - "Private Mentions" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "query", - "required": false, - "description": "Search query to filter suggestions", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "select", - "required": false, - "description": "Filter by type (agents, users, or both)", - "schema": { - "type": "string", - "enum": [ - "agents", - "users" - ] - } - }, - { - "in": "query", - "name": "current", - "required": false, - "description": "Whether to include only current mentions", - "schema": { - "type": "string", - "enum": [ - "true", - "false" - ] - } - }, - { - "in": "query", - "name": "spaceId", - "required": false, - "description": "Filter suggestions by space", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "suggestions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateMentionSuggestion" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/extension/config": { - "get": { - "summary": "Get extension configuration", - "description": "Returns the extension configuration for the workspace, including blacklisted domains.", - "tags": [ - "Private Extension" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Extension configuration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PrivateExtensionConfig" - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/feature-flags": { - "get": { - "summary": "Get workspace feature flags", - "description": "Returns the list of enabled feature flags for the workspace.", - "tags": [ - "Private Workspace" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "List of feature flags", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PrivateFeatureFlags" - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/files/{fileId}": { - "get": { - "summary": "Get or download a file", - "description": "View or download a file. Skill attachments require read access to their associated skill. Use query parameters `version` (original, processed, public) and `action` (view, download). Downloading a Frames v2 file redirects to its source folder as a ZIP archive.", - "tags": [ - "Private Files" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "fileId", - "required": true, - "description": "ID of the file", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "version", - "required": false, - "description": "File version to retrieve", - "schema": { - "type": "string", - "enum": [ - "original", - "processed", - "public" - ] - } - }, - { - "in": "query", - "name": "action", - "required": false, - "description": "Action to perform", - "schema": { - "type": "string", - "enum": [ - "view", - "download" - ] - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "File content or redirect to download URL", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - }, - "302": { - "description": "Redirect to a signed download URL, or to the source folder ZIP archive for a Frames v2 file" - }, - "404": { - "description": "File not found" - } - } - }, - "post": { - "summary": "Upload file content", - "description": "Process and store the uploaded file content.", - "tags": [ - "Private Files" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "fileId", - "required": true, - "description": "ID of the file", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "File processed successfully", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "$ref": "#/components/schemas/PrivateFileWithUploadUrl" - } - } - } - } - } - }, - "400": { - "description": "Invalid file content (e.g. a CSV with an unsupported encoding)" - }, - "403": { - "description": "Permission denied" - }, - "404": { - "description": "File not found" - } - } - }, - "delete": { - "summary": "Delete a file", - "description": "Delete a file from the workspace. Files referenced by a skill or its version history cannot be deleted.", - "tags": [ - "Private Files" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "fileId", - "required": true, - "description": "ID of the file", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "204": { - "description": "File deleted" - }, - "400": { - "description": "File is referenced by a skill or its version history" - }, - "403": { - "description": "Permission denied" - }, - "404": { - "description": "File not found" - } - } - } - }, - "/api/w/{wId}/files": { - "post": { - "summary": "Create a file upload", - "description": "Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL.", - "tags": [ - "Private Files" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "contentType", - "fileName", - "fileSize", - "useCase" - ], - "properties": { - "contentType": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "useCase": { - "type": "string", - "enum": [ - "conversation", - "folders_document", - "avatar", - "upsert_document", - "upsert_table", - "project_context", - "skill_attachment", - "workspace_branding" - ] - }, - "useCaseMetadata": { - "type": "object" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "File record created with upload URL", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "$ref": "#/components/schemas/PrivateFileWithUploadUrl" - } - } - } - } - } - }, - "400": { - "description": "Invalid request" - }, - "429": { - "description": "Rate limit exceeded" - } - } - } - }, - "/api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events": { - "get": { - "summary": "Stream sandbox function invocation events", - "description": "Stream real-time events for a Pod function invocation using Server-Sent Events (SSE). This endpoint is redirected to /api/sse/ for SSE traffic routing.", - "tags": [ - "Private Events" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "functionId", - "required": true, - "description": "ID of the Pod function", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "invocationId", - "required": true, - "description": "ID of the sandbox function invocation", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "SSE event stream. Each event is sent as `data: {json}\\n\\n`.\nEvents are discriminated by the `type` field.\n", - "content": { - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/PrivateSandboxFunctionInvocationEvent" - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}": { - "get": { - "summary": "Get a data source view", - "description": "Returns the details of a specific data source view.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "dsvId", - "required": true, - "description": "ID of the data source view", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "dataSourceView": { - "$ref": "#/components/schemas/PrivateDataSourceView" - }, - "connector": { - "type": "object", - "nullable": true, - "description": "Connector details if the data source is managed" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "summary": "Update a data source view", - "description": "Updates a specific data source view.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "dsvId", - "required": true, - "description": "ID of the data source view", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "parentsIn": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "dataSourceView": { - "$ref": "#/components/schemas/PrivateDataSourceView" - }, - "connector": { - "type": "object", - "nullable": true - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "summary": "Delete a data source view", - "description": "Deletes a specific data source view.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "dsvId", - "required": true, - "description": "ID of the data source view", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "force", - "required": false, - "description": "Force deletion even if the view is in use", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "204": { - "description": "Successfully deleted data source view" - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/spaces/{spaceId}/data_source_views": { - "get": { - "summary": "List data source views", - "description": "Returns all data source views in a specific space.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "category", - "required": false, - "description": "Filter by data source view category", - "schema": { - "type": "string", - "enum": [ - "managed", - "folder", - "website", - "apps" - ] - } - }, - { - "in": "query", - "name": "withDetails", - "required": false, - "description": "Include usage and connector details (requires category)", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - }, - { - "in": "query", - "name": "includeEditedBy", - "required": false, - "description": "Include editedByUser information", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "dataSourceViews": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateDataSourceView" - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Create a data source view", - "description": "Creates a new data source view in a specific space.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "dataSourceId" - ], - "properties": { - "dataSourceId": { - "type": "string" - }, - "parentsIn": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - }, - "responses": { - "201": { - "description": "Successfully created data source view", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "dataSourceView": { - "$ref": "#/components/schemas/PrivateDataSourceView" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/spaces/{spaceId}": { - "get": { - "summary": "Get a space", - "description": "Returns the details of a specific space including categories, members, and permissions.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "includeAllMembers", - "required": false, - "description": "Include all members (including inactive)", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "space": { - "allOf": [ - { - "$ref": "#/components/schemas/PrivateSpace" - }, - { - "type": "object", - "properties": { - "groupIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "isRestricted": { - "type": "boolean" - }, - "categories": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "usage": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "agents": { - "type": "array", - "items": { - "type": "object" - } - } - } - } - } - } - }, - "canWrite": { - "type": "boolean" - }, - "canRead": { - "type": "boolean" - }, - "isMember": { - "type": "boolean" - }, - "isEditor": { - "type": "boolean" - }, - "members": { - "type": "array", - "items": { - "type": "object" - } - }, - "groups": { - "type": "array", - "description": "The groups given access to the space, with the role their grant confers.", - "items": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "role": { - "type": "string", - "enum": [ - "member", - "editor" - ] - } - } - } - }, - "description": { - "type": "string", - "nullable": true - }, - "archivedAt": { - "type": "integer", - "nullable": true - }, - "todoGenerationEnabled": { - "type": "boolean", - "description": "Whether automatic todo suggestions from project activity are enabled." - }, - "lastTodoAnalysisAt": { - "type": "integer", - "nullable": true, - "description": "Unix timestamp (ms) of the last automatic todo suggestion scan, if any." - }, - "pinnedFramePath": { - "type": "string", - "nullable": true, - "description": "Scoped path to the frame file pinned as the Pod banner." - }, - "frameTabs": { - "type": "array", - "description": "Frames promoted as custom Pod tabs.", - "items": { - "type": "object", - "properties": { - "path": { - "type": "string" - }, - "title": { - "type": "string" - }, - "icon": { - "type": "string" - } - } - } - }, - "tabsOrder": { - "type": "array", - "description": "Interleaved system tab ids and frame paths before Settings.", - "items": { - "type": "string" - } - } - } - } - ] - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "summary": "Update a space", - "description": "Updates the properties of a specific space.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "content": { - "type": "array", - "items": { - "type": "object", - "properties": { - "dataSourceId": { - "type": "string" - }, - "parentsIn": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "space": { - "$ref": "#/components/schemas/PrivateSpace" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "delete": { - "summary": "Delete a space", - "description": "Deletes a specific space from the workspace.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the space", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "force", - "required": false, - "description": "Force deletion even if space is in use", - "schema": { - "type": "string", - "enum": [ - "true" - ] - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "space": { - "$ref": "#/components/schemas/PrivateSpace" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/spaces/{spaceId}/project_notification_preferences": { - "get": { - "summary": "Get project notification preference", - "description": "Returns the current user's notification preference for a project space.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the project space", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "userProjectNotificationPreference": { - "type": "object", - "nullable": true, - "properties": { - "sId": { - "type": "string" - }, - "spaceId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "preference": { - "type": "string", - "enum": [ - "all_messages", - "only_mentions", - "never" - ] - } - } - } - } - } - } - } - }, - "400": { - "description": "Bad request (space is not a project)" - }, - "401": { - "description": "Unauthorized" - } - } - }, - "patch": { - "summary": "Set project notification preference", - "description": "Sets the current user's notification preference for a project space.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "spaceId", - "required": true, - "description": "ID of the project space", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "preference" - ], - "properties": { - "preference": { - "type": "string", - "enum": [ - "all_messages", - "only_mentions", - "never" - ] - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "userProjectNotificationPreference": { - "type": "object", - "nullable": true, - "properties": { - "sId": { - "type": "string" - }, - "spaceId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "preference": { - "type": "string", - "enum": [ - "all_messages", - "only_mentions", - "never" - ] - } - } - } - } - } - } - } - }, - "400": { - "description": "Bad request (space is not a project or invalid body)" - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/w/{wId}/spaces": { - "get": { - "summary": "List spaces", - "description": "Returns all spaces in the workspace.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "role", - "required": false, - "description": "Filter by role (e.g. admin to list all workspace spaces)", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "kind", - "required": false, - "description": "Filter by one or more space kinds. Repeat the parameter to include several kinds.", - "style": "form", - "explode": true, - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "global", - "system", - "conversations", - "regular", - "project" - ] - } - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "spaces": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateSpace" - }, - { - "$ref": "#/components/schemas/PrivateProject" - } - ] - } - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - }, - "post": { - "summary": "Create a space", - "description": "Creates a new space in the workspace.", - "tags": [ - "Private Spaces" - ], - "parameters": [ - { - "in": "path", - "name": "wId", - "required": true, - "description": "ID of the workspace", - "schema": { - "type": "string" - } - } - ], - "security": [ - { - "BearerAuth": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "isRestricted", - "name", - "spaceKind" - ], - "properties": { - "isRestricted": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "spaceKind": { - "type": "string", - "enum": [ - "regular", - "project" - ] - }, - "memberIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The space's manual member list. Omitted or empty means the space starts with no manual member." - }, - "groupIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The groups given access to the space. Omitted or empty means no group has access to it." - } - } - } - } - } - }, - "responses": { - "201": { - "description": "Successfully created space", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "space": { - "$ref": "#/components/schemas/PrivateSpace" - } - } - } - } - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/workos/login": { - "get": { - "summary": "Initiate WorkOS login", - "description": "Redirects to WorkOS AuthKit for authentication. Supports PKCE flow for extensions.", - "tags": [ - "Private Authentication" - ], - "security": [], - "parameters": [ - { - "in": "query", - "name": "redirect_uri", - "required": false, - "description": "Custom redirect URI (used by extensions for PKCE flow)", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "code_challenge", - "required": false, - "description": "PKCE code challenge", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "code_challenge_method", - "required": false, - "description": "PKCE code challenge method (S256)", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Login page HTML" - }, - "302": { - "description": "Redirect to WorkOS authorization URL" - }, - "400": { - "description": "Bad request" - } - } - } - }, - "/api/workos/authenticate": { - "post": { - "summary": "Exchange code or refresh token", - "description": "Exchanges an authorization code or refresh token for access tokens via WorkOS.", - "tags": [ - "Private Authentication" - ], - "security": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "grant_type": { - "type": "string", - "enum": [ - "refresh_token" - ] - }, - "refresh_token": { - "type": "string" - }, - "code_verifier": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Authentication result with tokens", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "user": { - "type": "object" - }, - "expiresIn": { - "type": "integer", - "description": "Token expiry in seconds" - }, - "expirationDate": { - "type": "integer", - "description": "Token expiry date in milliseconds" - } - } - } - } - } - }, - "400": { - "description": "Invalid request" - } - } - } - }, - "/api/workos/revoke-session": { - "post": { - "summary": "Revoke a session", - "description": "Revokes a WorkOS session by session ID. Used by the Chrome extension for logout.", - "tags": [ - "Private Authentication" - ], - "security": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "session_id" - ], - "properties": { - "session_id": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Session revoked successfully", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - } - } - } - }, - "400": { - "description": "Invalid session_id" - } - } - } - } - }, - "components": { - "schemas": { - "PrivateConsumptionFacet": { - "type": "object", - "required": [ - "value", - "label", - "pictureUrl", - "documentCount", - "disabled" - ], - "properties": { - "value": { - "type": "string", - "description": "Raw indexed value accepted by the corresponding consumption filter." - }, - "label": { - "type": "string", - "description": "Human-readable label, falling back to the raw value when its resource was deleted." - }, - "pictureUrl": { - "type": "string", - "nullable": true - }, - "icon": { - "type": "string", - "nullable": true, - "description": "Design-system icon name for tool and skill facets when known." - }, - "documentCount": { - "type": "integer", - "minimum": 0, - "description": "Number of matching indexed documents after applying the selected period and every other facet." - }, - "disabled": { - "type": "boolean", - "description": "Whether selecting this value would produce no matching indexed document." - }, - "scope": { - "type": "string", - "enum": [ - "global", - "visible", - "hidden" - ], - "description": "Current agent scope, when the agent still has accessible configuration metadata." - }, - "maker": { - "type": "string", - "description": "Model maker, for known model facets." - }, - "tier": { - "type": "string", - "enum": [ - "cost_efficient", - "balanced", - "premium" - ], - "description": "Default reasoning-effort tier, for known model facets." - } - } - }, - "PrivateUser": { - "type": "object", - "description": "Authenticated user with their workspaces and subscriber hash.", - "required": [ - "sId", - "id", - "createdAt", - "username", - "email", - "firstName", - "fullName", - "workspaces" - ], - "properties": { - "sId": { - "type": "string", - "description": "Unique string identifier for the user" - }, - "id": { - "type": "integer", - "description": "Numeric model identifier" - }, - "createdAt": { - "type": "integer", - "description": "Unix timestamp of user creation" - }, - "provider": { - "type": "string", - "nullable": true, - "enum": [ - "auth0", - "github", - "google", - "okta", - "samlp", - "waad" - ], - "description": "Authentication provider" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string", - "nullable": true - }, - "fullName": { - "type": "string" - }, - "image": { - "type": "string", - "nullable": true, - "description": "URL of the user's profile image" - }, - "lastLoginAt": { - "type": "integer", - "nullable": true - }, - "workspaces": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateWorkspace" - } - }, - "selectedWorkspace": { - "type": "string", - "description": "sId of the currently selected workspace" - }, - "origin": { - "type": "string", - "description": "How the user joined (e.g. invitation, provisioned)" - }, - "subscriberHash": { - "type": "string", - "nullable": true, - "description": "Hash used for Intercom identity verification" - } - } - }, - "PrivateWorkspace": { - "type": "object", - "description": "Workspace as returned by the private API, includes SSO and provider settings.", - "required": [ - "id", - "sId", - "name", - "role", - "regionalModelsOnly" - ], - "properties": { - "id": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string", - "enum": [ - "admin", - "builder", - "user", - "none" - ] - }, - "segmentation": { - "type": "string", - "nullable": true - }, - "whiteListedProviders": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - }, - "description": "Allowed model provider IDs" - }, - "defaultEmbeddingProvider": { - "type": "string", - "nullable": true - }, - "ssoEnforced": { - "type": "boolean" - }, - "regionalModelsOnly": { - "type": "boolean", - "description": "When true, only models whose regionalAvailability includes the workspace's region are usable." - }, - "metadata": { - "type": "object", - "nullable": true, - "additionalProperties": true - } - } - }, - "PrivateConversationConsumptionToolDetails": { - "type": "object", - "required": [ - "label", - "internalMCPServerName", - "toolName", - "callCount", - "attributedCredits", - "directCredits", - "pending" - ], - "properties": { - "label": { - "type": "string" - }, - "internalMCPServerName": { - "type": "string", - "nullable": true - }, - "toolName": { - "type": "string" - }, - "callCount": { - "type": "integer" - }, - "attributedCredits": { - "type": "number", - "description": "Share of billed credits after reconciling exclusively through model input rows." - }, - "directCredits": { - "type": "number" - }, - "pending": { - "type": "boolean" - } - } - }, - "PrivateConversationConsumptionModelDetails": { - "type": "object", - "required": [ - "providerId", - "modelId", - "displayName", - "attributedCredits" - ], - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "attributedCredits": { - "type": "number", - "description": "Model attribution after reconciling exclusively through its input rows." - } - } - }, - "PrivateConversationConsumptionAgentDetails": { - "type": "object", - "required": [ - "agentId", - "name", - "pictureUrl", - "billedCredits", - "agentWorkCredits", - "tools", - "models" - ], - "properties": { - "agentId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "pictureUrl": { - "type": "string", - "nullable": true - }, - "billedCredits": { - "type": "number" - }, - "agentWorkCredits": { - "type": "number", - "description": "Agent work after assigning billing reconciliation exclusively to model input rows." - }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationConsumptionToolDetails" - } - }, - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationConsumptionModelDetails" - } - } - } - }, - "PrivateConversationConsumptionDetails": { - "type": "object", - "description": "Additive attribution reconciled to the authoritative bill exclusively through model input rows. Each message uses its newest complete stored attribution version. Null when any billed message has no complete stored attribution.", - "required": [ - "agentWorkCredits", - "tools", - "models", - "agents" - ], - "properties": { - "agentWorkCredits": { - "type": "number", - "description": "Agent work after assigning billing reconciliation exclusively to model input rows." - }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationConsumptionToolDetails" - } - }, - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationConsumptionModelDetails" - } - }, - "agents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationConsumptionAgentDetails" - } - } - } - }, - "PrivateConversation": { - "type": "object", - "description": "Conversation without content, used in list responses.", - "required": [ - "id", - "created", - "updated", - "sId", - "depth" - ], - "properties": { - "id": { - "type": "integer" - }, - "created": { - "type": "integer", - "description": "Unix timestamp of creation" - }, - "updated": { - "type": "integer", - "description": "Unix timestamp of last update" - }, - "unread": { - "type": "boolean" - }, - "lastReadMs": { - "type": "integer", - "nullable": true - }, - "actionRequired": { - "type": "boolean", - "description": "Whether the conversation requires user action" - }, - "hasError": { - "type": "boolean" - }, - "sId": { - "type": "string" - }, - "title": { - "type": "string", - "nullable": true - }, - "spaceId": { - "type": "string", - "nullable": true, - "description": "ID of the space the conversation belongs to (for project conversations)" - }, - "triggerId": { - "type": "string", - "nullable": true - }, - "depth": { - "type": "integer", - "description": "Conversation depth (for agent handover chains)" - }, - "metadata": { - "type": "object", - "additionalProperties": true - }, - "requestedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "forkingData": { - "$ref": "#/components/schemas/PrivateConversationForkingData" - } - } - }, - "PrivateConversationForkUser": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "createdAt": { - "type": "integer" - }, - "provider": { - "type": "string", - "nullable": true, - "enum": [ - "auth0", - "github", - "google", - "okta", - "samlp", - "waad" - ] - }, - "username": { - "type": "string" - }, - "email": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string", - "nullable": true - }, - "fullName": { - "type": "string" - }, - "image": { - "type": "string", - "nullable": true - }, - "lastLoginAt": { - "type": "integer", - "nullable": true - } - } - }, - "PrivateConversationForkedFrom": { - "type": "object", - "required": [ - "parentConversationId", - "parentConversationTitle", - "sourceMessageId", - "branchedAt", - "user", - "fileCopyStatus" - ], - "properties": { - "parentConversationId": { - "type": "string" - }, - "parentConversationTitle": { - "type": "string", - "nullable": true - }, - "sourceMessageId": { - "type": "string" - }, - "branchedAt": { - "type": "integer" - }, - "user": { - "$ref": "#/components/schemas/PrivateConversationForkUser" - }, - "fileCopyStatus": { - "type": "string", - "enum": [ - "pending", - "done" - ] - } - } - }, - "PrivateConversationForkedChild": { - "type": "object", - "properties": { - "childConversationId": { - "type": "string" - }, - "childConversationTitle": { - "type": "string", - "nullable": true - }, - "sourceMessageId": { - "type": "string" - }, - "branchedAt": { - "type": "integer" - }, - "user": { - "$ref": "#/components/schemas/PrivateConversationForkUser" - } - } - }, - "PrivateConversationForkingData": { - "type": "object", - "properties": { - "forkedFrom": { - "$ref": "#/components/schemas/PrivateConversationForkedFrom" - }, - "forkedChildren": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateConversationForkedChild" - } - } - } - }, - "PrivateFullConversation": { - "type": "object", - "description": "Full conversation including content, owner, and visibility.", - "allOf": [ - { - "$ref": "#/components/schemas/PrivateConversation" - }, - { - "type": "object", - "properties": { - "owner": { - "$ref": "#/components/schemas/PrivateWorkspace" - }, - "visibility": { - "type": "string", - "enum": [ - "unlisted", - "deleted", - "test" - ] - }, - "content": { - "type": "array", - "description": "Array of message arrays (versions/retries)", - "items": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateUserMessage" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessage" - }, - { - "$ref": "#/components/schemas/PrivateContentFragment" - }, - { - "$ref": "#/components/schemas/PrivateCompactionMessage" - } - ] - } - } - } - } - } - ] - }, - "PrivateUserMessage": { - "type": "object", - "description": "A user message in a conversation.", - "required": [ - "type", - "sId", - "content", - "version", - "rank", - "created" - ], - "properties": { - "id": { - "type": "integer" - }, - "type": { - "type": "string", - "enum": [ - "user_message" - ] - }, - "sId": { - "type": "string" - }, - "created": { - "type": "integer" - }, - "visibility": { - "type": "string", - "enum": [ - "visible", - "deleted" - ] - }, - "version": { - "type": "integer" - }, - "rank": { - "type": "integer" - }, - "branchId": { - "type": "string", - "nullable": true, - "description": "Legacy, always null. Branches were removed." - }, - "user": { - "type": "object", - "nullable": true, - "description": "The user who sent the message", - "properties": { - "sId": { - "type": "string" - }, - "username": { - "type": "string" - }, - "fullName": { - "type": "string" - }, - "image": { - "type": "string", - "nullable": true - } - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateMention" - } - }, - "richMentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateRichMentionWithStatus" - } - }, - "content": { - "type": "string" - }, - "context": { - "$ref": "#/components/schemas/PrivateUserMessageContext" - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateReaction" - } - } - } - }, - "PrivateAgentMessage": { - "type": "object", - "description": "An agent message in a conversation.", - "required": [ - "type", - "sId", - "version", - "rank", - "status", - "parentMessageId" - ], - "properties": { - "id": { - "type": "integer" - }, - "agentMessageId": { - "type": "integer" - }, - "type": { - "type": "string", - "enum": [ - "agent_message" - ] - }, - "sId": { - "type": "string" - }, - "created": { - "type": "integer" - }, - "completedTs": { - "type": "integer", - "nullable": true - }, - "visibility": { - "type": "string", - "enum": [ - "visible", - "deleted" - ] - }, - "version": { - "type": "integer" - }, - "rank": { - "type": "integer" - }, - "branchId": { - "type": "string", - "nullable": true, - "description": "Legacy, always null. Branches were removed." - }, - "parentMessageId": { - "type": "string" - }, - "parentAgentMessageId": { - "type": "string", - "nullable": true, - "description": "If handover, the agent message that summoned this agent" - }, - "status": { - "type": "string", - "enum": [ - "created", - "succeeded", - "failed", - "cancelled" - ] - }, - "content": { - "type": "string", - "nullable": true - }, - "chainOfThought": { - "type": "string", - "nullable": true - }, - "error": { - "type": "object", - "nullable": true, - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object", - "nullable": true - } - } - }, - "configuration": { - "$ref": "#/components/schemas/PrivateLightAgentConfiguration" - }, - "actions": { - "type": "array", - "items": { - "type": "object" - }, - "description": "MCP actions executed by the agent" - }, - "contents": { - "type": "array", - "items": { - "type": "object", - "properties": { - "step": { - "type": "integer" - }, - "content": { - "type": "object" - } - } - } - }, - "skipToolsValidation": { - "type": "boolean" - }, - "richMentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateRichMentionWithStatus" - } - }, - "completionDurationMs": { - "type": "integer", - "nullable": true - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateReaction" - } - }, - "costCredits": { - "type": "integer", - "nullable": true, - "description": "Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message." - }, - "subAgentCostCredits": { - "type": "number", - "nullable": true, - "description": "Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise." - }, - "resolvedModel": { - "type": "object", - "nullable": true, - "description": "Model triplet used to generate the message. Null when the agent ran its configured model (legacy).", - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "reasoningEffort": { - "type": "string" - } - } - }, - "modelResolutionMethod": { - "type": "string", - "nullable": true, - "enum": [ - "agent", - "user", - "auto", - "auto_fast", - "auto_complex", - "fair_use_downgrade" - ], - "description": "How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy)." - } - } - }, - "PrivateLightAgentMessage": { - "type": "object", - "description": "A lighter agent message used in paginated message list responses.", - "required": [ - "type", - "sId", - "version", - "rank", - "status", - "parentMessageId", - "configuration" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_message" - ] - }, - "sId": { - "type": "string" - }, - "created": { - "type": "integer" - }, - "completedTs": { - "type": "integer", - "nullable": true - }, - "visibility": { - "type": "string", - "enum": [ - "visible", - "deleted" - ] - }, - "version": { - "type": "integer" - }, - "rank": { - "type": "integer" - }, - "branchId": { - "type": "string", - "nullable": true, - "description": "Legacy, always null. Branches were removed." - }, - "parentMessageId": { - "type": "string" - }, - "parentAgentMessageId": { - "type": "string", - "nullable": true - }, - "status": { - "type": "string", - "enum": [ - "created", - "succeeded", - "failed", - "cancelled" - ] - }, - "content": { - "type": "string", - "nullable": true - }, - "chainOfThought": { - "type": "string", - "nullable": true - }, - "error": { - "type": "object", - "nullable": true, - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - }, - "metadata": { - "type": "object", - "nullable": true - } - } - }, - "configuration": { - "type": "object", - "description": "Minimal agent configuration info", - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "pictureUrl": { - "type": "string" - }, - "status": { - "type": "string" - }, - "canRead": { - "type": "boolean" - } - } - }, - "citations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/PrivateCitation" - } - }, - "generatedFiles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "fileId": { - "type": "string", - "nullable": true, - "description": "Dust file id for DB-backed files, or null for path-backed files." - }, - "filePath": { - "type": "string", - "description": "Canonical scoped path for path-backed files." - }, - "title": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "publicUrl": { - "type": "string" - } - } - } - }, - "richMentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateRichMentionWithStatus" - } - }, - "completionDurationMs": { - "type": "integer", - "nullable": true - }, - "costCredits": { - "type": "integer", - "nullable": true, - "description": "Cost of producing this agent message, in credits (intelligence + tool credits). Null when no billable usage is attributed to the message." - }, - "subAgentCostCredits": { - "type": "number", - "nullable": true, - "description": "Aggregated credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches. Null otherwise." - }, - "resolvedModel": { - "type": "object", - "nullable": true, - "description": "Model triplet used to generate the message. Null when the agent ran its configured model (legacy).", - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "reasoningEffort": { - "type": "string" - } - } - }, - "modelResolutionMethod": { - "type": "string", - "nullable": true, - "enum": [ - "agent", - "user", - "auto", - "auto_fast", - "auto_complex", - "fair_use_downgrade" - ], - "description": "How resolvedModel was chosen - agent (configured model), user (per-message picker), auto/auto_fast/auto_complex (routed through a model stream), or fair_use_downgrade (premium allowance spent, ran the Standard stream instead). Null (legacy)." - }, - "activitySteps": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "thinking", - "action" - ] - }, - "content": { - "type": "string", - "description": "Chain of thought text (thinking steps only)" - }, - "label": { - "type": "string", - "description": "Action display label (action steps only)" - }, - "id": { - "type": "string" - }, - "actionId": { - "type": "string", - "description": "Action string identifier (action steps only)" - } - } - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PrivateReaction" - } - } - } - }, - "PrivateCitation": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "href": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "contentType": { - "type": "string" - } - } - }, - "PrivateContentFragment": { - "type": "object", - "description": "A content fragment (file or content node attachment) in a conversation.", - "required": [ - "type", - "sId", - "title", - "contentType", - "contentFragmentType" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "content_fragment" - ] - }, - "id": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "created": { - "type": "integer" - }, - "visibility": { - "type": "string", - "enum": [ - "visible", - "deleted" - ] - }, - "version": { - "type": "integer" - }, - "rank": { - "type": "integer" - }, - "title": { - "type": "string" - }, - "contentType": { - "type": "string", - "description": "MIME type of the content" - }, - "sourceUrl": { - "type": "string", - "nullable": true - }, - "context": { - "type": "object", - "properties": { - "username": { - "type": "string", - "nullable": true - }, - "fullName": { - "type": "string", - "nullable": true - }, - "email": { - "type": "string", - "nullable": true - }, - "profilePictureUrl": { - "type": "string", - "nullable": true - } - } - }, - "contentFragmentId": { - "type": "string" - }, - "contentFragmentVersion": { - "type": "string", - "enum": [ - "superseded", - "latest" - ] - }, - "contentFragmentType": { - "type": "string", - "enum": [ - "file", - "content_node" - ], - "description": "Whether this is a file upload or a content node reference" - }, - "expiredReason": { - "type": "string", - "nullable": true, - "enum": [ - "data_source_deleted" - ] - }, - "fileId": { - "type": "string", - "nullable": true, - "description": "Present for file content fragments" - }, - "path": { - "type": "string", - "nullable": true, - "description": "Path of this file inside the sandbox conversation mount." - }, - "processedPath": { - "type": "string", - "nullable": true, - "description": "Path of the plain-text sibling of this file inside the sandbox conversation mount (e.g. an audio transcript), when it has one." - }, - "skipFileProcessing": { - "type": "boolean", - "description": "Whether upload-time file processing was skipped." - }, - "snippet": { - "type": "string", - "nullable": true - }, - "textUrl": { - "type": "string", - "nullable": true - }, - "textBytes": { - "type": "integer", - "nullable": true - }, - "nodeId": { - "type": "string", - "nullable": true, - "description": "Present for content node fragments" - }, - "nodeDataSourceViewId": { - "type": "string", - "nullable": true - } - } - }, - "PrivateCompactionMessage": { - "type": "object", - "description": "A compaction message summarizing earlier conversation content.", - "required": [ - "type", - "sId", - "status", - "version", - "rank", - "created" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "compaction_message" - ] - }, - "id": { - "type": "integer" - }, - "compactionMessageId": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "created": { - "type": "integer" - }, - "visibility": { - "type": "string", - "enum": [ - "visible", - "deleted" - ] - }, - "version": { - "type": "integer" - }, - "rank": { - "type": "integer" - }, - "branchId": { - "type": "string", - "nullable": true, - "description": "Legacy, always null. Branches were removed." - }, - "sourceConversationId": { - "type": "string", - "nullable": true - }, - "status": { - "type": "string", - "enum": [ - "created", - "succeeded", - "failed" - ] - }, - "content": { - "type": "string", - "nullable": true, - "description": "Compacted summary. Null while status is \"created\"." - } - } - }, - "PrivateLightAgentConfiguration": { - "type": "object", - "description": "Agent configuration as returned by the private list endpoint.", - "required": [ - "id", - "sId", - "version", - "name", - "description", - "pictureUrl", - "status", - "scope", - "model", - "maxStepsPerRun", - "tags" - ], - "properties": { - "id": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "versionCreatedAt": { - "type": "string", - "nullable": true - }, - "versionAuthorId": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "instructions": { - "type": "string", - "nullable": true - }, - "pictureUrl": { - "type": "string" - }, - "status": { - "type": "string", - "description": "Agent status", - "enum": [ - "active", - "archived", - "draft", - "pending", - "disabled_by_admin", - "disabled_missing_datasource", - "disabled_free_workspace" - ] - }, - "scope": { - "type": "string", - "enum": [ - "global", - "visible", - "hidden" - ] - }, - "userFavorite": { - "type": "boolean" - }, - "model": { - "type": "object", - "properties": { - "providerId": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "temperature": { - "type": "number" - }, - "reasoningEffort": { - "type": "string", - "enum": [ - "none", - "light", - "medium", - "high" - ] - } - } - }, - "maxStepsPerRun": { - "type": "integer" - }, - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - }, - "templateId": { - "type": "string", - "nullable": true - }, - "requestedGroupIds": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "requestedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "canRead": { - "type": "boolean" - }, - "canEdit": { - "type": "boolean" - }, - "lastAuthors": { - "type": "array", - "description": "Optional, returned when withAuthors query param is set", - "items": { - "type": "string" - } - }, - "editors": { - "type": "array", - "description": "Optional, returned when withEditors query param is set", - "items": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "fullName": { - "type": "string" - }, - "image": { - "type": "string", - "nullable": true - } - } - } - }, - "usage": { - "type": "object", - "description": "Optional, returned when withUsage query param is set", - "properties": { - "messageCount": { - "type": "integer" - }, - "conversationCount": { - "type": "integer" - }, - "userCount": { - "type": "integer" - }, - "timePeriodSec": { - "type": "integer" - } - } - }, - "feedbacks": { - "type": "object", - "description": "Optional, returned when withFeedbacks query param is set", - "properties": { - "up": { - "type": "integer" - }, - "down": { - "type": "integer" - } - } - } - } - }, - "GetGoTemplateDraftResponseBody": { - "type": "object", - "description": "Composer draft resolved from a Contentful conversation go template.", - "required": [ - "title", - "prompt", - "attachments", - "attachmentErrors" - ], - "properties": { - "title": { - "type": "string" - }, - "prompt": { - "type": "string" - }, - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fileId", - "name", - "contentType", - "size", - "url" - ], - "properties": { - "fileId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - } - } - } - }, - "attachmentErrors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "url", - "message" - ], - "properties": { - "url": { - "type": "string" - }, - "message": { - "type": "string" - } - } - } - } - } - }, - "PrivateFileWithUploadUrl": { - "type": "object", - "description": "File record with a pre-signed upload URL.", - "required": [ - "sId", - "id", - "fileName", - "fileSize", - "contentType", - "status", - "useCase", - "uploadUrl" - ], - "properties": { - "sId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "status": { - "type": "string", - "enum": [ - "created", - "failed", - "ready" - ] - }, - "useCase": { - "type": "string", - "enum": [ - "conversation", - "avatar", - "tool_output", - "upsert_document", - "folders_document", - "upsert_table", - "project_context", - "skill_attachment" - ] - }, - "uploadUrl": { - "type": "string", - "description": "Pre-signed URL for uploading the file content" - }, - "downloadUrl": { - "type": "string" - }, - "publicUrl": { - "type": "string" - }, - "path": { - "type": "string", - "nullable": true, - "description": "path when the file is ready on a mount (e.g. `project/report.pdf` or `conversation/chart.png`). Same shape as mount file listing entries." - } - } - }, - "PrivateSpace": { - "type": "object", - "description": "A space in the workspace.", - "required": [ - "sId", - "name", - "kind" - ], - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "kind": { - "type": "string", - "enum": [ - "global", - "system", - "conversations", - "regular", - "project" - ] - }, - "createdAt": { - "type": "integer" - }, - "updatedAt": { - "type": "integer" - } - } - }, - "PrivateProject": { - "type": "object", - "description": "A project space with additional metadata.", - "allOf": [ - { - "$ref": "#/components/schemas/PrivateSpace" - }, - { - "type": "object", - "properties": { - "groupIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "isRestricted": { - "type": "boolean" - }, - "description": { - "type": "string", - "nullable": true - }, - "isMember": { - "type": "boolean" - }, - "archivedAt": { - "type": "integer", - "nullable": true - }, - "todoGenerationEnabled": { - "type": "boolean", - "description": "Whether automatic todo suggestions from project activity are enabled." - }, - "lastTodoAnalysisAt": { - "type": "integer", - "nullable": true, - "description": "Unix timestamp (ms) of the last automatic todo suggestion scan, if any." - }, - "pinnedFramePath": { - "type": "string", - "nullable": true, - "description": "Scoped path to the frame file pinned as the Pod banner (e.g. project/banner.html)." - }, - "frameTabs": { - "type": "array", - "description": "Frames promoted as custom Pod tabs (shared for all members).", - "items": { - "type": "object", - "required": [ - "path", - "title", - "icon" - ], - "properties": { - "path": { - "type": "string", - "description": "Canonical scoped path to the frame file in the Pod filesystem." - }, - "title": { - "type": "string", - "description": "Display title for the tab." - }, - "icon": { - "type": "string", - "description": "Action icon name (e.g. ActionDashboardIcon)." - } - } - } - }, - "tabsOrder": { - "type": "array", - "description": "Interleaved system tab ids and frame paths before Settings.", - "items": { - "type": "string" - } - } - } - } - ] - }, - "PrivateDataSourceView": { - "type": "object", - "description": "A view on a data source within a space.", - "required": [ - "sId", - "id", - "category", - "kind", - "spaceId", - "dataSource" - ], - "properties": { - "sId": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "category": { - "type": "string", - "enum": [ - "managed", - "folder", - "website", - "apps" - ] - }, - "kind": { - "type": "string", - "enum": [ - "default", - "custom" - ] - }, - "spaceId": { - "type": "string" - }, - "createdAt": { - "type": "integer" - }, - "updatedAt": { - "type": "integer" - }, - "parentsIn": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - }, - "description": "List of parent IDs included in this view, null if the full data source is used" - }, - "dataSource": { - "$ref": "#/components/schemas/PrivateDataSource" - }, - "editedByUser": { - "type": "object", - "nullable": true, - "properties": { - "editedAt": { - "type": "integer", - "nullable": true - }, - "fullName": { - "type": "string", - "nullable": true - }, - "imageUrl": { - "type": "string", - "nullable": true - }, - "email": { - "type": "string", - "nullable": true - }, - "userId": { - "type": "string", - "nullable": true - } - } - }, - "usage": { - "type": "object", - "description": "Present when the view was fetched with usage details (withDetails query param). Counts agents and skills that use this data source view.", - "properties": { - "count": { - "type": "integer" - }, - "agents": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "pictureUrl": { - "type": "string" - } - } - } - }, - "skills": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - } - } - } - } - } - } - } - }, - "PrivateDataSource": { - "type": "object", - "description": "A data source in the workspace.", - "required": [ - "sId", - "id", - "name" - ], - "properties": { - "sId": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "createdAt": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string", - "nullable": true - }, - "assistantDefaultSelected": { - "type": "boolean" - }, - "dustAPIProjectId": { - "type": "string" - }, - "dustAPIDataSourceId": { - "type": "string" - }, - "connectorId": { - "type": "string", - "nullable": true - }, - "connectorProvider": { - "type": "string", - "nullable": true - } - } - }, - "PrivateMentionSuggestion": { - "type": "object", - "description": "A rich mention suggestion for agents or users.", - "required": [ - "id", - "type", - "label", - "pictureUrl", - "description" - ], - "properties": { - "id": { - "type": "string", - "description": "Agent sId or user sId" - }, - "type": { - "type": "string", - "enum": [ - "agent", - "user" - ] - }, - "label": { - "type": "string", - "description": "Display name" - }, - "pictureUrl": { - "type": "string" - }, - "description": { - "type": "string", - "description": "Agent description or user email" - }, - "userFavorite": { - "type": "boolean", - "description": "Whether the agent is a user favorite (agent mentions only)" - } - } - }, - "PrivateFeatureFlags": { - "type": "object", - "description": "Workspace feature flags response.", - "required": [ - "feature_flags" - ], - "properties": { - "feature_flags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of enabled feature flag names for the workspace" - } - } - }, - "PrivateExtensionConfig": { - "type": "object", - "description": "Extension configuration for the workspace.", - "required": [ - "blacklistedDomains" - ], - "properties": { - "blacklistedDomains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Domains where the extension should not activate" - } - } - }, - "PrivateFeedback": { - "type": "object", - "description": "User feedback on an agent message.", - "required": [ - "id", - "sId", - "messageId", - "agentMessageId", - "userId", - "thumbDirection", - "agentConfigurationId", - "agentConfigurationVersion", - "isConversationShared", - "dismissed", - "createdAt" - ], - "properties": { - "id": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "agentMessageId": { - "type": "integer" - }, - "userId": { - "type": "integer" - }, - "thumbDirection": { - "type": "string", - "enum": [ - "up", - "down" - ] - }, - "content": { - "type": "string", - "nullable": true, - "description": "Optional text feedback from the user" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "agentConfigurationId": { - "type": "string" - }, - "agentConfigurationVersion": { - "type": "integer" - }, - "isConversationShared": { - "type": "boolean" - }, - "dismissed": { - "type": "boolean" - } - } - }, - "PrivateWakeUp": { - "type": "object", - "description": "A wake-up scheduled in a conversation to re-invoke the agent at a later time.", - "required": [ - "id", - "sId", - "createdAt", - "agentConfigurationId", - "scheduleConfig", - "reason", - "status", - "fireCount", - "maxFires" - ], - "properties": { - "id": { - "type": "integer" - }, - "sId": { - "type": "string" - }, - "createdAt": { - "type": "integer", - "description": "Unix timestamp (milliseconds)." - }, - "agentConfigurationId": { - "type": "string" - }, - "scheduleConfig": { - "oneOf": [ - { - "type": "object", - "required": [ - "type", - "fireAt" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "one_shot" - ] - }, - "fireAt": { - "type": "integer", - "description": "Unix timestamp (milliseconds) when the wake-up should fire." - } - } - }, - { - "type": "object", - "required": [ - "type", - "cron", - "timezone" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "cron" - ] - }, - "cron": { - "type": "string", - "description": "5-field cron expression." - }, - "timezone": { - "type": "string", - "description": "IANA timezone name." - } - } - } - ] - }, - "reason": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "scheduled", - "fired", - "cancelled", - "expired" - ] - }, - "fireCount": { - "type": "integer" - }, - "maxFires": { - "type": "integer" - } - } - }, - "PrivateMention": { - "type": "object", - "description": "A mention in a message (agent or user).", - "properties": { - "configurationId": { - "type": "string", - "description": "Agent configuration sId (for agent mentions)" - }, - "type": { - "type": "string", - "enum": [ - "user" - ], - "description": "Present only for user mentions" - }, - "userId": { - "type": "string", - "description": "User sId (for user mentions)" - } - } - }, - "PrivateRichMentionWithStatus": { - "type": "object", - "description": "A rich mention with approval status, used in message responses.", - "required": [ - "id", - "type", - "label", - "pictureUrl", - "description", - "dismissed", - "status" - ], - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "agent", - "user" - ] - }, - "label": { - "type": "string" - }, - "pictureUrl": { - "type": "string" - }, - "description": { - "type": "string" - }, - "userFavorite": { - "type": "boolean" - }, - "dismissed": { - "type": "boolean" - }, - "status": { - "type": "string", - "enum": [ - "pending_conversation_access", - "pending_project_membership", - "approved", - "rejected", - "user_restricted_by_conversation_access", - "agent_restricted_by_space_usage" - ] - } - } - }, - "PrivateUserMessageContext": { - "type": "object", - "description": "Context metadata for a user message.", - "required": [ - "username", - "timezone", - "origin" - ], - "properties": { - "username": { - "type": "string" - }, - "fullName": { - "type": "string", - "nullable": true - }, - "email": { - "type": "string", - "nullable": true - }, - "profilePictureUrl": { - "type": "string", - "nullable": true - }, - "timezone": { - "type": "string" - }, - "origin": { - "type": "string", - "enum": [ - "web", - "project_kickoff", - "extension", - "agent_sidekick", - "analytics_panel", - "api", - "cli", - "cli_programmatic", - "email", - "excel", - "gsheet", - "make", - "n8n", - "powerpoint", - "raycast", - "slack", - "slack_workflow", - "teams", - "transcript", - "triggered_programmatic", - "triggered", - "wakeup", - "zapier", - "zendesk", - "onboarding_conversation" - ] - }, - "selectedSpaceIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "PrivateReaction": { - "type": "object", - "description": "A reaction on a message.", - "required": [ - "emoji", - "users" - ], - "properties": { - "emoji": { - "type": "string" - }, - "users": { - "type": "array", - "items": { - "type": "object", - "properties": { - "userId": { - "type": "string", - "nullable": true - }, - "username": { - "type": "string" - }, - "fullName": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "PrivateConversationEvent": { - "type": "object", - "description": "Server-Sent Event for conversation-level streaming. Discriminated on the `type` field.", - "discriminator": { - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateUserMessageNewEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessageNewEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessageConsumptionUpdatedEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessageDoneEvent" - }, - { - "$ref": "#/components/schemas/PrivateCompactionMessageNewEvent" - }, - { - "$ref": "#/components/schemas/PrivateCompactionMessageDoneEvent" - }, - { - "$ref": "#/components/schemas/PrivateConversationForkPreparedEvent" - }, - { - "$ref": "#/components/schemas/PrivateConversationTitleEvent" - }, - { - "$ref": "#/components/schemas/PrivateWakeUpUpdatedEvent" - } - ] - }, - "PrivateUserMessageNewEvent": { - "type": "object", - "required": [ - "type", - "created", - "messageId", - "message" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "user_message_new" - ] - }, - "created": { - "type": "integer" - }, - "messageId": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/PrivateUserMessage" - } - } - }, - "PrivateAgentMessageNewEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "message" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_message_new" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/PrivateAgentMessage" - } - } - }, - "PrivateAgentMessageDoneEvent": { - "type": "object", - "required": [ - "type", - "created", - "conversationId", - "configurationId", - "messageId", - "status" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_message_done" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - } - } - }, - "PrivateAgentMessageConsumptionUpdatedEvent": { - "type": "object", - "required": [ - "type", - "created", - "conversationId", - "messageId", - "costCredits" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_message_consumption_updated" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "costCredits": { - "type": "number", - "nullable": true - } - } - }, - "PrivateCompactionMessageNewEvent": { - "type": "object", - "required": [ - "type", - "created", - "messageId", - "message" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "compaction_message_new" - ] - }, - "created": { - "type": "integer" - }, - "messageId": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/PrivateCompactionMessage" - } - } - }, - "PrivateCompactionMessageDoneEvent": { - "type": "object", - "required": [ - "type", - "created", - "messageId", - "message" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "compaction_message_done" - ] - }, - "created": { - "type": "integer" - }, - "messageId": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/PrivateCompactionMessage" - } - } - }, - "PrivateConversationForkPreparedEvent": { - "type": "object", - "required": [ - "type", - "created" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "conversation_fork_prepared" - ] - }, - "created": { - "type": "integer" - } - } - }, - "PrivateConversationTitleEvent": { - "type": "object", - "required": [ - "type", - "created", - "title" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "conversation_title" - ] - }, - "created": { - "type": "integer" - }, - "title": { - "type": "string" - } - } - }, - "PrivateWakeUpUpdatedEvent": { - "type": "object", - "required": [ - "type", - "created", - "conversationId", - "wakeUpId", - "userId" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "wake_up_updated" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "wakeUpId": { - "type": "string" - }, - "userId": { - "type": "string", - "description": "sId of the user who owns the wake-up." - } - } - }, - "PrivateSandboxFunctionInvocationEvent": { - "type": "object", - "description": "Server-Sent Event for sandbox function invocation streaming. Discriminated on the `type` field.", - "discriminator": { - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateSandboxFunctionInvocationCreatedEvent" - }, - { - "$ref": "#/components/schemas/PrivateSandboxFunctionInvocationResultEvent" - }, - { - "$ref": "#/components/schemas/PrivateSandboxFunctionInvocationErrorEvent" - } - ] - }, - "PrivateSandboxFunctionInvocationCreatedEvent": { - "type": "object", - "required": [ - "type", - "created", - "invocation" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "sandbox_function_invocation_created" - ] - }, - "created": { - "type": "integer" - }, - "invocation": { - "type": "object", - "required": [ - "sId", - "functionId", - "status", - "createdAt" - ], - "properties": { - "sId": { - "type": "string" - }, - "functionId": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "created" - ] - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - } - } - } - }, - "PrivateSandboxFunctionInvocationResultEvent": { - "type": "object", - "required": [ - "type", - "created", - "invocationId", - "functionId", - "result" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "sandbox_function_invocation_result" - ] - }, - "created": { - "type": "integer" - }, - "invocationId": { - "type": "string" - }, - "functionId": { - "type": "string" - }, - "result": { - "description": "Parsed result validated against the sandbox function output schema." - } - } - }, - "PrivateSandboxFunctionInvocationErrorEvent": { - "type": "object", - "required": [ - "type", - "created", - "invocationId", - "functionId", - "error" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "sandbox_function_invocation_error" - ] - }, - "created": { - "type": "integer" - }, - "invocationId": { - "type": "string" - }, - "functionId": { - "type": "string" - }, - "error": { - "type": "object", - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "type": "string", - "description": "Whatever classified the failure, forwarded as-is (a runner code such as `threw` or `http_error`, or the `type` of the API error that failed the call). Open by design, branch on the codes you handle and treat the rest as generic failures." - }, - "message": { - "type": "string" - }, - "status": { - "type": "integer" - } - }, - "description": "A structured error describing why the invocation failed." - } - } - }, - "PrivateAgentMessageEvent": { - "type": "object", - "description": "Server-Sent Event for agent message streaming. Discriminated on the `type` field. Each event also includes a `step` integer.", - "discriminator": { - "propertyName": "type" - }, - "oneOf": [ - { - "$ref": "#/components/schemas/PrivateGenerationTokensEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolCallStartedEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentActionSuccessEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentMessageSuccessEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentErrorEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentGenerationCancelledEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolErrorEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolParamsEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolApproveExecutionEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolNotificationEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolPersonalAuthRequiredEvent" - }, - { - "$ref": "#/components/schemas/PrivateToolFileAuthRequiredEvent" - }, - { - "$ref": "#/components/schemas/PrivateAgentContextPrunedEvent" - } - ] - }, - "PrivateGenerationTokensEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "text", - "classification" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "generation_tokens" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "text": { - "type": "string", - "description": "The token(s) generated in this chunk" - }, - "classification": { - "type": "string", - "enum": [ - "tokens", - "chain_of_thought", - "opening_delimiter", - "closing_delimiter" - ] - }, - "delimiterClassification": { - "type": "string", - "description": "Present when classification is opening_delimiter or closing_delimiter" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolCallStartedEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "toolName" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_call_started" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "toolCallId": { - "type": "string" - }, - "toolCallIndex": { - "type": "integer" - }, - "toolName": { - "type": "string" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateAgentActionSuccessEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "action" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_action_success" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "action": { - "$ref": "#/components/schemas/PrivateAgentMCPAction" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateAgentMCPAction": { - "type": "object", - "description": "An MCP action with its output.", - "required": [ - "id", - "sId", - "createdAt", - "updatedAt", - "agentMessageId", - "toolName", - "functionCallName", - "functionCallId", - "params", - "citationsAllocated", - "status", - "step", - "generatedFiles", - "output" - ], - "properties": { - "id": { - "type": "integer", - "description": "Numeric model identifier" - }, - "sId": { - "type": "string", - "description": "Unique string identifier" - }, - "createdAt": { - "type": "integer", - "description": "Unix timestamp of creation" - }, - "updatedAt": { - "type": "integer", - "description": "Unix timestamp of last update" - }, - "agentMessageId": { - "type": "integer", - "description": "ID of the parent agent message" - }, - "internalMCPServerName": { - "type": "string", - "nullable": true, - "description": "Name of the internal MCP server, if any" - }, - "toolName": { - "type": "string", - "description": "Name of the tool" - }, - "mcpServerId": { - "type": "string", - "nullable": true, - "description": "ID of the MCP server, if external" - }, - "functionCallName": { - "type": "string", - "description": "Name of the function call" - }, - "functionCallId": { - "type": "string", - "description": "ID of the function call" - }, - "params": { - "type": "object", - "description": "Parameters passed to the tool" - }, - "citationsAllocated": { - "type": "integer", - "description": "Number of citations allocated" - }, - "status": { - "type": "string", - "enum": [ - "succeeded", - "errored", - "denied", - "blocked_authentication_required", - "blocked_file_authorization_required", - "blocked_validation_required", - "blocked_child_action_input_required", - "blocked_user_answer_required", - "ready_allowed_explicitly", - "ready_allowed_implicitly", - "running" - ], - "description": "Execution status of the tool" - }, - "step": { - "type": "integer", - "description": "Step number in the agent execution" - }, - "executionDurationMs": { - "type": "integer", - "nullable": true, - "description": "Duration of execution in milliseconds" - }, - "displayLabels": { - "type": "object", - "nullable": true, - "properties": { - "running": { - "type": "string" - }, - "done": { - "type": "string" - } - } - }, - "generatedFiles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "fileId": { - "type": "string", - "nullable": true, - "description": "Dust file id for DB-backed files, or null for path-backed files." - }, - "filePath": { - "type": "string", - "description": "Canonical scoped path for path-backed files." - }, - "title": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "snippet": { - "type": "string", - "nullable": true - }, - "createdAt": { - "type": "integer" - }, - "updatedAt": { - "type": "integer" - }, - "isInProjectContext": { - "type": "boolean" - }, - "hidden": { - "type": "boolean" - } - } - } - }, - "output": { - "type": "array", - "nullable": true, - "description": "Tool call result content", - "items": { - "type": "object" - } - }, - "citations": { - "type": "object", - "nullable": true, - "description": "Map of citation key to citation object" - } - } - }, - "PrivateAgentMessageSuccessEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "message", - "runIds" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_message_success" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/PrivateAgentMessage" - }, - "runIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "step": { - "type": "integer" - } - } - }, - "PrivateAgentErrorEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "error" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_error" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "error": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "runIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "step": { - "type": "integer" - } - } - }, - "PrivateAgentGenerationCancelledEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_generation_cancelled" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolErrorEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "conversationId", - "error", - "isLastBlockingEventForStep" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_error" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "conversationId": { - "type": "string" - }, - "error": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "isLastBlockingEventForStep": { - "type": "boolean" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolParamsEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId", - "action" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_params" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "action": { - "type": "object", - "description": "The MCP action with its parameters" - }, - "runIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolApproveExecutionEvent": { - "type": "object", - "description": "Sent when a tool requires user approval before execution.", - "required": [ - "type", - "created", - "conversationId", - "messageId", - "actionId", - "configurationId", - "inputs" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_approve_execution" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "actionId": { - "type": "string" - }, - "configurationId": { - "type": "string" - }, - "inputs": { - "type": "object", - "additionalProperties": true - }, - "stake": { - "type": "string", - "description": "Risk level of the tool execution" - }, - "isLastBlockingEventForStep": { - "type": "boolean" - }, - "metadata": { - "type": "object" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolNotificationEvent": { - "type": "object", - "description": "Progress notification from a running tool.", - "required": [ - "type", - "created", - "configurationId", - "conversationId", - "messageId", - "action", - "notification" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_notification" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "conversationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "action": { - "type": "object", - "description": "The MCP action producing the notification" - }, - "notification": { - "type": "object", - "description": "Progress notification content" - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolPersonalAuthRequiredEvent": { - "type": "object", - "description": "Sent when a tool requires personal OAuth authentication.", - "required": [ - "type", - "created", - "conversationId", - "messageId", - "actionId", - "configurationId", - "authError" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_personal_auth_required" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "actionId": { - "type": "string" - }, - "configurationId": { - "type": "string" - }, - "authError": { - "type": "object", - "properties": { - "mcpServerId": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "toolName": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "step": { - "type": "integer" - } - } - }, - "PrivateToolFileAuthRequiredEvent": { - "type": "object", - "description": "Sent when a tool requires file access authorization (e.g., Google Drive).", - "required": [ - "type", - "created", - "conversationId", - "messageId", - "actionId", - "configurationId", - "fileAuthError" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_file_auth_required" - ] - }, - "created": { - "type": "integer" - }, - "conversationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "actionId": { - "type": "string" - }, - "configurationId": { - "type": "string" - }, - "fileAuthError": { - "type": "object", - "properties": { - "fileId": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "connectionId": { - "type": "string" - }, - "mimeType": { - "type": "string" - }, - "toolName": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "step": { - "type": "integer" - } - } - }, - "PrivateAgentContextPrunedEvent": { - "type": "object", - "required": [ - "type", - "created", - "configurationId", - "messageId" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "agent_context_pruned" - ] - }, - "created": { - "type": "integer" - }, - "configurationId": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "step": { - "type": "integer" - } - } - }, + } + }, + "components": { + "schemas": { "Section": { "type": "object", "description": "A section of a document that can contain nested sections",