From fb9f2d0f577a4e88c48804ffe49e6f6212abec58 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 9 Oct 2026 18:04:43 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Dust.Agents.JsonSerializerContext.g.cs | 6 +- .../Dust.Apps.JsonSerializerContext.g.cs | 6 +- ...t.Conversations.JsonSerializerContext.g.cs | 21 +- ...ssistantConversationsByCIdConsumption.g.cs | 626 ++++++++++++++++++ ...DatasourceViews.JsonSerializerContext.g.cs | 6 +- ...ust.Datasources.JsonSerializerContext.g.cs | 6 +- .../Dust.Feedbacks.JsonSerializerContext.g.cs | 4 +- ...ssistantConversationsByCIdConsumption.g.cs | 52 ++ .../Generated/Dust.JsonSerializerContext.g.cs | 17 +- .../Dust.JsonSerializerContextTypes.g.cs | 604 +++++++++-------- ...t.Models.ConversationConsumption.Json.g.cs | 141 ++++ .../Dust.Models.ConversationConsumption.g.cs | 58 ++ ...versationConsumptionAgentDetails.Json.g.cs | 141 ++++ ...s.ConversationConsumptionAgentDetails.g.cs | 108 +++ ....ConversationConsumptionDetails2.Json.g.cs | 141 ++++ ...odels.ConversationConsumptionDetails2.g.cs | 77 +++ ...versationConsumptionModelDetails.Json.g.cs | 141 ++++ ...s.ConversationConsumptionModelDetails.g.cs | 79 +++ ...nversationConsumptionToolDetails.Json.g.cs | 141 ++++ ...ls.ConversationConsumptionToolDetails.g.cs | 116 ++++ src/libs/Dust/Generated/Dust.Models.User.g.cs | 16 +- .../Dust.Search.JsonSerializerContext.g.cs | 2 +- .../Dust.Skills.JsonSerializerContext.g.cs | 6 +- .../Dust.Spaces.JsonSerializerContext.g.cs | 2 +- .../Dust.Tools.JsonSerializerContext.g.cs | 4 +- src/libs/Dust/openapi.yaml | 235 +++++++ 26 files changed, 2446 insertions(+), 310 deletions(-) create mode 100644 src/libs/Dust/Generated/Dust.ConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs create mode 100644 src/libs/Dust/Generated/Dust.IConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumption.Json.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumption.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.Json.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.Json.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.Json.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.Json.g.cs create mode 100644 src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.g.cs diff --git a/src/libs/Dust/Generated/Dust.Agents.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Agents.JsonSerializerContext.g.cs index 3dc3203..328dd9e 100644 --- a/src/libs/Dust/Generated/Dust.Agents.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Agents.JsonSerializerContext.g.cs @@ -14,12 +14,12 @@ namespace Dust [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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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::System.Collections.Generic.IList))] [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))] @@ -64,9 +64,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantAgentConfigurationsImportResponseSkippedAction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantAgentConfigurationsSearchResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentConfigurationTagKind?), TypeInfoPropertyName = "NullableAgentConfigurationTagKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope?), TypeInfoPropertyName = "NullablePatchWAssistantAgentConfigurationsRequestAgentScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind?), TypeInfoPropertyName = "NullablePatchWAssistantAgentConfigurationsRequestTagKind2")] diff --git a/src/libs/Dust/Generated/Dust.Apps.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Apps.JsonSerializerContext.g.cs index e70ead8..3ad05ca 100644 --- a/src/libs/Dust/Generated/Dust.Apps.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Apps.JsonSerializerContext.g.cs @@ -14,10 +14,10 @@ namespace Dust [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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [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))] @@ -33,9 +33,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesAppsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesAppsResponseApp))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [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))] diff --git a/src/libs/Dust/Generated/Dust.Conversations.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Conversations.JsonSerializerContext.g.cs index ae9d24a..26103e0 100644 --- a/src/libs/Dust/Generated/Dust.Conversations.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Conversations.JsonSerializerContext.g.cs @@ -14,19 +14,27 @@ namespace Dust [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(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.User))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionDetails2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionToolDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionModelDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionAgentDetails))] [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.User))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Workspace))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.WorkspaceRole), TypeInfoPropertyName = "WorkspaceRole2")] [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.WorkspaceLocale), TypeInfoPropertyName = "WorkspaceLocale2")] [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))] @@ -74,15 +82,18 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesValidateActionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWFilesResponseFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.WorkspaceRole?), TypeInfoPropertyName = "NullableWorkspaceRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.WorkspaceRole?), TypeInfoPropertyName = "NullableWorkspaceRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.WorkspaceLocale?), TypeInfoPropertyName = "NullableWorkspaceLocale2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ContextAgenticMessageDataType?), TypeInfoPropertyName = "NullableContextAgenticMessageDataType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.AgentConfigurationTagKind?), TypeInfoPropertyName = "NullableAgentConfigurationTagKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ModelSelectionReasoningEffort?), TypeInfoPropertyName = "NullableModelSelectionReasoningEffort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfPatchWAssistantConversationsRequestVariant1PatchWAssistantConversationsRequestVariant22")] + [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))] diff --git a/src/libs/Dust/Generated/Dust.ConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.ConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs new file mode 100644 index 0000000..84f5f42 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.ConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs @@ -0,0 +1,626 @@ + +#nullable enable + +namespace Dust +{ + public partial class ConversationsClient + { + + 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 conversation consumption
+ /// Get the same credit breakdown as the conversation consumption view for a conversation
+ /// the caller can read. Returns stable billed credits for terminal agent messages, including
+ /// superseded message versions and accessible recursively spawned run-agent conversations.
+ /// In-progress messages are excluded until they reach a terminal state.
+ /// Details use each billed message's newest complete stored attribution. They are null when
+ /// no messages have positive billed credits or any billed message lacks complete attribution.
+ /// Agent work and tool attributions partition the bill. Models and agents are alternative
+ /// groupings of that bill, not additional charges. This endpoint does not return token counts
+ /// or a cached-versus-uncached input breakdown. + ///
+ /// + /// + /// 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 conversation consumption
+ /// Get the same credit breakdown as the conversation consumption view for a conversation
+ /// the caller can read. Returns stable billed credits for terminal agent messages, including
+ /// superseded message versions and accessible recursively spawned run-agent conversations.
+ /// In-progress messages are excluded until they reach a terminal state.
+ /// Details use each billed message's newest complete stored attribution. They are null when
+ /// no messages have positive billed credits or any billed message lacks complete attribution.
+ /// Agent work and tool attributions partition the bill. Models and agents are alternative
+ /// groupings of that bill, not additional charges. This endpoint does not return token counts
+ /// or a cached-versus-uncached input breakdown. + ///
+ /// + /// + /// 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/v1/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/v1/w/{wId}/assistant/conversations/{cId}/consumption\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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/v1/w/{wId}/assistant/conversations/{cId}/consumption\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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/v1/w/{wId}/assistant/conversations/{cId}/consumption\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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/v1/w/{wId}/assistant/conversations/{cId}/consumption\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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/v1/w/{wId}/assistant/conversations/{cId}/consumption\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + 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 == 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 ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::Dust.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + 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.ConversationConsumption.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.ConversationConsumption.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.DatasourceViews.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.DatasourceViews.JsonSerializerContext.g.cs index 4103627..94d09a9 100644 --- a/src/libs/Dust/Generated/Dust.DatasourceViews.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.DatasourceViews.JsonSerializerContext.g.cs @@ -14,10 +14,10 @@ namespace Dust [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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Datasource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DatasourceView))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DatasourceViewCategory), TypeInfoPropertyName = "DatasourceViewCategory2")] @@ -32,9 +32,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsSearchResponseDocument))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourceViewsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [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.OneOf?), TypeInfoPropertyName = "NullableOneOfPatchWSpacesDataSourceViewsRequestVariant1PatchWSpacesDataSourceViewsRequestVariant22")] diff --git a/src/libs/Dust/Generated/Dust.Datasources.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Datasources.JsonSerializerContext.g.cs index 1b0c953..0a9190d 100644 --- a/src/libs/Dust/Generated/Dust.Datasources.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Datasources.JsonSerializerContext.g.cs @@ -16,10 +16,10 @@ namespace Dust [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(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Datasource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Table))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -52,9 +52,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesDataSourcesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.TableSchemaItemValueType?), TypeInfoPropertyName = "NullableTableSchemaItemValueType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.OneOf?), TypeInfoPropertyName = "NullableOneOfStringDoubleBooleanCreateWSpacesDataSourcesTablesRowsRequestRowValue22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType?), TypeInfoPropertyName = "NullableCreateWSpacesDataSourcesTablesRowsRequestRowValueType2")] diff --git a/src/libs/Dust/Generated/Dust.Feedbacks.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Feedbacks.JsonSerializerContext.g.cs index 5b9db1b..bda2d00 100644 --- a/src/libs/Dust/Generated/Dust.Feedbacks.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Feedbacks.JsonSerializerContext.g.cs @@ -14,8 +14,8 @@ namespace Dust [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(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection), TypeInfoPropertyName = "CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsFeedbacksResponse))] @@ -24,8 +24,8 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection), TypeInfoPropertyName = "GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection?), TypeInfoPropertyName = "NullableCreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection?), TypeInfoPropertyName = "NullableGetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Dust/Generated/Dust.IConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs b/src/libs/Dust/Generated/Dust.IConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs new file mode 100644 index 0000000..4cbaddc --- /dev/null +++ b/src/libs/Dust/Generated/Dust.IConversationsClient.GetWByWIdAssistantConversationsByCIdConsumption.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Dust +{ + public partial interface IConversationsClient + { + /// + /// Get conversation consumption
+ /// Get the same credit breakdown as the conversation consumption view for a conversation
+ /// the caller can read. Returns stable billed credits for terminal agent messages, including
+ /// superseded message versions and accessible recursively spawned run-agent conversations.
+ /// In-progress messages are excluded until they reach a terminal state.
+ /// Details use each billed message's newest complete stored attribution. They are null when
+ /// no messages have positive billed credits or any billed message lacks complete attribution.
+ /// Agent work and tool attributions partition the bill. Models and agents are alternative
+ /// groupings of that bill, not additional charges. This endpoint does not return token counts
+ /// or a cached-versus-uncached input breakdown. + ///
+ /// + /// + /// 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 conversation consumption
+ /// Get the same credit breakdown as the conversation consumption view for a conversation
+ /// the caller can read. Returns stable billed credits for terminal agent messages, including
+ /// superseded message versions and accessible recursively spawned run-agent conversations.
+ /// In-progress messages are excluded until they reach a terminal state.
+ /// Details use each billed message's newest complete stored attribution. They are null when
+ /// no messages have positive billed credits or any billed message lacks complete attribution.
+ /// Agent work and tool attributions partition the bill. Models and agents are alternative
+ /// groupings of that bill, not additional charges. This endpoint does not return token counts
+ /// or a cached-versus-uncached input breakdown. + ///
+ /// + /// + /// 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.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs index 660b31e..881033c 100644 --- a/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs @@ -197,19 +197,27 @@ namespace Dust [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(global::Dust.ConversationConsumption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionDetails2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionToolDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionModelDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.ConversationConsumptionAgentDetails))] [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.User))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Workspace))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.WorkspaceRole), TypeInfoPropertyName = "WorkspaceRole2")] [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.WorkspaceLocale), TypeInfoPropertyName = "WorkspaceLocale2")] [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))] @@ -432,6 +440,9 @@ namespace Dust [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::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))] diff --git a/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs b/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs index 556f59b..e09d9b5 100644 --- a/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs +++ b/src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs @@ -45,939 +45,971 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Dust.User? Type3 { get; set; } + public global::Dust.ConversationConsumption? Type3 { get; set; } /// /// /// - public int? Type4 { get; set; } + public double? Type4 { get; set; } /// /// /// - public global::Dust.Workspace? Type5 { get; set; } + public global::Dust.ConversationConsumptionDetails2? Type5 { get; set; } /// /// /// - public global::Dust.WorkspaceRole? Type6 { get; set; } + public global::System.Collections.Generic.IList? Type6 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type7 { get; set; } + public global::Dust.ConversationConsumptionToolDetails? Type7 { get; set; } /// /// /// - public bool? Type8 { get; set; } + public global::System.Collections.Generic.IList? Type8 { get; set; } /// /// /// - public global::Dust.WorkspaceLocale? Type9 { get; set; } + public global::Dust.ConversationConsumptionModelDetails? Type9 { get; set; } /// /// /// - public global::Dust.Context? Type10 { get; set; } + public global::System.Collections.Generic.IList? Type10 { get; set; } /// /// /// - public global::Dust.ContextAgenticMessageData? Type11 { get; set; } + public global::Dust.ConversationConsumptionAgentDetails? Type11 { get; set; } /// /// /// - public global::Dust.ContextAgenticMessageDataType? Type12 { get; set; } + public int? Type12 { get; set; } /// /// /// - public global::Dust.AgentConfiguration? Type13 { get; set; } + public bool? Type13 { get; set; } /// /// /// - public global::Dust.AgentConfigurationModel? Type14 { get; set; } + public global::Dust.User? Type14 { get; set; } /// /// /// - public double? Type15 { get; set; } + public global::Dust.Workspace? Type15 { get; set; } /// /// /// - public byte[]? Type16 { get; set; } + public global::Dust.WorkspaceRole? Type16 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public global::Dust.AgentSkill? Type18 { get; set; } + public global::Dust.WorkspaceLocale? Type18 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type19 { get; set; } + public global::Dust.Context? Type19 { get; set; } /// /// /// - public global::Dust.AgentConfigurationTag? Type20 { get; set; } + public global::Dust.ContextAgenticMessageData? Type20 { get; set; } /// /// /// - public global::Dust.AgentConfigurationTagKind? Type21 { get; set; } + public global::Dust.ContextAgenticMessageDataType? Type21 { get; set; } /// /// /// - public global::Dust.Conversation? Type22 { get; set; } + public global::Dust.AgentConfiguration? Type22 { get; set; } /// /// /// - public global::Dust.ConversationConversation1? Type23 { get; set; } + public global::Dust.AgentConfigurationModel? Type23 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type24 { get; set; } + public byte[]? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public global::System.Collections.Generic.IList? Type25 { get; set; } /// /// /// - public global::Dust.ConversationConversation1ContentItemItem? Type26 { get; set; } + public global::Dust.AgentSkill? Type26 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type27 { get; set; } + public global::System.Collections.Generic.IList? Type27 { get; set; } /// /// /// - public global::Dust.Mention? Type28 { get; set; } + public global::Dust.AgentConfigurationTag? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public global::Dust.AgentConfigurationTagKind? Type29 { get; set; } /// /// /// - public global::Dust.ConversationConversation1ContentItemItemAction? Type30 { get; set; } + public global::Dust.Conversation? Type30 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type31 { get; set; } + public global::Dust.ConversationConversation1? Type31 { get; set; } /// /// /// - public global::Dust.ConversationConversation1ContentItemItemActionGeneratedFile? Type32 { get; set; } + public global::System.Collections.Generic.IList>? Type32 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type33 { get; set; } + public global::System.Collections.Generic.IList? Type33 { get; set; } /// /// /// - public global::Dust.ConversationConversation1ContentItemItemRawContent? Type34 { get; set; } + public global::Dust.ConversationConversation1ContentItemItem? Type34 { get; set; } /// /// /// - public global::Dust.RichMention? Type35 { get; set; } + public global::System.Collections.Generic.IList? Type35 { get; set; } /// /// /// - public global::Dust.RichMentionType? Type36 { get; set; } + public global::Dust.Mention? Type36 { get; set; } /// /// /// - public global::Dust.Message? Type37 { get; set; } + public global::System.Collections.Generic.IList? Type37 { get; set; } /// /// /// - public global::Dust.ModelSelection? Type38 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemAction? Type38 { get; set; } /// /// /// - public global::Dust.ModelSelectionReasoningEffort? Type39 { get; set; } + public global::System.Collections.Generic.IList? Type39 { get; set; } /// /// /// - public global::Dust.ContentFragment? Type40 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemActionGeneratedFile? Type40 { get; set; } /// /// /// - public global::Dust.Space? Type41 { get; set; } + public global::System.Collections.Generic.IList? Type41 { get; set; } /// /// /// - public global::Dust.SpaceKind? Type42 { get; set; } + public global::Dust.ConversationConversation1ContentItemItemRawContent? Type42 { get; set; } /// /// /// - public global::Dust.Datasource? Type43 { get; set; } + public global::Dust.RichMention? Type43 { get; set; } /// /// /// - public global::Dust.Table? Type44 { get; set; } + public global::Dust.RichMentionType? Type44 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::Dust.Message? Type45 { get; set; } /// /// /// - public global::Dust.TableSchemaItem? Type46 { get; set; } + public global::Dust.ModelSelection? Type46 { get; set; } /// /// /// - public global::Dust.TableSchemaItemValueType? Type47 { get; set; } + public global::Dust.ModelSelectionReasoningEffort? Type47 { get; set; } /// /// /// - public global::Dust.DatasourceView? Type48 { get; set; } + public global::Dust.ContentFragment? Type48 { get; set; } /// /// /// - public global::Dust.DatasourceViewCategory? Type49 { get; set; } + public global::Dust.Space? Type49 { get; set; } /// /// /// - public global::Dust.DatasourceViewEditedByUser? Type50 { get; set; } + public global::Dust.SpaceKind? Type50 { get; set; } /// /// /// - public global::Dust.DatasourceViewKind? Type51 { get; set; } + public global::Dust.Datasource? Type51 { get; set; } /// /// /// - public global::Dust.SkillSourceMetadata? Type52 { get; set; } + public global::Dust.Table? Type52 { get; set; } /// /// /// - public global::Dust.Skill? Type53 { get; set; } + public global::System.Collections.Generic.IList? Type53 { get; set; } /// /// /// - public global::Dust.SkillStatus? Type54 { get; set; } + public global::Dust.TableSchemaItem? Type54 { get; set; } /// /// /// - public global::Dust.SkillSource? Type55 { get; set; } + public global::Dust.TableSchemaItemValueType? Type55 { get; set; } /// /// /// - public global::Dust.SkillReinforcement? Type56 { get; set; } + public global::Dust.DatasourceView? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::Dust.DatasourceViewCategory? Type57 { get; set; } /// /// /// - public global::Dust.SkillFileAttachment? Type58 { get; set; } + public global::Dust.DatasourceViewEditedByUser? Type58 { get; set; } /// /// /// - public global::Dust.SkillAvailability? Type59 { get; set; } + public global::Dust.DatasourceViewKind? Type59 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type60 { get; set; } + public global::Dust.SkillSourceMetadata? Type60 { get; set; } /// /// /// - public global::Dust.MCPServerView? Type61 { get; set; } + public global::Dust.Skill? Type61 { get; set; } /// /// /// - public global::Dust.Run? Type62 { get; set; } + public global::Dust.SkillStatus? Type62 { get; set; } /// /// /// - public global::Dust.RunStatus? Type63 { get; set; } + public global::Dust.SkillSource? Type63 { get; set; } /// /// /// - public object? Type64 { get; set; } + public global::Dust.SkillReinforcement? Type64 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Dust.SkillFileAttachment? Type66 { get; set; } /// /// /// - public global::Dust.RunTraceItem? Type67 { get; set; } + public global::Dust.SkillAvailability? Type67 { get; set; } /// /// /// - public global::Dust.Document? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type69 { get; set; } + public global::Dust.MCPServerView? Type69 { get; set; } /// /// /// - public global::Dust.MCPServerViewServerType? Type70 { get; set; } + public global::Dust.Run? Type70 { get; set; } /// /// /// - public global::Dust.MCPServerViewServer? Type71 { get; set; } + public global::Dust.RunStatus? Type71 { get; set; } /// /// /// - public global::Dust.MCPServerViewServerAuthorization? Type72 { get; set; } + public object? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::System.Collections.Generic.IList>? Type73 { get; set; } /// /// /// - public global::Dust.MCPServerViewServerAuthorizationSupportedUseCase? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type75 { get; set; } + public global::Dust.RunTraceItem? Type75 { get; set; } /// /// /// - public global::Dust.MCPServerViewServerTool? Type76 { get; set; } + public global::Dust.Document? Type76 { get; set; } /// /// /// - public global::Dust.MCPServerViewOAuthUseCase? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::Dust.MCPServerViewEditedByUser? Type78 { get; set; } + public global::Dust.MCPServerViewServerType? Type78 { get; set; } /// /// /// - public global::Dust.Trigger? Type79 { get; set; } + public global::Dust.MCPServerViewServer? Type79 { get; set; } /// /// /// - public global::Dust.TriggerKind? Type80 { get; set; } + public global::Dust.MCPServerViewServerAuthorization? Type80 { get; set; } /// /// /// - public global::Dust.TriggerStatus? Type81 { get; set; } + public global::System.Collections.Generic.IList? Type81 { get; set; } /// /// /// - public global::Dust.TriggerExecutionMode? Type82 { get; set; } + public global::Dust.MCPServerViewServerAuthorizationSupportedUseCase? Type82 { get; set; } /// /// /// - public global::Dust.TriggerWebhookSource? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::Dust.CreateWAnalyticsConsumptionExportRequest? Type84 { get; set; } + public global::Dust.MCPServerViewServerTool? Type84 { get; set; } /// /// /// - public global::System.DateTime? Type85 { get; set; } + public global::Dust.MCPServerViewOAuthUseCase? Type85 { get; set; } /// /// /// - public global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? Type86 { get; set; } + public global::Dust.MCPServerViewEditedByUser? Type86 { get; set; } /// /// /// - public global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? Type87 { get; set; } + public global::Dust.Trigger? Type87 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequest? Type88 { get; set; } + public global::Dust.TriggerKind? Type88 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestAgent? Type89 { get; set; } + public global::Dust.TriggerStatus? Type89 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope? Type90 { get; set; } + public global::Dust.TriggerExecutionMode? Type90 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestGenerationSettings? Type91 { get; set; } + public global::Dust.TriggerWebhookSource? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequest? Type92 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestTag? Type93 { get; set; } + public global::System.DateTime? Type93 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind? Type94 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequestFormat? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::Dust.CreateWAnalyticsConsumptionExportRequestFilter? Type95 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestSkill? Type96 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequest? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestAgent? Type97 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItem? Type98 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestAgentScope? Type98 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType? Type99 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestGenerationSettings? Type99 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemConfiguration? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequest? Type101 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestTag? Type101 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgent? Type102 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestTagKind? Type102 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestGenerationSettings? Type104 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestSkill? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTag? Type106 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItem? Type106 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind? Type107 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemType? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsRequestToolsetItemConfiguration? Type108 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItem? Type109 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequest? Type109 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType? Type110 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgent? Type110 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsCancelRequest? Type111 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestAgentScope? Type111 { get; set; } /// /// /// - public global::Dust.OneOf? Type112 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestGenerationSettings? Type112 { get; set; } /// /// /// - public global::Dust.PatchWAssistantConversationsRequestVariant1? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::Dust.PatchWAssistantConversationsRequestVariant2? Type114 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTag? Type114 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequest? Type115 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestTagKind? Type115 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequestAnswer? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItem? Type117 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesEditRequest? Type118 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportRequestToolsetItemType? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::Dust.CreateWAssistantConversationsCancelRequest? Type119 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesEditRequestMention? Type120 { get; set; } + public global::Dust.OneOf? Type120 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest? Type121 { get; set; } + public global::Dust.PatchWAssistantConversationsRequestVariant1? Type121 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection? Type122 { get; set; } + public global::Dust.PatchWAssistantConversationsRequestVariant2? Type122 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesValidateActionRequest? Type123 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequest? Type123 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsRequest? Type124 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionRequestAnswer? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::Dust.CreateWAssistantMentionsParseRequest? Type126 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditRequest? Type126 { get; set; } /// /// /// - public global::Dust.CreateWFilesRequest? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::Dust.CreateWMcpDeregisterRequest? Type128 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditRequestMention? Type128 { get; set; } /// /// /// - public global::Dust.CreateWMcpHeartbeatRequest? Type129 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequest? Type129 { get; set; } /// /// /// - public global::Dust.CreateWMcpRegisterRequest? Type130 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksRequestThumbDirection? Type130 { get; set; } /// /// /// - public global::Dust.CreateWMcpResultsRequest? Type131 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesValidateActionRequest? Type131 { get; set; } /// /// /// - public global::Dust.CreateWSearchRequest? Type132 { get; set; } + public global::Dust.CreateWAssistantConversationsRequest? Type132 { get; set; } /// /// /// - public global::Dust.CreateWSearchToolsUploadRequest? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::Dust.CreateWSkillsRequest? Type134 { get; set; } + public global::Dust.CreateWAssistantMentionsParseRequest? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::Dust.CreateWFilesRequest? Type135 { get; set; } /// /// /// - public global::Dust.CreateWSkillsRequestOnConflict? Type136 { get; set; } + public global::Dust.CreateWMcpDeregisterRequest? Type136 { get; set; } /// /// /// - public global::Dust.CreateWSkillsRequestAvailability? Type137 { get; set; } + public global::Dust.CreateWMcpHeartbeatRequest? Type137 { get; set; } /// /// /// - public global::Dust.CreateWSpacesAppsRunsRequest? Type138 { get; set; } + public global::Dust.CreateWMcpRegisterRequest? Type138 { get; set; } /// /// /// - public global::Dust.CreateWSpacesAppsRunsRequestConfig? Type139 { get; set; } + public global::Dust.CreateWMcpResultsRequest? Type139 { get; set; } /// /// /// - public global::Dust.CreateWSpacesAppsRunsRequestConfigModel? Type140 { get; set; } + public global::Dust.CreateWSearchRequest? Type140 { get; set; } /// /// /// - public global::Dust.OneOf? Type141 { get; set; } + public global::Dust.CreateWSearchToolsUploadRequest? Type141 { get; set; } /// /// /// - public global::Dust.PatchWSpacesDataSourceViewsRequestVariant1? Type142 { get; set; } + public global::Dust.CreateWSkillsRequest? Type142 { get; set; } /// /// /// - public global::Dust.PatchWSpacesDataSourceViewsRequestVariant2? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesDocumentsRequest? Type144 { get; set; } + public global::Dust.CreateWSkillsRequestOnConflict? Type144 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesDocumentsParentsRequest? Type145 { get; set; } + public global::Dust.CreateWSkillsRequestAvailability? Type145 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequest? Type146 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequest? Type146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type147 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequestConfig? Type147 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRow? Type148 { get; set; } + public global::Dust.CreateWSpacesAppsRunsRequestConfigModel? Type148 { get; set; } /// /// /// - public global::Dust.OneOf? Type149 { get; set; } + public global::Dust.OneOf? Type149 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValue2? Type150 { get; set; } + public global::Dust.PatchWSpacesDataSourceViewsRequestVariant1? Type150 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType? Type151 { get; set; } + public global::Dust.PatchWSpacesDataSourceViewsRequestVariant2? Type151 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesRequest? Type152 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsRequest? Type152 { get; set; } /// /// /// - public global::Dust.GetWAnalyticsExportTable? Type153 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsParentsRequest? Type153 { get; set; } /// /// /// - public global::Dust.GetWAnalyticsExportFormat? Type154 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequest? Type154 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsView? Type155 { get; set; } + public global::System.Collections.Generic.IList? Type155 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsWithAuthors? Type156 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRow? Type156 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsVariant? Type157 { get; set; } + public global::Dust.OneOf? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValue2? Type158 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem? Type159 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRowsRequestRowValueType? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Dust.CreateWSpacesDataSourcesTablesRequest? Type160 { get; set; } /// /// /// - public global::Dust.GetWAssistantMentionsSuggestionsSelectItem? Type161 { get; set; } + public global::Dust.GetWAnalyticsExportTable? Type161 { get; set; } /// /// /// - public global::Dust.GetWSearchViewType? Type162 { get; set; } + public global::Dust.GetWAnalyticsExportFormat? Type162 { get; set; } /// /// /// - public global::Dust.GetWSkillsStatus? Type163 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsView? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsWithAuthors? Type164 { get; set; } /// /// /// - public global::Dust.GetWSkillsAvailabilityItem? Type165 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsVariant? Type165 { get; set; } /// /// /// - public global::Dust.GetWTriggersKind? Type166 { get; set; } + public global::System.Collections.Generic.IList? Type166 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsResponse? Type167 { get; set; } + public global::Dust.GetWAssistantConversationsMentionsSuggestionsSelectItem? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsResponse2? Type169 { get; set; } + public global::Dust.GetWAssistantMentionsSuggestionsSelectItem? Type169 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsResponse? Type170 { get; set; } + public global::Dust.GetWSearchViewType? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Dust.GetWSkillsStatus? Type171 { get; set; } /// /// /// - public global::Dust.PatchWAssistantAgentConfigurationsResponseSkippedAction? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::Dust.DeleteWAssistantAgentConfigurationsResponse? Type173 { get; set; } + public global::Dust.GetWSkillsAvailabilityItem? Type173 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportResponse? Type174 { get; set; } + public global::Dust.GetWTriggersKind? Type174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsResponse? Type175 { get; set; } /// /// /// - public global::Dust.CreateWAssistantAgentConfigurationsImportResponseSkippedAction? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::Dust.GetWAssistantAgentConfigurationsSearchResponse? Type177 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsResponse2? Type177 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsCancelResponse? Type178 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsResponse? Type178 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsEventsResponse? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsFeedbacksResponse? Type180 { get; set; } + public global::Dust.PatchWAssistantAgentConfigurationsResponseSkippedAction? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Dust.DeleteWAssistantAgentConfigurationsResponse? Type181 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedback? Type182 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportResponse? Type182 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Dust.PatchWAssistantConversationsResponse? Type184 { get; set; } + public global::Dust.CreateWAssistantAgentConfigurationsImportResponseSkippedAction? Type184 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsMentionsSuggestionsResponse? Type185 { get; set; } + public global::Dust.GetWAssistantAgentConfigurationsSearchResponse? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Dust.CreateWAssistantConversationsCancelResponse? Type186 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionResponse? Type187 { get; set; } + public global::Dust.GetWAssistantConversationsEventsResponse? Type187 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesEditResponse? Type188 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponse? Type188 { get; set; } /// /// /// - public global::Dust.GetWAssistantConversationsMessagesEventsResponse? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse? Type190 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedback? Type190 { get; set; } /// /// /// - public global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse? Type191 { get; set; } + public global::Dust.GetWAssistantConversationsFeedbacksResponseFeedbackThumbDirection? Type191 { get; set; } /// /// /// - public global::Dust.CreateWAssistantConversationsMessagesValidateActionResponse? Type192 { get; set; } + public global::Dust.PatchWAssistantConversationsResponse? Type192 { get; set; } /// /// /// - public global::Dust.CreateWAssistantMentionsParseResponse? Type193 { get; set; } + public global::Dust.GetWAssistantConversationsMentionsSuggestionsResponse? Type193 { get; set; } /// /// /// - public global::Dust.GetWAssistantMentionsSuggestionsResponse? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::Dust.CreateWFilesResponse? Type195 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesAnswerQuestionResponse? Type195 { get; set; } /// /// /// - public global::Dust.CreateWFilesResponseFile? Type196 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesEditResponse? Type196 { get; set; } /// /// /// - public global::Dust.CreateWMcpHeartbeatResponse? Type197 { get; set; } + public global::Dust.GetWAssistantConversationsMessagesEventsResponse? Type197 { get; set; } /// /// /// - public global::Dust.CreateWMcpRegisterResponse? Type198 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesFeedbacksResponse? Type198 { get; set; } /// /// /// - public global::Dust.GetWMcpRequestsResponse? Type199 { get; set; } + public global::Dust.DeleteWAssistantConversationsMessagesFeedbacksResponse? Type199 { get; set; } /// /// /// - public global::Dust.DeleteWSkillsResponse? Type200 { get; set; } + public global::Dust.CreateWAssistantConversationsMessagesValidateActionResponse? Type200 { get; set; } /// /// /// - public global::Dust.GetWSkillsResponse? Type201 { get; set; } + public global::Dust.CreateWAssistantMentionsParseResponse? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Dust.GetWAssistantMentionsSuggestionsResponse? Type202 { get; set; } /// /// /// - public global::Dust.CreateWSkillsResponse? Type203 { get; set; } + public global::Dust.CreateWFilesResponse? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::Dust.CreateWFilesResponseFile? Type204 { get; set; } /// /// /// - public global::Dust.CreateWSkillsResponseSkippedItem? Type205 { get; set; } + public global::Dust.CreateWMcpHeartbeatResponse? Type205 { get; set; } /// /// /// - public global::Dust.GetWSpacesAppsRunsResponse? Type206 { get; set; } + public global::Dust.CreateWMcpRegisterResponse? Type206 { get; set; } /// /// /// - public global::Dust.CreateWSpacesAppsRunsResponse? Type207 { get; set; } + public global::Dust.GetWMcpRequestsResponse? Type207 { get; set; } /// /// /// - public global::Dust.GetWSpacesAppsResponse? Type208 { get; set; } + public global::Dust.DeleteWSkillsResponse? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::Dust.GetWSkillsResponse? Type209 { get; set; } /// /// /// - public global::Dust.GetWSpacesAppsResponseApp? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourceViewsSearchResponse? Type211 { get; set; } + public global::Dust.CreateWSkillsResponse? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourceViewsSearchResponseDocument? Type213 { get; set; } + public global::Dust.CreateWSkillsResponseSkippedItem? Type213 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourceViewsResponse? Type214 { get; set; } + public global::Dust.GetWSpacesAppsRunsResponse? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type215 { get; set; } + public global::Dust.CreateWSpacesAppsRunsResponse? Type215 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesCheckUpsertQueueResponse? Type216 { get; set; } + public global::Dust.GetWSpacesAppsResponse? Type216 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesDocumentsResponse? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesDocumentsResponse? Type218 { get; set; } + public global::Dust.GetWSpacesAppsResponseApp? Type218 { get; set; } /// /// /// - public global::Dust.DeleteWSpacesDataSourcesDocumentsResponse? Type219 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsSearchResponse? Type219 { get; set; } /// /// /// - public global::Dust.DeleteWSpacesDataSourcesDocumentsResponseDocument? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesDocumentsResponse2? Type221 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsSearchResponseDocument? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::Dust.GetWSpacesDataSourceViewsResponse? Type222 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesSearchResponse? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type224 { get; set; } + public global::Dust.GetWSpacesDataSourcesCheckUpsertQueueResponse? Type224 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesSearchResponseDocument? Type225 { get; set; } + public global::Dust.GetWSpacesDataSourcesDocumentsResponse? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Dust.CreateWSpacesDataSourcesDocumentsResponse? Type226 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesTablesResponse? Type227 { get; set; } + public global::Dust.DeleteWSpacesDataSourcesDocumentsResponse? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Dust.DeleteWSpacesDataSourcesDocumentsResponseDocument? Type228 { get; set; } /// /// /// - public global::Dust.CreateWSpacesDataSourcesTablesResponse? Type229 { get; set; } + public global::Dust.GetWSpacesDataSourcesDocumentsResponse2? Type229 { get; set; } /// /// /// - public global::Dust.GetWSpacesDataSourcesResponse? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::Dust.GetWSpacesMcpServerViewsResponse? Type231 { get; set; } + public global::Dust.GetWSpacesDataSourcesSearchResponse? Type231 { get; set; } /// /// /// - public global::Dust.GetWSpacesResponse? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Dust.GetWSpacesDataSourcesSearchResponseDocument? Type233 { get; set; } /// /// /// - public global::Dust.GetWTriggersResponse? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::Dust.GetWTriggersResponse2? Type235 { get; set; } + public global::Dust.GetWSpacesDataSourcesTablesResponse? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } + /// + /// + /// + public global::Dust.CreateWSpacesDataSourcesTablesResponse? Type237 { get; set; } + /// + /// + /// + public global::Dust.GetWSpacesDataSourcesResponse? Type238 { get; set; } + /// + /// + /// + public global::Dust.GetWSpacesMcpServerViewsResponse? Type239 { get; set; } + /// + /// + /// + public global::Dust.GetWSpacesResponse? Type240 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type241 { get; set; } + /// + /// + /// + public global::Dust.GetWTriggersResponse? Type242 { get; set; } + /// + /// + /// + public global::Dust.GetWTriggersResponse2? Type243 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// @@ -986,186 +1018,198 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } + /// + /// + /// + 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? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType4 { get; set; } + public global::System.Collections.Generic.List>? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType13 { get; set; } + public global::System.Collections.Generic.List>? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.ConversationConsumption.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumption.Json.g.cs new file mode 100644 index 0000000..489dd8b --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumption.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Dust +{ + public sealed partial class ConversationConsumption + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.ConversationConsumption? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dust.ConversationConsumption), + jsonSerializerContext) as global::Dust.ConversationConsumption; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Dust.ConversationConsumption? 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.ConversationConsumption? 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.ConversationConsumption), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.ConversationConsumption; + } + + /// + /// Deserializes a 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.ConversationConsumption.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumption.g.cs new file mode 100644 index 0000000..6ac04ce --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumption.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Dust +{ + /// + /// + /// + public sealed partial class ConversationConsumption + { + /// + /// Stable billed Dust credits for terminal agent messages in the conversation and its accessible run-agent descendants, including superseded message versions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("billedCredits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double BilledCredits { get; set; } + + /// + /// Null when no messages have positive billed credits or any billed message lacks complete attribution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("details")] + public global::Dust.ConversationConsumptionDetails2? 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. + /// + /// + /// Stable billed Dust credits for terminal agent messages in the conversation and its accessible run-agent descendants, including superseded message versions. + /// + /// + /// Null when no messages have positive billed credits or any billed message lacks complete attribution. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationConsumption( + double billedCredits, + global::Dust.ConversationConsumptionDetails2? details) + { + this.BilledCredits = billedCredits; + this.Details = details; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationConsumption() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.Json.g.cs new file mode 100644 index 0000000..f2fa0ea --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Dust +{ + public sealed partial class ConversationConsumptionAgentDetails + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.ConversationConsumptionAgentDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dust.ConversationConsumptionAgentDetails), + jsonSerializerContext) as global::Dust.ConversationConsumptionAgentDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Dust.ConversationConsumptionAgentDetails? 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.ConversationConsumptionAgentDetails? 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.ConversationConsumptionAgentDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.ConversationConsumptionAgentDetails; + } + + /// + /// Deserializes a 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.ConversationConsumptionAgentDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.g.cs new file mode 100644 index 0000000..7e2c860 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionAgentDetails.g.cs @@ -0,0 +1,108 @@ + +#nullable enable + +namespace Dust +{ + /// + /// + /// + public sealed partial class ConversationConsumptionAgentDetails + { + /// + /// String identifier of the agent. + /// + [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; } + + /// + /// Stable billed credits grouped under this agent. Hidden helpers are folded into their parent agent. + /// + [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("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. + /// + /// + /// String identifier of the agent. + /// + /// + /// + /// Stable billed credits grouped under this agent. Hidden helpers are folded into their parent agent. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationConsumptionAgentDetails( + 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 ConversationConsumptionAgentDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.Json.g.cs new file mode 100644 index 0000000..c8c2e7d --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Dust +{ + public sealed partial class ConversationConsumptionDetails2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.ConversationConsumptionDetails2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dust.ConversationConsumptionDetails2), + jsonSerializerContext) as global::Dust.ConversationConsumptionDetails2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Dust.ConversationConsumptionDetails2? 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.ConversationConsumptionDetails2? 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.ConversationConsumptionDetails2), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.ConversationConsumptionDetails2; + } + + /// + /// Deserializes a 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.ConversationConsumptionDetails2.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.g.cs new file mode 100644 index 0000000..7716be1 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionDetails2.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace Dust +{ + /// + /// Attribution reconciled to the bill through model input rows. Agent work plus tool attributed credits partition the bill; models and agents are alternative groupings, not additional charges. + /// + public sealed partial class ConversationConsumptionDetails2 + { + /// + /// Credits attributed to agent work rather than visible tools. + /// + [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. + /// + /// + /// Credits attributed to agent work rather than visible tools. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationConsumptionDetails2( + 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 ConversationConsumptionDetails2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.Json.g.cs new file mode 100644 index 0000000..058f6ac --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Dust +{ + public sealed partial class ConversationConsumptionModelDetails + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.ConversationConsumptionModelDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dust.ConversationConsumptionModelDetails), + jsonSerializerContext) as global::Dust.ConversationConsumptionModelDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Dust.ConversationConsumptionModelDetails? 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.ConversationConsumptionModelDetails? 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.ConversationConsumptionModelDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.ConversationConsumptionModelDetails; + } + + /// + /// Deserializes a 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.ConversationConsumptionModelDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.g.cs new file mode 100644 index 0000000..2d5d454 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionModelDetails.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace Dust +{ + /// + /// + /// + public sealed partial class ConversationConsumptionModelDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProviderId { get; set; } + + /// + /// Provider model identifier, not an internal database identifier. + /// + [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; } + + /// + /// Reconciled credits grouped by model, including tool attribution linked to its runs. Overlaps agent work and tool totals. + /// + [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. + /// + /// + /// + /// Provider model identifier, not an internal database identifier. + /// + /// + /// + /// Reconciled credits grouped by model, including tool attribution linked to its runs. Overlaps agent work and tool totals. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationConsumptionModelDetails( + 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 ConversationConsumptionModelDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.Json.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.Json.g.cs new file mode 100644 index 0000000..3998df3 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Dust +{ + public sealed partial class ConversationConsumptionToolDetails + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.ConversationConsumptionToolDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Dust.ConversationConsumptionToolDetails), + jsonSerializerContext) as global::Dust.ConversationConsumptionToolDetails; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Dust.ConversationConsumptionToolDetails? 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.ConversationConsumptionToolDetails? 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.ConversationConsumptionToolDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::Dust.ConversationConsumptionToolDetails; + } + + /// + /// Deserializes a 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.ConversationConsumptionToolDetails.g.cs b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.g.cs new file mode 100644 index 0000000..1bc3492 --- /dev/null +++ b/src/libs/Dust/Generated/Dust.Models.ConversationConsumptionToolDetails.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace Dust +{ + /// + /// + /// + public sealed partial class ConversationConsumptionToolDetails + { + /// + /// Display label of the tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Internal MCP server name, or null for an external server. + /// + [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; } + + /// + /// Number of attributed calls grouped under this tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("callCount")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CallCount { get; set; } + + /// + /// Share of billed credits attributed to the tool, including model work and direct charges. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attributedCredits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double AttributedCredits { get; set; } + + /// + /// Direct tool charges already included in attributedCredits, not an additional charge. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("directCredits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double DirectCredits { get; set; } + + /// + /// Whether any grouped tool attribution is pending. + /// + [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. + /// + /// + /// Display label of the tool. + /// + /// + /// + /// Number of attributed calls grouped under this tool. + /// + /// + /// Share of billed credits attributed to the tool, including model work and direct charges. + /// + /// + /// Direct tool charges already included in attributedCredits, not an additional charge. + /// + /// + /// Whether any grouped tool attribution is pending. + /// + /// + /// Internal MCP server name, or null for an external server. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConversationConsumptionToolDetails( + 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 ConversationConsumptionToolDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Dust/Generated/Dust.Models.User.g.cs b/src/libs/Dust/Generated/Dust.Models.User.g.cs index 307a8b0..ebd0394 100644 --- a/src/libs/Dust/Generated/Dust.Models.User.g.cs +++ b/src/libs/Dust/Generated/Dust.Models.User.g.cs @@ -86,6 +86,14 @@ public sealed partial class User [global::System.Text.Json.Serialization.JsonPropertyName("image")] public string? Image { get; set; } + /// + /// User's pronouns, as entered by the user
+ /// Example: they/them + ///
+ /// they/them + [global::System.Text.Json.Serialization.JsonPropertyName("pronouns")] + public string? Pronouns { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -133,6 +141,10 @@ public sealed partial class User /// URL of the user's profile image
/// Example: https://example.com/profile/johndoe.jpg /// + /// + /// User's pronouns, as entered by the user
+ /// Example: they/them + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -146,7 +158,8 @@ public User( string? lastName, string? fullName, string? provider, - string? image) + string? image, + string? pronouns) { this.SId = sId; this.Id = id; @@ -158,6 +171,7 @@ public User( this.FullName = fullName; this.Provider = provider; this.Image = image; + this.Pronouns = pronouns; } /// diff --git a/src/libs/Dust/Generated/Dust.Search.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Search.JsonSerializerContext.g.cs index e7a320e..28f1ae4 100644 --- a/src/libs/Dust/Generated/Dust.Search.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Search.JsonSerializerContext.g.cs @@ -15,8 +15,8 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSearchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSearchToolsUploadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSearchViewType), TypeInfoPropertyName = "GetWSearchViewType2")] diff --git a/src/libs/Dust/Generated/Dust.Skills.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Skills.JsonSerializerContext.g.cs index c9176e0..33fe93e 100644 --- a/src/libs/Dust/Generated/Dust.Skills.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Skills.JsonSerializerContext.g.cs @@ -14,10 +14,10 @@ namespace Dust [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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SkillSourceMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Skill))] @@ -52,9 +52,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSkillsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.CreateWSkillsResponseSkippedItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [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")] diff --git a/src/libs/Dust/Generated/Dust.Spaces.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Spaces.JsonSerializerContext.g.cs index a500ff6..07f60fd 100644 --- a/src/libs/Dust/Generated/Dust.Spaces.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Spaces.JsonSerializerContext.g.cs @@ -14,8 +14,8 @@ namespace Dust [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(string))] - [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::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.Space))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.SpaceKind), TypeInfoPropertyName = "SpaceKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesResponse))] diff --git a/src/libs/Dust/Generated/Dust.Tools.JsonSerializerContext.g.cs b/src/libs/Dust/Generated/Dust.Tools.JsonSerializerContext.g.cs index d75014e..75f76a1 100644 --- a/src/libs/Dust/Generated/Dust.Tools.JsonSerializerContext.g.cs +++ b/src/libs/Dust/Generated/Dust.Tools.JsonSerializerContext.g.cs @@ -14,9 +14,9 @@ namespace Dust [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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerView))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] @@ -30,9 +30,9 @@ namespace Dust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewOAuthUseCase), TypeInfoPropertyName = "MCPServerViewOAuthUseCase2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.MCPServerViewEditedByUser))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.GetWSpacesMcpServerViewsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [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")] diff --git a/src/libs/Dust/openapi.yaml b/src/libs/Dust/openapi.yaml index bc4a27b..a4820ac 100644 --- a/src/libs/Dust/openapi.yaml +++ b/src/libs/Dust/openapi.yaml @@ -1265,6 +1265,67 @@ } } }, + "/api/v1/w/{wId}/assistant/conversations/{cId}/consumption": { + "get": { + "summary": "Get conversation consumption", + "description": "Get the same credit breakdown as the conversation consumption view for a conversation\nthe caller can read. Returns stable billed credits for terminal agent messages, including\nsuperseded message versions and accessible recursively spawned run-agent conversations.\nIn-progress messages are excluded until they reach a terminal state.\n\nDetails use each billed message's newest complete stored attribution. They are null when\nno messages have positive billed credits or any billed message lacks complete attribution.\nAgent work and tool attributions partition the bill. Models and agents are alternative\ngroupings of that bill, not additional charges. This endpoint does not return token counts\nor a cached-versus-uncached input breakdown.\n", + "tags": [ + "Conversations" + ], + "security": [ + { + "BearerAuth": [] + } + ], + "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" + } + } + ], + "responses": { + "200": { + "description": "Conversation consumption retrieved successfully.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConversationConsumption" + } + } + } + }, + "400": { + "description": "Invalid request parameters." + }, + "401": { + "description": "Invalid or missing authentication credentials." + }, + "403": { + "description": "The workspace plan does not allow API access." + }, + "404": { + "description": "Workspace or conversation not found, deleted, or not accessible to the caller." + }, + "500": { + "description": "Internal server error." + } + } + } + }, "/api/v1/w/{wId}/assistant/conversations/{cId}/content_fragments": { "post": { "summary": "Create a content fragment", @@ -6422,6 +6483,174 @@ } } }, + "ConversationConsumption": { + "type": "object", + "required": [ + "billedCredits", + "details" + ], + "properties": { + "billedCredits": { + "type": "number", + "description": "Stable billed Dust credits for terminal agent messages in the conversation and its accessible run-agent descendants, including superseded message versions." + }, + "details": { + "type": "object", + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/ConversationConsumptionDetails" + } + ], + "description": "Null when no messages have positive billed credits or any billed message lacks complete attribution." + } + } + }, + "ConversationConsumptionDetails": { + "type": "object", + "description": "Attribution reconciled to the bill through model input rows. Agent work plus tool attributed credits partition the bill; models and agents are alternative groupings, not additional charges.", + "required": [ + "agentWorkCredits", + "tools", + "models", + "agents" + ], + "properties": { + "agentWorkCredits": { + "type": "number", + "description": "Credits attributed to agent work rather than visible tools." + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConversationConsumptionToolDetails" + } + }, + "models": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConversationConsumptionModelDetails" + } + }, + "agents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConversationConsumptionAgentDetails" + } + } + } + }, + "ConversationConsumptionToolDetails": { + "type": "object", + "required": [ + "label", + "internalMCPServerName", + "toolName", + "callCount", + "attributedCredits", + "directCredits", + "pending" + ], + "properties": { + "label": { + "type": "string", + "description": "Display label of the tool." + }, + "internalMCPServerName": { + "type": "string", + "nullable": true, + "description": "Internal MCP server name, or null for an external server." + }, + "toolName": { + "type": "string" + }, + "callCount": { + "type": "integer", + "description": "Number of attributed calls grouped under this tool." + }, + "attributedCredits": { + "type": "number", + "description": "Share of billed credits attributed to the tool, including model work and direct charges." + }, + "directCredits": { + "type": "number", + "description": "Direct tool charges already included in attributedCredits, not an additional charge." + }, + "pending": { + "type": "boolean", + "description": "Whether any grouped tool attribution is pending." + } + } + }, + "ConversationConsumptionModelDetails": { + "type": "object", + "required": [ + "providerId", + "modelId", + "displayName", + "attributedCredits" + ], + "properties": { + "providerId": { + "type": "string" + }, + "modelId": { + "type": "string", + "description": "Provider model identifier, not an internal database identifier." + }, + "displayName": { + "type": "string" + }, + "attributedCredits": { + "type": "number", + "description": "Reconciled credits grouped by model, including tool attribution linked to its runs. Overlaps agent work and tool totals." + } + } + }, + "ConversationConsumptionAgentDetails": { + "type": "object", + "required": [ + "agentId", + "name", + "pictureUrl", + "billedCredits", + "agentWorkCredits", + "tools", + "models" + ], + "properties": { + "agentId": { + "type": "string", + "description": "String identifier of the agent." + }, + "name": { + "type": "string" + }, + "pictureUrl": { + "type": "string", + "nullable": true + }, + "billedCredits": { + "type": "number", + "description": "Stable billed credits grouped under this agent. Hidden helpers are folded into their parent agent." + }, + "agentWorkCredits": { + "type": "number" + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConversationConsumptionToolDetails" + } + }, + "models": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConversationConsumptionModelDetails" + } + } + } + }, "User": { "type": "object", "properties": { @@ -6472,6 +6701,12 @@ "type": "string", "description": "URL of the user's profile image", "example": "https://example.com/profile/johndoe.jpg" + }, + "pronouns": { + "type": "string", + "nullable": true, + "description": "User's pronouns, as entered by the user", + "example": "they/them" } } },