From c496ba2e7f4804613a0820487066f93681d13be7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 12 Aug 2026 02:26:05 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...BaseClient.AttachKnowledgeItemToAgent.g.cs | 521 - ...owledgeBaseClient.DeleteKnowledgeItem.g.cs | 473 - ...nowledgeBaseClient.ListKnowledgeItems.g.cs | 477 - ...ledgeBaseClient.ReingestKnowledgeItem.g.cs | 473 - .../ResembleAI.AgentKnowledgeBaseClient.g.cs | 175 - ...tPhoneNumbersClient.CreatePhoneNumber.g.cs | 500 - ...tPhoneNumbersClient.DeletePhoneNumber.g.cs | 436 - ...eNumbersClient.ForceDeletePhoneNumber.g.cs | 436 - ...gentPhoneNumbersClient.GetPhoneNumber.g.cs | 436 - ...ntPhoneNumbersClient.ListPhoneNumbers.g.cs | 427 - .../ResembleAI.AgentPhoneNumbersClient.g.cs | 175 - ...leAI.AgentToolsClient.CreateAgentTool.g.cs | 491 - ...leAI.AgentToolsClient.DeleteAgentTool.g.cs | 445 - ...embleAI.AgentToolsClient.GetAgentTool.g.cs | 445 - ...bleAI.AgentToolsClient.ListAgentTools.g.cs | 436 - ...leAI.AgentToolsClient.UpdateAgentTool.g.cs | 500 - .../ResembleAI.AgentToolsClient.g.cs | 175 - ...gentWebhooksClient.CreateAgentWebhook.g.cs | 485 - ...gentWebhooksClient.DeleteAgentWebhook.g.cs | 445 - ...I.AgentWebhooksClient.GetAgentWebhook.g.cs | 445 - ...AgentWebhooksClient.ListAgentWebhooks.g.cs | 436 - ...gentWebhooksClient.UpdateAgentWebhook.g.cs | 494 - .../ResembleAI.AgentWebhooksClient.g.cs | 175 - .../ResembleAI.AgentsClient.CreateAgent.g.cs | 546 - .../ResembleAI.AgentsClient.DeleteAgent.g.cs | 436 - ...ResembleAI.AgentsClient.DispatchAgent.g.cs | 489 - .../ResembleAI.AgentsClient.GetAgent.g.cs | 452 - ...eAI.AgentsClient.GetAgentCapabilities.g.cs | 427 - ...esembleAI.AgentsClient.GetSystemTools.g.cs | 427 - .../ResembleAI.AgentsClient.ListAgents.g.cs | 453 - .../ResembleAI.AgentsClient.UpdateAgent.g.cs | 519 - ...lient.GetDetectAgentInvestigationRun.g.cs} | 228 +- ...ent.ListDetectAgentInvestigationRuns.g.cs} | 209 +- ....DetectAgentsClient.ListDetectAgents.g.cs} | 221 +- ...tsClient.RunDetectAgentInvestigation.g.cs} | 455 +- ....cs => ResembleAI.DetectAgentsClient.g.cs} | 14 +- ...BaseClient.AttachKnowledgeItemToAgent.g.cs | 54 - ...owledgeBaseClient.CreateKnowledgeItem.g.cs | 64 - ...owledgeBaseClient.DeleteKnowledgeItem.g.cs | 32 - ...seClient.DetachKnowledgeItemFromAgent.g.cs | 36 - ...tKnowledgeBaseClient.GetKnowledgeItem.g.cs | 32 - ...nowledgeBaseClient.ListKnowledgeItems.g.cs | 52 - .../ResembleAI.IAgentKnowledgeBaseClient.g.cs | 48 - ...tPhoneNumbersClient.CreatePhoneNumber.g.cs | 68 - ...tPhoneNumbersClient.DeletePhoneNumber.g.cs | 32 - ...eNumbersClient.ForceDeletePhoneNumber.g.cs | 32 - ...gentPhoneNumbersClient.GetPhoneNumber.g.cs | 32 - ...ntPhoneNumbersClient.ListPhoneNumbers.g.cs | 28 - .../ResembleAI.IAgentPhoneNumbersClient.g.cs | 48 - ...eAI.IAgentToolsClient.CreateAgentTool.g.cs | 58 - ...eAI.IAgentToolsClient.DeleteAgentTool.g.cs | 36 - ...mbleAI.IAgentToolsClient.GetAgentTool.g.cs | 36 - ...leAI.IAgentToolsClient.ListAgentTools.g.cs | 32 - ...eAI.IAgentToolsClient.UpdateAgentTool.g.cs | 62 - .../ResembleAI.IAgentToolsClient.g.cs | 48 - ...gentWebhooksClient.CreateAgentWebhook.g.cs | 54 - ...gentWebhooksClient.DeleteAgentWebhook.g.cs | 36 - ....IAgentWebhooksClient.GetAgentWebhook.g.cs | 36 - ...AgentWebhooksClient.ListAgentWebhooks.g.cs | 32 - ...gentWebhooksClient.UpdateAgentWebhook.g.cs | 58 - .../ResembleAI.IAgentWebhooksClient.g.cs | 48 - .../ResembleAI.IAgentsClient.CreateAgent.g.cs | 74 - ...esembleAI.IAgentsClient.DispatchAgent.g.cs | 58 - .../ResembleAI.IAgentsClient.GetAgent.g.cs | 40 - ...AI.IAgentsClient.GetAgentCapabilities.g.cs | 28 - ...sembleAI.IAgentsClient.GetSystemTools.g.cs | 28 - .../ResembleAI.IAgentsClient.ListAgents.g.cs | 40 - .../ResembleAI.IAgentsClient.UpdateAgent.g.cs | 78 - ...lient.GetDetectAgentInvestigationRun.g.cs} | 24 +- ...ent.ListDetectAgentInvestigationRuns.g.cs} | 20 +- ...IDetectAgentsClient.ListDetectAgents.g.cs} | 22 +- ...ntsClient.RunDetectAgentInvestigation.g.cs | 80 + ...cs => ResembleAI.IDetectAgentsClient.g.cs} | 2 +- .../ResembleAI.IResembleAIClient.g.cs | 30 +- ...yContentApplicationJsonSchemaToolType.g.cs | 53 - ...ApplicationJsonSchemaToolTypeNullable.g.cs | 60 - ...ntentApplicationJsonSchemaWebhookType.g.cs | 53 - ...licationJsonSchemaWebhookTypeNullable.g.cs | 60 - ...tionJsonSchemaAsrUserInputAudioFormat.g.cs | 53 - ...SchemaAsrUserInputAudioFormatNullable.g.cs | 60 - ...ApplicationJsonSchemaDynamicVariables.g.cs | 217 - ...ontentApplicationJsonSchemaSearchMode.g.cs | 53 - ...plicationJsonSchemaSearchModeNullable.g.cs | 60 - ...yContentApplicationJsonSchemaTurnMode.g.cs | 53 - ...ApplicationJsonSchemaTurnModeNullable.g.cs | 60 - ...ontentApplicationJsonSchemaSearchMode.g.cs | 53 - ...plicationJsonSchemaSearchModeNullable.g.cs | 60 - ...nverters.DetectAgentRunSummaryStatus.g.cs} | 14 +- ....DetectAgentRunSummaryStatusNullable.g.cs} | 14 +- ...bleAI.JsonConverters.DetectAgentTier.g.cs} | 14 +- ...onConverters.DetectAgentTierNullable.g.cs} | 14 +- ...icationJsonSchemaItemsItemsSourceType.g.cs | 53 - ...sonSchemaItemsItemsSourceTypeNullable.g.cs | 60 - ...ApplicationJsonSchemaItemsItemsStatus.g.cs | 53 - ...ionJsonSchemaItemsItemsStatusNullable.g.cs | 60 - ...ontentApplicationJsonSchemaSourceType.g.cs | 53 - ...plicationJsonSchemaSourceTypeNullable.g.cs | 60 - ...ntApplicationJsonSchemaItemSourceType.g.cs | 53 - ...ationJsonSchemaItemSourceTypeNullable.g.cs | 60 - ...ontentApplicationJsonSchemaItemStatus.g.cs | 53 - ...plicationJsonSchemaItemStatusNullable.g.cs | 60 - ...yContentApplicationJsonSchemaProvider.g.cs | 53 - ...ApplicationJsonSchemaProviderNullable.g.cs | 60 - .../ResembleAI.JsonSerializerContext.g.cs | 1179 +- ...ResembleAI.JsonSerializerContextTypes.g.cs | 1280 +- ...hKnowledgeItemToAgentResponse201.Json.g.cs | 141 - ...AttachKnowledgeItemToAgentResponse201.g.cs | 62 - ...seCreateKnowledgeItemResponse201.Json.g.cs | 141 - ...dgeBaseCreateKnowledgeItemResponse201.g.cs | 62 - ...seDeleteKnowledgeItemResponse200.Json.g.cs | 141 - ...dgeBaseDeleteKnowledgeItemResponse200.g.cs | 53 - ...nowledgeItemFromAgentResponse200.Json.g.cs | 141 - ...tachKnowledgeItemFromAgentResponse200.g.cs | 62 - ...wledgeBaseGetKnowledgeItemResponse200.g.cs | 53 - ...stAgentKnowledgeItemsResponse200.Json.g.cs | 141 - ...edgeBaseListKnowledgeItemsResponse200.g.cs | 62 - ...ReingestKnowledgeItemResponse200.Json.g.cs | 141 - ...eBaseReingestKnowledgeItemResponse200.g.cs | 62 - ...bersCreatePhoneNumberResponse200.Json.g.cs | 141 - ...neNumbersCreatePhoneNumberResponse200.g.cs | 62 - ...bersDeletePhoneNumberResponse200.Json.g.cs | 141 - ...neNumbersDeletePhoneNumberResponse200.g.cs | 53 - ...orceDeletePhoneNumberResponse200.Json.g.cs | 141 - ...bersForceDeletePhoneNumberResponse200.g.cs | 53 - ...NumbersGetPhoneNumberResponse200.Json.g.cs | 141 - ...mbersListPhoneNumbersResponse200.Json.g.cs | 141 - ...oneNumbersListPhoneNumbersResponse200.g.cs | 53 - ...tToolsCreateAgentToolResponse200.Json.g.cs | 141 - ....AgentToolsCreateAgentToolResponse200.g.cs | 62 - ...tToolsDeleteAgentToolResponse200.Json.g.cs | 141 - ....AgentToolsDeleteAgentToolResponse200.g.cs | 53 - ...gentToolsGetAgentToolResponse200.Json.g.cs | 141 - ...els.AgentToolsGetAgentToolResponse200.g.cs | 53 - ...s.AgentToolsListAgentToolsResponse200.g.cs | 53 - ...tToolsUpdateAgentToolResponse200.Json.g.cs | 141 - ....AgentToolsUpdateAgentToolResponse200.g.cs | 62 - ...oksCreateAgentWebhookResponse200.Json.g.cs | 141 - ...WebhooksCreateAgentWebhookResponse200.g.cs | 62 - ...oksDeleteAgentWebhookResponse200.Json.g.cs | 141 - ...WebhooksDeleteAgentWebhookResponse200.g.cs | 53 - ...entWebhooksGetAgentWebhookResponse200.g.cs | 53 - ...ooksListAgentWebhooksResponse200.Json.g.cs | 141 - ...tWebhooksListAgentWebhooksResponse200.g.cs | 53 - ...oksUpdateAgentWebhookResponse200.Json.g.cs | 141 - ...WebhooksUpdateAgentWebhookResponse200.g.cs | 62 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...tApplicationJsonSchemaToolConfig.Json.g.cs | 141 - ...ontentApplicationJsonSchemaToolConfig.g.cs | 19 - ...yContentApplicationJsonSchemaToolType.g.cs | 51 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...tApplicationJsonSchemaToolConfig.Json.g.cs | 141 - ...ontentApplicationJsonSchemaToolConfig.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...plicationJsonSchemaWebhookConfig.Json.g.cs | 141 - ...entApplicationJsonSchemaWebhookConfig.g.cs | 19 - ...ntentApplicationJsonSchemaWebhookType.g.cs | 51 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...plicationJsonSchemaWebhookConfig.Json.g.cs | 141 - ...entApplicationJsonSchemaWebhookConfig.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...onJsonSchemaAsrCapabilitiesItems.Json.g.cs | 141 - ...icationJsonSchemaAsrCapabilitiesItems.g.cs | 68 - ...onJsonSchemaLlmCapabilitiesItems.Json.g.cs | 141 - ...icationJsonSchemaLlmCapabilitiesItems.g.cs | 68 - ...I.Models.AgentsCreateAgentResponse200.g.cs | 62 - ...s.AgentsDispatchAgentResponse200.Json.g.cs | 141 - ...Models.AgentsDispatchAgentResponse200.g.cs | 53 - ...sGetAgentCapabilitiesResponse200.Json.g.cs | 141 - ...AgentsGetAgentCapabilitiesResponse200.g.cs | 62 - ...leAI.Models.AgentsGetAgentResponse200.g.cs | 53 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ....AgentsGetSystemToolsResponse200.Json.g.cs | 141 - ...odels.AgentsGetSystemToolsResponse200.g.cs | 53 - ...yContentApplicationJsonSchemaAsr.Json.g.cs | 141 - ...stBodyContentApplicationJsonSchemaAsr.g.cs | 76 - ...tionJsonSchemaAsrUserInputAudioFormat.g.cs | 81 - ...cationJsonSchemaDynamicVariables.Json.g.cs | 141 - ...ApplicationJsonSchemaDynamicVariables.g.cs | 378 - ...yContentApplicationJsonSchemaLlm.Json.g.cs | 141 - ...stBodyContentApplicationJsonSchemaLlm.g.cs | 98 - ...icationJsonSchemaLlmBuiltInTools.Json.g.cs | 141 - ...tApplicationJsonSchemaLlmBuiltInTools.g.cs | 19 - ...ontentApplicationJsonSchemaSearchMode.g.cs | 52 - ...ApplicationJsonSchemaSystemTools.Json.g.cs | 141 - ...ntentApplicationJsonSchemaSystemTools.g.cs | 19 - ...ContentApplicationJsonSchemaTurn.Json.g.cs | 141 - ...tBodyContentApplicationJsonSchemaTurn.g.cs | 69 - ...yContentApplicationJsonSchemaTurnMode.g.cs | 45 - ...plicationJsonSchemaWebhooksItems.Json.g.cs | 141 - ...entApplicationJsonSchemaWebhooksItems.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...I.Models.AgentsUpdateAgentResponse200.g.cs | 62 - ...cationJsonSchemaDynamicVariables.Json.g.cs | 141 - ...ApplicationJsonSchemaDynamicVariables.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...yContentApplicationJsonSchemaAsr.Json.g.cs | 141 - ...stBodyContentApplicationJsonSchemaAsr.g.cs | 19 - ...cationJsonSchemaDynamicVariables.Json.g.cs | 141 - ...ApplicationJsonSchemaDynamicVariables.g.cs | 19 - ...yContentApplicationJsonSchemaLlm.Json.g.cs | 141 - ...stBodyContentApplicationJsonSchemaLlm.g.cs | 19 - ...ontentApplicationJsonSchemaSearchMode.g.cs | 51 - ...ApplicationJsonSchemaSystemTools.Json.g.cs | 141 - ...ntentApplicationJsonSchemaSystemTools.g.cs | 19 - ...ContentApplicationJsonSchemaTurn.Json.g.cs | 141 - ...tBodyContentApplicationJsonSchemaTurn.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...ttachKnowledgeItemToAgentRequest.Json.g.cs | 141 - ...els.AttachKnowledgeItemToAgentRequest.g.cs | 47 - .../ResembleAI.Models.CreateAgentRequest.g.cs | 154 - ...embleAI.Models.CreateAgentToolRequest.g.cs | 76 - ...Models.CreateAgentWebhookRequest.Json.g.cs | 141 - ...leAI.Models.CreateAgentWebhookRequest.g.cs | 56 - ...odels.CreateKnowledgeItemRequest.Json.g.cs | 141 - ...eAI.Models.CreateKnowledgeItemRequest.g.cs | 94 - ....Models.CreatePhoneNumberRequest.Json.g.cs | 141 - ...bleAI.Models.CreatePhoneNumberRequest.g.cs | 125 - ...> ResembleAI.Models.DetectAgent.Json.g.cs} | 26 +- .../ResembleAI.Models.DetectAgent.g.cs | 174 + ...I.Models.DetectAgentCapabilities.Json.g.cs | 141 + ...mbleAI.Models.DetectAgentCapabilities.g.cs | 105 + ...esembleAI.Models.DetectAgentRun.Json.g.cs} | 26 +- .../ResembleAI.Models.DetectAgentRun.g.cs | 172 + ...ls.DetectAgentRunConfigSnapshot.Json.g.cs} | 26 +- ....Models.DetectAgentRunConfigSnapshot.g.cs} | 4 +- ...s.DetectAgentRunConfigSnapshot2.Json.g.cs} | 26 +- ...Models.DetectAgentRunConfigSnapshot2.g.cs} | 2 +- ...eAI.Models.DetectAgentRunResult.Json.g.cs} | 26 +- ...esembleAI.Models.DetectAgentRunResult.g.cs | 90 + ...els.DetectAgentRunResultVerdict.Json.g.cs} | 26 +- ...I.Models.DetectAgentRunResultVerdict.g.cs} | 30 +- ...AI.Models.DetectAgentRunSummary.Json.g.cs} | 26 +- ...sembleAI.Models.DetectAgentRunSummary.g.cs | 112 + ...els.DetectAgentRunSummaryInputs.Json.g.cs} | 26 +- ...AI.Models.DetectAgentRunSummaryInputs.g.cs | 71 + ...I.Models.DetectAgentRunSummaryStatus.g.cs} | 26 +- ...ls.DetectAgentRunTranscriptItem.Json.g.cs} | 26 +- ....Models.DetectAgentRunTranscriptItem.g.cs} | 2 +- ...ls.DetectAgentRunTranscriptItem2.Json.g.cs | 141 + ...Models.DetectAgentRunTranscriptItem2.g.cs} | 4 +- .../ResembleAI.Models.DetectAgentTier.g.cs | 57 + ...gentInvestigationRunResponse200.Json.g.cs} | 26 +- ...tectAgentInvestigationRunResponse200.g.cs} | 22 +- ...entInvestigationRunsResponse200.Json.g.cs} | 26 +- ...ectAgentInvestigationRunsResponse200.g.cs} | 27 +- ...entsListDetectAgentsResponse200.Json.g.cs} | 26 +- ...ectAgentsListDetectAgentsResponse200.g.cs} | 27 +- ...esembleAI.Models.DispatchAgentRequest.g.cs | 58 - ...els.KnowledgeItemsGetParametersStatus.g.cs | 63 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 154 - ...icationJsonSchemaItemsItemsSourceType.g.cs | 57 - ...ApplicationJsonSchemaItemsItemsStatus.g.cs | 63 - ...tApplicationJsonSchemaPagination.Json.g.cs | 141 - ...ontentApplicationJsonSchemaPagination.g.cs | 71 - ...ontentApplicationJsonSchemaSourceType.g.cs | 57 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 154 - ...icationJsonSchemaItemAgentsItems.Json.g.cs | 141 - ...tApplicationJsonSchemaItemAgentsItems.g.cs | 53 - ...ntApplicationJsonSchemaItemSourceType.g.cs | 57 - ...ontentApplicationJsonSchemaItemStatus.g.cs | 63 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...tApplicationJsonSchemaItemsItems.Json.g.cs | 141 - ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...pplicationJsonSchemaInboundTrunk.Json.g.cs | 141 - ...tentApplicationJsonSchemaInboundTrunk.g.cs | 19 - ...plicationJsonSchemaOutboundTrunk.Json.g.cs | 141 - ...entApplicationJsonSchemaOutboundTrunk.g.cs | 19 - ...yContentApplicationJsonSchemaProvider.g.cs | 45 - ...ContentApplicationJsonSchemaItem.Json.g.cs | 141 - ...onsesContentApplicationJsonSchemaItem.g.cs | 19 - ...DetectAgentInvestigationRequest.Json.g.cs} | 26 +- ...ls.RunDetectAgentInvestigationRequest.g.cs | 101 + ...etectAgentInvestigationResponse.Json.g.cs} | 26 +- ....RunDetectAgentInvestigationResponse.g.cs} | 2 +- .../ResembleAI.Models.UpdateAgentRequest.g.cs | 148 - ...Models.UpdateAgentRequestWebhook.Json.g.cs | 141 - ...AI.Models.UpdateAgentToolRequest.Json.g.cs | 141 - ...embleAI.Models.UpdateAgentToolRequest.g.cs | 62 - ...Models.UpdateAgentWebhookRequest.Json.g.cs | 141 - ...leAI.Models.UpdateAgentWebhookRequest.g.cs | 44 - .../ResembleAI.ResembleAIClient.g.cs | 66 +- src/libs/ResembleAI/openapi.yaml | 12321 +++++++--------- 309 files changed, 8125 insertions(+), 41558 deletions(-) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListKnowledgeItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.CreatePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.DeletePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.GetPhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ListPhoneNumbers.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.CreateAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.DeleteAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.GetAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.ListAgentTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.UpdateAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.CreateAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.DeleteAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.GetAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.ListAgentWebhooks.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.UpdateAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.CreateAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DeleteAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DispatchAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgentCapabilities.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetSystemTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.ListAgents.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.UpdateAgent.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.AgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs => ResembleAI.DetectAgentsClient.GetDetectAgentInvestigationRun.g.cs} (67%) rename src/libs/ResembleAI/Generated/{ResembleAI.AgentKnowledgeBaseClient.GetKnowledgeItem.g.cs => ResembleAI.DetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs} (68%) rename src/libs/ResembleAI/Generated/{ResembleAI.AgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs => ResembleAI.DetectAgentsClient.ListDetectAgents.g.cs} (75%) rename src/libs/ResembleAI/Generated/{ResembleAI.AgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs => ResembleAI.DetectAgentsClient.RunDetectAgentInvestigation.g.cs} (51%) rename src/libs/ResembleAI/Generated/{ResembleAI.AgentsClient.g.cs => ResembleAI.DetectAgentsClient.g.cs} (94%) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.CreatePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.DeletePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.GetPhoneNumber.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ListPhoneNumbers.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.CreateAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.DeleteAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.GetAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.ListAgentTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.UpdateAgentTool.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.CreateAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.DeleteAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.GetAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.ListAgentWebhooks.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.UpdateAgentWebhook.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.CreateAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DispatchAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgent.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgentCapabilities.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetSystemTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.ListAgents.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.UpdateAgent.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.IAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs => ResembleAI.IDetectAgentsClient.GetDetectAgentInvestigationRun.g.cs} (55%) rename src/libs/ResembleAI/Generated/{ResembleAI.IAgentsClient.DeleteAgent.g.cs => ResembleAI.IDetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs} (59%) rename src/libs/ResembleAI/Generated/{ResembleAI.IAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs => ResembleAI.IDetectAgentsClient.ListDetectAgents.g.cs} (56%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.RunDetectAgentInvestigation.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.IAgentsClient.g.cs => ResembleAI.IDetectAgentsClient.g.cs} (95%) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatus.g.cs => ResembleAI.JsonConverters.DetectAgentRunSummaryStatus.g.cs} (64%) rename src/libs/ResembleAI/Generated/{ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullable.g.cs => ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullable.g.cs} (66%) rename src/libs/ResembleAI/Generated/{ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceType.g.cs => ResembleAI.JsonConverters.DetectAgentTier.g.cs} (63%) rename src/libs/ResembleAI/Generated/{ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullable.g.cs => ResembleAI.JsonConverters.DetectAgentTierNullable.g.cs} (65%) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullable.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.UpdateAgentRequest.Json.g.cs => ResembleAI.Models.DetectAgent.Json.g.cs} (88%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateAgentRequest.Json.g.cs => ResembleAI.Models.DetectAgentRun.Json.g.cs} (88%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsUpdateAgentResponse200.Json.g.cs => ResembleAI.Models.DetectAgentRunConfigSnapshot.Json.g.cs} (87%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs => ResembleAI.Models.DetectAgentRunConfigSnapshot.g.cs} (78%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsDeleteAgentResponse200.Json.g.cs => ResembleAI.Models.DetectAgentRunConfigSnapshot2.Json.g.cs} (86%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.UpdateAgentRequestWebhook.g.cs => ResembleAI.Models.DetectAgentRunConfigSnapshot2.g.cs} (88%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.DispatchAgentRequest.Json.g.cs => ResembleAI.Models.DetectAgentRunResult.Json.g.cs} (88%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsListAgentsResponse200.Json.g.cs => ResembleAI.Models.DetectAgentRunResultVerdict.Json.g.cs} (87%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsDeleteAgentResponse200.g.cs => ResembleAI.Models.DetectAgentRunResultVerdict.g.cs} (58%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateAgentToolRequest.Json.g.cs => ResembleAI.Models.DetectAgentRunSummary.Json.g.cs} (87%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsGetAgentResponse200.Json.g.cs => ResembleAI.Models.DetectAgentRunSummaryInputs.Json.g.cs} (86%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.KnowledgeItemsGetParametersSourceType.g.cs => ResembleAI.Models.DetectAgentRunSummaryStatus.g.cs} (52%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsCreateAgentResponse200.Json.g.cs => ResembleAI.Models.DetectAgentRunTranscriptItem.Json.g.cs} (87%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateAgentRequestDynamicVariables.g.cs => ResembleAI.Models.DetectAgentRunTranscriptItem.g.cs} (87%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.Json.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs => ResembleAI.Models.DetectAgentRunTranscriptItem2.g.cs} (83%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentTier.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.Json.g.cs => ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.Json.g.cs} (83%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.g.cs => ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.g.cs} (55%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.Json.g.cs => ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.Json.g.cs} (82%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.g.cs => ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.g.cs} (55%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.Json.g.cs => ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.Json.g.cs} (86%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsListAgentsResponse200.g.cs => ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.g.cs} (58%) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersStatus.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateAgentRequestDynamicVariables.Json.g.cs => ResembleAI.Models.RunDetectAgentInvestigationRequest.Json.g.cs} (86%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentToolsListAgentToolsResponse200.Json.g.cs => ResembleAI.Models.RunDetectAgentInvestigationResponse.Json.g.cs} (86%) rename src/libs/ResembleAI/Generated/{ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.g.cs => ResembleAI.Models.RunDetectAgentInvestigationResponse.g.cs} (85%) delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.Json.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.g.cs diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs deleted file mode 100644 index 1d25949..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs +++ /dev/null @@ -1,521 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentKnowledgeBaseClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_AttachKnowledgeItemToAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_AttachKnowledgeItemToAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_AttachKnowledgeItemToAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_AttachKnowledgeItemToAgentSecurityRequirement0, - }; - partial void PrepareAttachKnowledgeItemToAgentArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - global::ResembleAI.AttachKnowledgeItemToAgentRequest request); - partial void PrepareAttachKnowledgeItemToAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::ResembleAI.AttachKnowledgeItemToAgentRequest request); - partial void ProcessAttachKnowledgeItemToAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessAttachKnowledgeItemToAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// 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 AttachKnowledgeItemToAgentAsync( - global::System.Guid agentUuid, - - global::ResembleAI.AttachKnowledgeItemToAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await AttachKnowledgeItemToAgentAsResponseAsync( - agentUuid: agentUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// 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> AttachKnowledgeItemToAgentAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.AttachKnowledgeItemToAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareAttachKnowledgeItemToAgentArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_AttachKnowledgeItemToAgentSecurityRequirements, - operationName: "AttachKnowledgeItemToAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/knowledge_items", - baseUri: ResolveBaseUri( - servers: s_AttachKnowledgeItemToAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareAttachKnowledgeItemToAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AttachKnowledgeItemToAgent", - methodName: "AttachKnowledgeItemToAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AttachKnowledgeItemToAgent", - methodName: "AttachKnowledgeItemToAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AttachKnowledgeItemToAgent", - methodName: "AttachKnowledgeItemToAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessAttachKnowledgeItemToAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AttachKnowledgeItemToAgent", - methodName: "AttachKnowledgeItemToAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AttachKnowledgeItemToAgent", - methodName: "AttachKnowledgeItemToAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Validation error (not ready, already attached, etc.) - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessAttachKnowledgeItemToAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// The UUID of the knowledge item to attach - /// - /// 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 AttachKnowledgeItemToAgentAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.AttachKnowledgeItemToAgentRequest - { - KnowledgeItemUuid = knowledgeItemUuid, - }; - - return await AttachKnowledgeItemToAgentAsync( - agentUuid: agentUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs deleted file mode 100644 index a53d198..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentKnowledgeBaseClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteKnowledgeItemServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteKnowledgeItemSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteKnowledgeItemSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteKnowledgeItemSecurityRequirement0, - }; - partial void PrepareDeleteKnowledgeItemArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareDeleteKnowledgeItemRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessDeleteKnowledgeItemResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteKnowledgeItemResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete knowledge item
- /// Deletes a knowledge item and cleans up associated data - ///
- /// - /// 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 DeleteKnowledgeItemAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteKnowledgeItemAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete knowledge item
- /// Deletes a knowledge item and cleans up associated data - ///
- /// - /// 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> DeleteKnowledgeItemAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteKnowledgeItemArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteKnowledgeItemSecurityRequirements, - operationName: "DeleteKnowledgeItemAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/knowledge_items/{uuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteKnowledgeItemServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteKnowledgeItemRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteKnowledgeItem", - methodName: "DeleteKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteKnowledgeItem", - methodName: "DeleteKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteKnowledgeItem", - methodName: "DeleteKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDeleteKnowledgeItemResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteKnowledgeItem", - methodName: "DeleteKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteKnowledgeItem", - methodName: "DeleteKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Knowledge item not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::ResembleAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteKnowledgeItemResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListKnowledgeItems.g.cs deleted file mode 100644 index 9fd6f15..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListKnowledgeItems.g.cs +++ /dev/null @@ -1,477 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentKnowledgeBaseClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListKnowledgeItemsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListKnowledgeItemsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListKnowledgeItemsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListKnowledgeItemsSecurityRequirement0, - }; - partial void PrepareListKnowledgeItemsArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::ResembleAI.KnowledgeItemsGetParametersStatus? status, - ref global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType, - ref int? page, - ref int? perPage); - partial void PrepareListKnowledgeItemsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.KnowledgeItemsGetParametersStatus? status, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType, - int? page, - int? perPage); - partial void ProcessListKnowledgeItemsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListKnowledgeItemsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List knowledge items
- /// List all knowledge items belonging to the authenticated user's team - ///
- /// - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 20 - /// - /// 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 ListKnowledgeItemsAsync( - global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default, - int? page = default, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListKnowledgeItemsAsResponseAsync( - status: status, - sourceType: sourceType, - page: page, - perPage: perPage, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List knowledge items
- /// List all knowledge items belonging to the authenticated user's team - ///
- /// - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 20 - /// - /// 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> ListKnowledgeItemsAsResponseAsync( - global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default, - int? page = default, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListKnowledgeItemsArguments( - httpClient: HttpClient, - status: ref status, - sourceType: ref sourceType, - page: ref page, - perPage: ref perPage); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListKnowledgeItemsSecurityRequirements, - operationName: "ListKnowledgeItemsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/knowledge_items", - baseUri: ResolveBaseUri( - servers: s_ListKnowledgeItemsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddOptionalParameter("status", status?.ToValueString()) - .AddOptionalParameter("source_type", sourceType?.ToValueString()) - .AddOptionalParameter("page", page?.ToString()) - .AddOptionalParameter("per_page", perPage?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListKnowledgeItemsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - status: status, - sourceType: sourceType, - page: page, - perPage: perPage); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListKnowledgeItems", - methodName: "ListKnowledgeItemsAsync", - pathTemplate: "\"/knowledge_items\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListKnowledgeItems", - methodName: "ListKnowledgeItemsAsync", - pathTemplate: "\"/knowledge_items\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListKnowledgeItems", - methodName: "ListKnowledgeItemsAsync", - pathTemplate: "\"/knowledge_items\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessListKnowledgeItemsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListKnowledgeItems", - methodName: "ListKnowledgeItemsAsync", - pathTemplate: "\"/knowledge_items\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListKnowledgeItems", - methodName: "ListKnowledgeItemsAsync", - pathTemplate: "\"/knowledge_items\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListKnowledgeItemsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs deleted file mode 100644 index 5fb5524..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentKnowledgeBaseClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ReingestKnowledgeItemServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ReingestKnowledgeItemSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ReingestKnowledgeItemSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ReingestKnowledgeItemSecurityRequirement0, - }; - partial void PrepareReingestKnowledgeItemArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareReingestKnowledgeItemRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessReingestKnowledgeItemResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessReingestKnowledgeItemResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Re-ingest knowledge item
- /// Re-runs the ingestion pipeline for an existing knowledge item - ///
- /// - /// 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 ReingestKnowledgeItemAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ReingestKnowledgeItemAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Re-ingest knowledge item
- /// Re-runs the ingestion pipeline for an existing knowledge item - ///
- /// - /// 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> ReingestKnowledgeItemAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareReingestKnowledgeItemArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ReingestKnowledgeItemSecurityRequirements, - operationName: "ReingestKnowledgeItemAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/knowledge_items/{uuid}/reingest", - baseUri: ResolveBaseUri( - servers: s_ReingestKnowledgeItemServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareReingestKnowledgeItemRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReingestKnowledgeItem", - methodName: "ReingestKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}/reingest\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReingestKnowledgeItem", - methodName: "ReingestKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}/reingest\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReingestKnowledgeItem", - methodName: "ReingestKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}/reingest\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessReingestKnowledgeItemResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReingestKnowledgeItem", - methodName: "ReingestKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}/reingest\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ReingestKnowledgeItem", - methodName: "ReingestKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}/reingest\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Cannot reingest (already processing or rate limited) - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessReingestKnowledgeItemResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.g.cs deleted file mode 100644 index dcefd59..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.g.cs +++ /dev/null @@ -1,175 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class AgentKnowledgeBaseClient : global::ResembleAI.IAgentKnowledgeBaseClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::ResembleAI.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the AgentKnowledgeBaseClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentKnowledgeBaseClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentKnowledgeBaseClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentKnowledgeBaseClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentKnowledgeBaseClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentKnowledgeBaseClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.CreatePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.CreatePhoneNumber.g.cs deleted file mode 100644 index 99539bc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.CreatePhoneNumber.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentPhoneNumbersClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreatePhoneNumberServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreatePhoneNumberSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreatePhoneNumberSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreatePhoneNumberSecurityRequirement0, - }; - partial void PrepareCreatePhoneNumberArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreatePhoneNumberRequest request); - partial void PrepareCreatePhoneNumberRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreatePhoneNumberRequest request); - partial void ProcessCreatePhoneNumberResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreatePhoneNumberResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// 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 CreatePhoneNumberAsync( - - global::ResembleAI.CreatePhoneNumberRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreatePhoneNumberAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// 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> CreatePhoneNumberAsResponseAsync( - - global::ResembleAI.CreatePhoneNumberRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreatePhoneNumberArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreatePhoneNumberSecurityRequirements, - operationName: "CreatePhoneNumberAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/phone_numbers", - baseUri: ResolveBaseUri( - servers: s_CreatePhoneNumberServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreatePhoneNumberRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePhoneNumber", - methodName: "CreatePhoneNumberAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePhoneNumber", - methodName: "CreatePhoneNumberAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePhoneNumber", - methodName: "CreatePhoneNumberAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessCreatePhoneNumberResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePhoneNumber", - methodName: "CreatePhoneNumberAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePhoneNumber", - methodName: "CreatePhoneNumberAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreatePhoneNumberResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// E.164 formatted phone number - /// - /// - /// - /// Default Value: false - /// - /// - /// Default Value: false - /// - /// - /// - /// - /// - /// - /// 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 CreatePhoneNumberAsync( - string phoneNumber, - string label, - bool? supportsInbound = default, - bool? supportsOutbound = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? provider = default, - string? twilioAccountSid = default, - string? twilioAuthToken = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? outboundTrunk = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? inboundTrunk = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreatePhoneNumberRequest - { - PhoneNumber = phoneNumber, - Label = label, - SupportsInbound = supportsInbound, - SupportsOutbound = supportsOutbound, - Provider = provider, - TwilioAccountSid = twilioAccountSid, - TwilioAuthToken = twilioAuthToken, - OutboundTrunk = outboundTrunk, - InboundTrunk = inboundTrunk, - }; - - return await CreatePhoneNumberAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.DeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.DeletePhoneNumber.g.cs deleted file mode 100644 index 6ca18ae..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.DeletePhoneNumber.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentPhoneNumbersClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeletePhoneNumberServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeletePhoneNumberSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeletePhoneNumberSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeletePhoneNumberSecurityRequirement0, - }; - partial void PrepareDeletePhoneNumberArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareDeletePhoneNumberRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessDeletePhoneNumberResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeletePhoneNumberResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete agent phone number
- /// Delete an agent phone number - ///
- /// - /// 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 DeletePhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeletePhoneNumberAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete agent phone number
- /// Delete an agent phone number - ///
- /// - /// 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> DeletePhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeletePhoneNumberArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeletePhoneNumberSecurityRequirements, - operationName: "DeletePhoneNumberAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/phone_numbers/{id}", - baseUri: ResolveBaseUri( - servers: s_DeletePhoneNumberServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeletePhoneNumberRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePhoneNumber", - methodName: "DeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePhoneNumber", - methodName: "DeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePhoneNumber", - methodName: "DeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDeletePhoneNumberResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePhoneNumber", - methodName: "DeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePhoneNumber", - methodName: "DeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeletePhoneNumberResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs deleted file mode 100644 index 73bb06f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentPhoneNumbersClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ForceDeletePhoneNumberServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ForceDeletePhoneNumberSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ForceDeletePhoneNumberSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ForceDeletePhoneNumberSecurityRequirement0, - }; - partial void PrepareForceDeletePhoneNumberArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareForceDeletePhoneNumberRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessForceDeletePhoneNumberResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessForceDeletePhoneNumberResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Force delete agent phone number
- /// Force delete an agent phone number even if linked to agent - ///
- /// - /// 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 ForceDeletePhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ForceDeletePhoneNumberAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Force delete agent phone number
- /// Force delete an agent phone number even if linked to agent - ///
- /// - /// 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> ForceDeletePhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareForceDeletePhoneNumberArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ForceDeletePhoneNumberSecurityRequirements, - operationName: "ForceDeletePhoneNumberAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/phone_numbers/{id}/force", - baseUri: ResolveBaseUri( - servers: s_ForceDeletePhoneNumberServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareForceDeletePhoneNumberRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ForceDeletePhoneNumber", - methodName: "ForceDeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}/force\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ForceDeletePhoneNumber", - methodName: "ForceDeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}/force\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ForceDeletePhoneNumber", - methodName: "ForceDeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}/force\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessForceDeletePhoneNumberResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ForceDeletePhoneNumber", - methodName: "ForceDeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}/force\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ForceDeletePhoneNumber", - methodName: "ForceDeletePhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}/force\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessForceDeletePhoneNumberResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.GetPhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.GetPhoneNumber.g.cs deleted file mode 100644 index d02a92c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.GetPhoneNumber.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentPhoneNumbersClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetPhoneNumberServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetPhoneNumberSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetPhoneNumberSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetPhoneNumberSecurityRequirement0, - }; - partial void PrepareGetPhoneNumberArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareGetPhoneNumberRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessGetPhoneNumberResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetPhoneNumberResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get agent phone number
- /// Get agent phone number details - ///
- /// - /// 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 GetPhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetPhoneNumberAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get agent phone number
- /// Get agent phone number details - ///
- /// - /// 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> GetPhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetPhoneNumberArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetPhoneNumberSecurityRequirements, - operationName: "GetPhoneNumberAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/phone_numbers/{id}", - baseUri: ResolveBaseUri( - servers: s_GetPhoneNumberServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetPhoneNumberRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPhoneNumber", - methodName: "GetPhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPhoneNumber", - methodName: "GetPhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPhoneNumber", - methodName: "GetPhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetPhoneNumberResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPhoneNumber", - methodName: "GetPhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPhoneNumber", - methodName: "GetPhoneNumberAsync", - pathTemplate: "$\"/phone_numbers/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetPhoneNumberResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ListPhoneNumbers.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ListPhoneNumbers.g.cs deleted file mode 100644 index a481f6e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.ListPhoneNumbers.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentPhoneNumbersClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListPhoneNumbersServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListPhoneNumbersSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListPhoneNumbersSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListPhoneNumbersSecurityRequirement0, - }; - partial void PrepareListPhoneNumbersArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareListPhoneNumbersRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessListPhoneNumbersResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListPhoneNumbersResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List agent phone numbers
- /// List all agent phone numbers - ///
- /// 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 ListPhoneNumbersAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListPhoneNumbersAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List agent phone numbers
- /// List all agent phone numbers - ///
- /// 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> ListPhoneNumbersAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListPhoneNumbersArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListPhoneNumbersSecurityRequirements, - operationName: "ListPhoneNumbersAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/phone_numbers", - baseUri: ResolveBaseUri( - servers: s_ListPhoneNumbersServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListPhoneNumbersRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPhoneNumbers", - methodName: "ListPhoneNumbersAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPhoneNumbers", - methodName: "ListPhoneNumbersAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPhoneNumbers", - methodName: "ListPhoneNumbersAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessListPhoneNumbersResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPhoneNumbers", - methodName: "ListPhoneNumbersAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPhoneNumbers", - methodName: "ListPhoneNumbersAsync", - pathTemplate: "\"/phone_numbers\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListPhoneNumbersResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.g.cs deleted file mode 100644 index ed28a68..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentPhoneNumbersClient.g.cs +++ /dev/null @@ -1,175 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class AgentPhoneNumbersClient : global::ResembleAI.IAgentPhoneNumbersClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::ResembleAI.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the AgentPhoneNumbersClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentPhoneNumbersClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentPhoneNumbersClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentPhoneNumbersClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentPhoneNumbersClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentPhoneNumbersClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.CreateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.CreateAgentTool.g.cs deleted file mode 100644 index 7944f5c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.CreateAgentTool.g.cs +++ /dev/null @@ -1,491 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentToolsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateAgentToolServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateAgentToolSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateAgentToolSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateAgentToolSecurityRequirement0, - }; - partial void PrepareCreateAgentToolArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - global::ResembleAI.CreateAgentToolRequest request); - partial void PrepareCreateAgentToolRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::ResembleAI.CreateAgentToolRequest request); - partial void ProcessCreateAgentToolResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateAgentToolResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// 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 CreateAgentToolAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateAgentToolAsResponseAsync( - agentUuid: agentUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// 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> CreateAgentToolAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateAgentToolArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAgentToolSecurityRequirements, - operationName: "CreateAgentToolAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/tools", - baseUri: ResolveBaseUri( - servers: s_CreateAgentToolServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAgentToolRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentTool", - methodName: "CreateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentTool", - methodName: "CreateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentTool", - methodName: "CreateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessCreateAgentToolResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentTool", - methodName: "CreateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentTool", - methodName: "CreateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAgentToolResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentToolsCreateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// - /// - /// - /// 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 CreateAgentToolAsync( - global::System.Guid agentUuid, - string name, - string description, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType toolType, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig toolConfig, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateAgentToolRequest - { - Name = name, - Description = description, - ToolType = toolType, - ToolConfig = toolConfig, - }; - - return await CreateAgentToolAsync( - agentUuid: agentUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.DeleteAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.DeleteAgentTool.g.cs deleted file mode 100644 index f752c98..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.DeleteAgentTool.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentToolsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteAgentToolServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteAgentToolSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteAgentToolSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteAgentToolSecurityRequirement0, - }; - partial void PrepareDeleteAgentToolArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid toolUuid); - partial void PrepareDeleteAgentToolRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid toolUuid); - partial void ProcessDeleteAgentToolResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteAgentToolResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete agent tool
- /// Delete a tool - ///
- /// - /// - /// 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 DeleteAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteAgentToolAsResponseAsync( - agentUuid: agentUuid, - toolUuid: toolUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete agent tool
- /// Delete a tool - ///
- /// - /// - /// 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> DeleteAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteAgentToolArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - toolUuid: ref toolUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteAgentToolSecurityRequirements, - operationName: "DeleteAgentToolAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/tools/{toolUuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteAgentToolServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteAgentToolRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - toolUuid: toolUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentTool", - methodName: "DeleteAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentTool", - methodName: "DeleteAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentTool", - methodName: "DeleteAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDeleteAgentToolResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentTool", - methodName: "DeleteAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentTool", - methodName: "DeleteAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteAgentToolResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentToolsDeleteAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentToolsClient.GetAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.GetAgentTool.g.cs deleted file mode 100644 index a2fb740..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.GetAgentTool.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentToolsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetAgentToolServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetAgentToolSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetAgentToolSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetAgentToolSecurityRequirement0, - }; - partial void PrepareGetAgentToolArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid toolUuid); - partial void PrepareGetAgentToolRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid toolUuid); - partial void ProcessGetAgentToolResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetAgentToolResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get agent tool
- /// Get details of a specific tool - ///
- /// - /// - /// 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 GetAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAgentToolAsResponseAsync( - agentUuid: agentUuid, - toolUuid: toolUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get agent tool
- /// Get details of a specific tool - ///
- /// - /// - /// 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> GetAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetAgentToolArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - toolUuid: ref toolUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetAgentToolSecurityRequirements, - operationName: "GetAgentToolAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/tools/{toolUuid}", - baseUri: ResolveBaseUri( - servers: s_GetAgentToolServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetAgentToolRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - toolUuid: toolUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentTool", - methodName: "GetAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentTool", - methodName: "GetAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentTool", - methodName: "GetAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetAgentToolResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentTool", - methodName: "GetAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentTool", - methodName: "GetAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetAgentToolResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentToolsGetAgentToolResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentToolsGetAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentToolsClient.ListAgentTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.ListAgentTools.g.cs deleted file mode 100644 index fef56aa..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.ListAgentTools.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentToolsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListAgentToolsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListAgentToolsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListAgentToolsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListAgentToolsSecurityRequirement0, - }; - partial void PrepareListAgentToolsArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid); - partial void PrepareListAgentToolsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid); - partial void ProcessListAgentToolsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListAgentToolsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List agent tools
- /// List all tools for an agent - ///
- /// - /// 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 ListAgentToolsAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListAgentToolsAsResponseAsync( - agentUuid: agentUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List agent tools
- /// List all tools for an agent - ///
- /// - /// 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> ListAgentToolsAsResponseAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListAgentToolsArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListAgentToolsSecurityRequirements, - operationName: "ListAgentToolsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/tools", - baseUri: ResolveBaseUri( - servers: s_ListAgentToolsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListAgentToolsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentTools", - methodName: "ListAgentToolsAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentTools", - methodName: "ListAgentToolsAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentTools", - methodName: "ListAgentToolsAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessListAgentToolsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentTools", - methodName: "ListAgentToolsAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentTools", - methodName: "ListAgentToolsAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListAgentToolsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentToolsListAgentToolsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentToolsListAgentToolsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentToolsClient.UpdateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.UpdateAgentTool.g.cs deleted file mode 100644 index ec7fe6d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.UpdateAgentTool.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentToolsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateAgentToolServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateAgentToolSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateAgentToolSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateAgentToolSecurityRequirement0, - }; - partial void PrepareUpdateAgentToolArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid toolUuid, - global::ResembleAI.UpdateAgentToolRequest request); - partial void PrepareUpdateAgentToolRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.UpdateAgentToolRequest request); - partial void ProcessUpdateAgentToolResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateAgentToolResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// 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 UpdateAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - - global::ResembleAI.UpdateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateAgentToolAsResponseAsync( - agentUuid: agentUuid, - toolUuid: toolUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// 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> UpdateAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - - global::ResembleAI.UpdateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateAgentToolArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - toolUuid: ref toolUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateAgentToolSecurityRequirements, - operationName: "UpdateAgentToolAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/tools/{toolUuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateAgentToolServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateAgentToolRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - toolUuid: toolUuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentTool", - methodName: "UpdateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentTool", - methodName: "UpdateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentTool", - methodName: "UpdateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessUpdateAgentToolResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentTool", - methodName: "UpdateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentTool", - methodName: "UpdateAgentToolAsync", - pathTemplate: "$\"/agents/{agentUuid}/tools/{toolUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessUpdateAgentToolResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentToolsUpdateAgentToolResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// - /// - /// 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 UpdateAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - string? name = default, - string? description = default, - global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? toolConfig = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateAgentToolRequest - { - Name = name, - Description = description, - ToolConfig = toolConfig, - }; - - return await UpdateAgentToolAsync( - agentUuid: agentUuid, - toolUuid: toolUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.g.cs deleted file mode 100644 index 54d983b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentToolsClient.g.cs +++ /dev/null @@ -1,175 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class AgentToolsClient : global::ResembleAI.IAgentToolsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::ResembleAI.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the AgentToolsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentToolsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentToolsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentToolsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentToolsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentToolsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.CreateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.CreateAgentWebhook.g.cs deleted file mode 100644 index 04aaa82..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.CreateAgentWebhook.g.cs +++ /dev/null @@ -1,485 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentWebhooksClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateAgentWebhookServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateAgentWebhookSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateAgentWebhookSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateAgentWebhookSecurityRequirement0, - }; - partial void PrepareCreateAgentWebhookArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - global::ResembleAI.CreateAgentWebhookRequest request); - partial void PrepareCreateAgentWebhookRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::ResembleAI.CreateAgentWebhookRequest request); - partial void ProcessCreateAgentWebhookResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateAgentWebhookResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// 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 CreateAgentWebhookAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateAgentWebhookAsResponseAsync( - agentUuid: agentUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// 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> CreateAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateAgentWebhookArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAgentWebhookSecurityRequirements, - operationName: "CreateAgentWebhookAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/webhooks", - baseUri: ResolveBaseUri( - servers: s_CreateAgentWebhookServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAgentWebhookRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentWebhook", - methodName: "CreateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentWebhook", - methodName: "CreateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentWebhook", - methodName: "CreateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessCreateAgentWebhookResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentWebhook", - methodName: "CreateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgentWebhook", - methodName: "CreateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAgentWebhookResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// - /// 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 CreateAgentWebhookAsync( - global::System.Guid agentUuid, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType webhookType, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig webhookConfig, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateAgentWebhookRequest - { - WebhookType = webhookType, - WebhookConfig = webhookConfig, - }; - - return await CreateAgentWebhookAsync( - agentUuid: agentUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.DeleteAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.DeleteAgentWebhook.g.cs deleted file mode 100644 index e5eeded..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.DeleteAgentWebhook.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentWebhooksClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteAgentWebhookServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteAgentWebhookSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteAgentWebhookSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteAgentWebhookSecurityRequirement0, - }; - partial void PrepareDeleteAgentWebhookArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid webhookUuid); - partial void PrepareDeleteAgentWebhookRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid webhookUuid); - partial void ProcessDeleteAgentWebhookResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteAgentWebhookResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete agent webhook
- /// Delete a webhook - ///
- /// - /// - /// 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 DeleteAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteAgentWebhookAsResponseAsync( - agentUuid: agentUuid, - webhookUuid: webhookUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete agent webhook
- /// Delete a webhook - ///
- /// - /// - /// 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> DeleteAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteAgentWebhookArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - webhookUuid: ref webhookUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteAgentWebhookSecurityRequirements, - operationName: "DeleteAgentWebhookAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/webhooks/{webhookUuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteAgentWebhookServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteAgentWebhookRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - webhookUuid: webhookUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentWebhook", - methodName: "DeleteAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentWebhook", - methodName: "DeleteAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentWebhook", - methodName: "DeleteAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDeleteAgentWebhookResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentWebhook", - methodName: "DeleteAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgentWebhook", - methodName: "DeleteAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteAgentWebhookResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.GetAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.GetAgentWebhook.g.cs deleted file mode 100644 index ff510e7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.GetAgentWebhook.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentWebhooksClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetAgentWebhookServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetAgentWebhookSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetAgentWebhookSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetAgentWebhookSecurityRequirement0, - }; - partial void PrepareGetAgentWebhookArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid webhookUuid); - partial void PrepareGetAgentWebhookRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid webhookUuid); - partial void ProcessGetAgentWebhookResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetAgentWebhookResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get agent webhook
- /// Get details of a specific webhook - ///
- /// - /// - /// 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 GetAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAgentWebhookAsResponseAsync( - agentUuid: agentUuid, - webhookUuid: webhookUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get agent webhook
- /// Get details of a specific webhook - ///
- /// - /// - /// 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> GetAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetAgentWebhookArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - webhookUuid: ref webhookUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetAgentWebhookSecurityRequirements, - operationName: "GetAgentWebhookAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/webhooks/{webhookUuid}", - baseUri: ResolveBaseUri( - servers: s_GetAgentWebhookServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetAgentWebhookRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - webhookUuid: webhookUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentWebhook", - methodName: "GetAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentWebhook", - methodName: "GetAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentWebhook", - methodName: "GetAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetAgentWebhookResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentWebhook", - methodName: "GetAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentWebhook", - methodName: "GetAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetAgentWebhookResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentWebhooksGetAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.ListAgentWebhooks.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.ListAgentWebhooks.g.cs deleted file mode 100644 index 5a85f41..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.ListAgentWebhooks.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentWebhooksClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListAgentWebhooksServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListAgentWebhooksSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListAgentWebhooksSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListAgentWebhooksSecurityRequirement0, - }; - partial void PrepareListAgentWebhooksArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid); - partial void PrepareListAgentWebhooksRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid); - partial void ProcessListAgentWebhooksResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListAgentWebhooksResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List agent webhooks
- /// List all webhooks for an agent - ///
- /// - /// 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 ListAgentWebhooksAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListAgentWebhooksAsResponseAsync( - agentUuid: agentUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List agent webhooks
- /// List all webhooks for an agent - ///
- /// - /// 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> ListAgentWebhooksAsResponseAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListAgentWebhooksArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListAgentWebhooksSecurityRequirements, - operationName: "ListAgentWebhooksAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/webhooks", - baseUri: ResolveBaseUri( - servers: s_ListAgentWebhooksServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListAgentWebhooksRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentWebhooks", - methodName: "ListAgentWebhooksAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentWebhooks", - methodName: "ListAgentWebhooksAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentWebhooks", - methodName: "ListAgentWebhooksAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessListAgentWebhooksResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentWebhooks", - methodName: "ListAgentWebhooksAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentWebhooks", - methodName: "ListAgentWebhooksAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListAgentWebhooksResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentWebhooksListAgentWebhooksResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.UpdateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.UpdateAgentWebhook.g.cs deleted file mode 100644 index 4e017c1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.UpdateAgentWebhook.g.cs +++ /dev/null @@ -1,494 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentWebhooksClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateAgentWebhookServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateAgentWebhookSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateAgentWebhookSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateAgentWebhookSecurityRequirement0, - }; - partial void PrepareUpdateAgentWebhookArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid webhookUuid, - global::ResembleAI.UpdateAgentWebhookRequest request); - partial void PrepareUpdateAgentWebhookRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.UpdateAgentWebhookRequest request); - partial void ProcessUpdateAgentWebhookResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateAgentWebhookResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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 UpdateAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - - global::ResembleAI.UpdateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateAgentWebhookAsResponseAsync( - agentUuid: agentUuid, - webhookUuid: webhookUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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> UpdateAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - - global::ResembleAI.UpdateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateAgentWebhookArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - webhookUuid: ref webhookUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateAgentWebhookSecurityRequirements, - operationName: "UpdateAgentWebhookAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/webhooks/{webhookUuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateAgentWebhookServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateAgentWebhookRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - webhookUuid: webhookUuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentWebhook", - methodName: "UpdateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentWebhook", - methodName: "UpdateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentWebhook", - methodName: "UpdateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessUpdateAgentWebhookResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentWebhook", - methodName: "UpdateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgentWebhook", - methodName: "UpdateAgentWebhookAsync", - pathTemplate: "$\"/agents/{agentUuid}/webhooks/{webhookUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessUpdateAgentWebhookResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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 UpdateAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? webhookConfig = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateAgentWebhookRequest - { - WebhookConfig = webhookConfig, - }; - - return await UpdateAgentWebhookAsync( - agentUuid: agentUuid, - webhookUuid: webhookUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.g.cs deleted file mode 100644 index bee6dcc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentWebhooksClient.g.cs +++ /dev/null @@ -1,175 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class AgentWebhooksClient : global::ResembleAI.IAgentWebhooksClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::ResembleAI.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the AgentWebhooksClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentWebhooksClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentWebhooksClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentWebhooksClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AgentWebhooksClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentWebhooksClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.CreateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.CreateAgent.g.cs deleted file mode 100644 index 4921901..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.CreateAgent.g.cs +++ /dev/null @@ -1,546 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateAgentSecurityRequirement0, - }; - partial void PrepareCreateAgentArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateAgentRequest request); - partial void PrepareCreateAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateAgentRequest request); - partial void ProcessCreateAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// 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 CreateAgentAsync( - - global::ResembleAI.CreateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateAgentAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// 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> CreateAgentAsResponseAsync( - - global::ResembleAI.CreateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateAgentArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAgentSecurityRequirements, - operationName: "CreateAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/agents", - baseUri: ResolveBaseUri( - servers: s_CreateAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgent", - methodName: "CreateAgentAsync", - pathTemplate: "\"/agents\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgent", - methodName: "CreateAgentAsync", - pathTemplate: "\"/agents\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgent", - methodName: "CreateAgentAsync", - pathTemplate: "\"/agents\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessCreateAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgent", - methodName: "CreateAgentAsync", - pathTemplate: "\"/agents\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAgent", - methodName: "CreateAgentAsync", - pathTemplate: "\"/agents\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Validation error - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - responseBody: __content_400, - responseObject: __value_400, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsCreateAgentResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsCreateAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - speed (faster) or accuracy (more thorough)
- /// Default Value: accuracy - /// - /// - /// Number of relevant chunks to retrieve per query for RAG
- /// Default Value: 8 - /// - /// - /// - /// 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 CreateAgentAsync( - string name, - string voiceUuid, - int? phoneNumberId = default, - global::System.Collections.Generic.IList? languages = default, - object? dynamicVariables = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? asr = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? turn = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? llm = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? searchMode = default, - int? maxChunksPerQuery = default, - global::System.Collections.Generic.IList? webhooks = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? systemTools = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateAgentRequest - { - Name = name, - VoiceUuid = voiceUuid, - PhoneNumberId = phoneNumberId, - Languages = languages, - DynamicVariables = dynamicVariables, - Asr = asr, - Turn = turn, - Llm = llm, - SearchMode = searchMode, - MaxChunksPerQuery = maxChunksPerQuery, - Webhooks = webhooks, - SystemTools = systemTools, - }; - - return await CreateAgentAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DeleteAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DeleteAgent.g.cs deleted file mode 100644 index 0a4385e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DeleteAgent.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteAgentSecurityRequirement0, - }; - partial void PrepareDeleteAgentArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareDeleteAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessDeleteAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete agent
- /// Delete an agent and all its configurations - ///
- /// - /// 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 DeleteAgentAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteAgentAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete agent
- /// Delete an agent and all its configurations - ///
- /// - /// 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> DeleteAgentAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteAgentArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteAgentSecurityRequirements, - operationName: "DeleteAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{uuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgent", - methodName: "DeleteAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgent", - methodName: "DeleteAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgent", - methodName: "DeleteAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDeleteAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgent", - methodName: "DeleteAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteAgent", - methodName: "DeleteAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsDeleteAgentResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsDeleteAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentsClient.DispatchAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DispatchAgent.g.cs deleted file mode 100644 index 9031ad5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.DispatchAgent.g.cs +++ /dev/null @@ -1,489 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DispatchAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DispatchAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DispatchAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DispatchAgentSecurityRequirement0, - }; - partial void PrepareDispatchAgentArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - global::ResembleAI.DispatchAgentRequest request); - partial void PrepareDispatchAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - global::ResembleAI.DispatchAgentRequest request); - partial void ProcessDispatchAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDispatchAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// 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 DispatchAgentAsync( - global::System.Guid uuid, - - global::ResembleAI.DispatchAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DispatchAgentAsResponseAsync( - uuid: uuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// 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> DispatchAgentAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.DispatchAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareDispatchAgentArguments( - httpClient: HttpClient, - uuid: ref uuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DispatchAgentSecurityRequirements, - operationName: "DispatchAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{uuid}/dispatch", - baseUri: ResolveBaseUri( - servers: s_DispatchAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDispatchAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DispatchAgent", - methodName: "DispatchAgentAsync", - pathTemplate: "$\"/agents/{uuid}/dispatch\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DispatchAgent", - methodName: "DispatchAgentAsync", - pathTemplate: "$\"/agents/{uuid}/dispatch\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DispatchAgent", - methodName: "DispatchAgentAsync", - pathTemplate: "$\"/agents/{uuid}/dispatch\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessDispatchAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DispatchAgent", - methodName: "DispatchAgentAsync", - pathTemplate: "$\"/agents/{uuid}/dispatch\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DispatchAgent", - methodName: "DispatchAgentAsync", - pathTemplate: "$\"/agents/{uuid}/dispatch\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDispatchAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsDispatchAgentResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsDispatchAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// Destination phone number - /// - /// - /// Runtime variable overrides - /// - /// 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 DispatchAgentAsync( - global::System.Guid uuid, - string phoneNumber, - global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.DispatchAgentRequest - { - PhoneNumber = phoneNumber, - DynamicVariables = dynamicVariables, - }; - - return await DispatchAgentAsync( - uuid: uuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgent.g.cs deleted file mode 100644 index f563a11..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgent.g.cs +++ /dev/null @@ -1,452 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetAgentSecurityRequirement0, - }; - partial void PrepareGetAgentArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - ref bool? advanced); - partial void PrepareGetAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - bool? advanced); - partial void ProcessGetAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get agent
- /// Retrieve a specific agent's details - ///
- /// - /// - /// Default Value: false - /// - /// 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 GetAgentAsync( - global::System.Guid uuid, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAgentAsResponseAsync( - uuid: uuid, - advanced: advanced, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get agent
- /// Retrieve a specific agent's details - ///
- /// - /// - /// Default Value: false - /// - /// 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> GetAgentAsResponseAsync( - global::System.Guid uuid, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetAgentArguments( - httpClient: HttpClient, - uuid: ref uuid, - advanced: ref advanced); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetAgentSecurityRequirements, - operationName: "GetAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{uuid}", - baseUri: ResolveBaseUri( - servers: s_GetAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddOptionalParameter("advanced", advanced?.ToString().ToLowerInvariant()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!, - advanced: advanced); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgent", - methodName: "GetAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgent", - methodName: "GetAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgent", - methodName: "GetAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgent", - methodName: "GetAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgent", - methodName: "GetAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsGetAgentResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsGetAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgentCapabilities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgentCapabilities.g.cs deleted file mode 100644 index 4364ffd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetAgentCapabilities.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetAgentCapabilitiesServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetAgentCapabilitiesSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetAgentCapabilitiesSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetAgentCapabilitiesSecurityRequirement0, - }; - partial void PrepareGetAgentCapabilitiesArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetAgentCapabilitiesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetAgentCapabilitiesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetAgentCapabilitiesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get capabilities
- /// List supported ASR and LLM providers and models - ///
- /// 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 GetAgentCapabilitiesAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAgentCapabilitiesAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get capabilities
- /// List supported ASR and LLM providers and models - ///
- /// 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> GetAgentCapabilitiesAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetAgentCapabilitiesArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetAgentCapabilitiesSecurityRequirements, - operationName: "GetAgentCapabilitiesAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/agents/capabilities", - baseUri: ResolveBaseUri( - servers: s_GetAgentCapabilitiesServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetAgentCapabilitiesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentCapabilities", - methodName: "GetAgentCapabilitiesAsync", - pathTemplate: "\"/agents/capabilities\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentCapabilities", - methodName: "GetAgentCapabilitiesAsync", - pathTemplate: "\"/agents/capabilities\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentCapabilities", - methodName: "GetAgentCapabilitiesAsync", - pathTemplate: "\"/agents/capabilities\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetAgentCapabilitiesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentCapabilities", - methodName: "GetAgentCapabilitiesAsync", - pathTemplate: "\"/agents/capabilities\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentCapabilities", - methodName: "GetAgentCapabilitiesAsync", - pathTemplate: "\"/agents/capabilities\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetAgentCapabilitiesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsGetAgentCapabilitiesResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsGetAgentCapabilitiesResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentsClient.GetSystemTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetSystemTools.g.cs deleted file mode 100644 index 819c127..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.GetSystemTools.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetSystemToolsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetSystemToolsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetSystemToolsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetSystemToolsSecurityRequirement0, - }; - partial void PrepareGetSystemToolsArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetSystemToolsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetSystemToolsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetSystemToolsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get system tools
- /// List available system tools - ///
- /// 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 GetSystemToolsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetSystemToolsAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get system tools
- /// List available system tools - ///
- /// 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> GetSystemToolsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetSystemToolsArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetSystemToolsSecurityRequirements, - operationName: "GetSystemToolsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/agents/system-tools", - baseUri: ResolveBaseUri( - servers: s_GetSystemToolsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetSystemToolsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSystemTools", - methodName: "GetSystemToolsAsync", - pathTemplate: "\"/agents/system-tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSystemTools", - methodName: "GetSystemToolsAsync", - pathTemplate: "\"/agents/system-tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSystemTools", - methodName: "GetSystemToolsAsync", - pathTemplate: "\"/agents/system-tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessGetSystemToolsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSystemTools", - methodName: "GetSystemToolsAsync", - pathTemplate: "\"/agents/system-tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetSystemTools", - methodName: "GetSystemToolsAsync", - pathTemplate: "\"/agents/system-tools\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetSystemToolsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsGetSystemToolsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsGetSystemToolsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentsClient.ListAgents.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.ListAgents.g.cs deleted file mode 100644 index 85a5e93..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.ListAgents.g.cs +++ /dev/null @@ -1,453 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListAgentsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListAgentsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListAgentsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListAgentsSecurityRequirement0, - }; - partial void PrepareListAgentsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? phoneNumber, - ref bool? advanced); - partial void PrepareListAgentsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? phoneNumber, - bool? advanced); - partial void ProcessListAgentsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListAgentsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List agents
- /// Retrieve all agents for the authenticated team - ///
- /// - /// - /// Default Value: false - /// - /// 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 ListAgentsAsync( - string? phoneNumber = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListAgentsAsResponseAsync( - phoneNumber: phoneNumber, - advanced: advanced, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List agents
- /// Retrieve all agents for the authenticated team - ///
- /// - /// - /// Default Value: false - /// - /// 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> ListAgentsAsResponseAsync( - string? phoneNumber = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListAgentsArguments( - httpClient: HttpClient, - phoneNumber: ref phoneNumber, - advanced: ref advanced); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListAgentsSecurityRequirements, - operationName: "ListAgentsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/agents", - baseUri: ResolveBaseUri( - servers: s_ListAgentsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddOptionalParameter("phone_number", phoneNumber) - .AddOptionalParameter("advanced", advanced?.ToString().ToLowerInvariant()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListAgentsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - phoneNumber: phoneNumber, - advanced: advanced); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgents", - methodName: "ListAgentsAsync", - pathTemplate: "\"/agents\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgents", - methodName: "ListAgentsAsync", - pathTemplate: "\"/agents\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgents", - methodName: "ListAgentsAsync", - pathTemplate: "\"/agents\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessListAgentsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgents", - methodName: "ListAgentsAsync", - pathTemplate: "\"/agents\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgents", - methodName: "ListAgentsAsync", - pathTemplate: "\"/agents\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListAgentsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsListAgentsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsListAgentsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AgentsClient.UpdateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.UpdateAgent.g.cs deleted file mode 100644 index df3f942..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.UpdateAgent.g.cs +++ /dev/null @@ -1,519 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AgentsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateAgentServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateAgentSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateAgentSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateAgentSecurityRequirement0, - }; - partial void PrepareUpdateAgentArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - global::ResembleAI.UpdateAgentRequest request); - partial void PrepareUpdateAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - global::ResembleAI.UpdateAgentRequest request); - partial void ProcessUpdateAgentResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateAgentResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// 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 UpdateAgentAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateAgentAsResponseAsync( - uuid: uuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// 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> UpdateAgentAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateAgentArguments( - httpClient: HttpClient, - uuid: ref uuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateAgentSecurityRequirements, - operationName: "UpdateAgentAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{uuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateAgentServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateAgentRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid!, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgent", - methodName: "UpdateAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgent", - methodName: "UpdateAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgent", - methodName: "UpdateAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::ResembleAI.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); - ProcessUpdateAgentResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgent", - methodName: "UpdateAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateAgent", - methodName: "UpdateAgentAsync", - pathTemplate: "$\"/agents/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessUpdateAgentResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AgentsUpdateAgentResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AgentsUpdateAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - /// - /// - /// Number of chunks to retrieve per query for RAG - /// - /// - /// - /// 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 UpdateAgentAsync( - global::System.Guid uuid, - string? name = default, - string? voiceUuid = default, - int? phoneNumberId = default, - global::System.Collections.Generic.IList? languages = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? asr = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? turn = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? llm = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? searchMode = default, - int? maxChunksPerQuery = default, - global::System.Collections.Generic.IList? webhooks = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? systemTools = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateAgentRequest - { - Name = name, - VoiceUuid = voiceUuid, - PhoneNumberId = phoneNumberId, - Languages = languages, - DynamicVariables = dynamicVariables, - Asr = asr, - Turn = turn, - Llm = llm, - SearchMode = searchMode, - MaxChunksPerQuery = maxChunksPerQuery, - Webhooks = webhooks, - SystemTools = systemTools, - }; - - return await UpdateAgentAsync( - uuid: uuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.GetDetectAgentInvestigationRun.g.cs similarity index 67% rename from src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.GetDetectAgentInvestigationRun.g.cs index 944b56f..e6d6d78 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.GetDetectAgentInvestigationRun.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI { - public partial class AgentKnowledgeBaseClient + public partial class DetectAgentsClient { - private static readonly global::ResembleAI.AutoSDKServer[] s_ListAgentKnowledgeItemsServers = new global::ResembleAI.AutoSDKServer[] + private static readonly global::ResembleAI.AutoSDKServer[] s_GetDetectAgentInvestigationRunServers = new global::ResembleAI.AutoSDKServer[] { new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-api-v2", name: "app.resemble.ai api v2", @@ -15,7 +15,7 @@ public partial class AgentKnowledgeBaseClient }; - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListAgentKnowledgeItemsSecurityRequirement0 = + private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetDetectAgentInvestigationRunSecurityRequirement0 = new global::ResembleAI.EndPointSecurityRequirement { Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] @@ -29,41 +29,47 @@ public partial class AgentKnowledgeBaseClient }, }, }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListAgentKnowledgeItemsSecurityRequirements = + private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetDetectAgentInvestigationRunSecurityRequirements = new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListAgentKnowledgeItemsSecurityRequirement0, + { s_GetDetectAgentInvestigationRunSecurityRequirement0, }; - partial void PrepareListAgentKnowledgeItemsArguments( + partial void PrepareGetDetectAgentInvestigationRunArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid); - partial void PrepareListAgentKnowledgeItemsRequest( + ref string uuid, + ref global::System.Guid runId); + partial void PrepareGetDetectAgentInvestigationRunRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid); - partial void ProcessListAgentKnowledgeItemsResponse( + string uuid, + global::System.Guid runId); + partial void ProcessGetDetectAgentInvestigationRunResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListAgentKnowledgeItemsResponseContent( + partial void ProcessGetDetectAgentInvestigationRunResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// List agent's knowledge items
- /// Lists all knowledge items attached to a specific agent + /// Get investigation run
+ /// Retrieve a persisted investigation run, including its replay transcript
+ /// and the exact configuration and memory snapshots used by the investigation. ///
- /// + /// + /// /// 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 ListAgentKnowledgeItemsAsync( - global::System.Guid agentUuid, + public async global::System.Threading.Tasks.Task GetDetectAgentInvestigationRunAsync( + string uuid, + global::System.Guid runId, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAgentKnowledgeItemsAsResponseAsync( - agentUuid: agentUuid, + var __response = await GetDetectAgentInvestigationRunAsResponseAsync( + uuid: uuid, + runId: runId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -71,29 +77,33 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( return __response.Body; } /// - /// List agent's knowledge items
- /// Lists all knowledge items attached to a specific agent + /// Get investigation run
+ /// Retrieve a persisted investigation run, including its replay transcript
+ /// and the exact configuration and memory snapshots used by the investigation. ///
- /// + /// + /// /// 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> ListAgentKnowledgeItemsAsResponseAsync( - global::System.Guid agentUuid, + public async global::System.Threading.Tasks.Task> GetDetectAgentInvestigationRunAsResponseAsync( + string uuid, + global::System.Guid runId, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListAgentKnowledgeItemsArguments( + PrepareGetDetectAgentInvestigationRunArguments( httpClient: HttpClient, - agentUuid: ref agentUuid); + uuid: ref uuid, + runId: ref runId); var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListAgentKnowledgeItemsSecurityRequirements, - operationName: "ListAgentKnowledgeItemsAsync"); + securityRequirements: s_GetDetectAgentInvestigationRunSecurityRequirements, + operationName: "GetDetectAgentInvestigationRunAsync"); using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -113,9 +123,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( { var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/knowledge_items", + path: $"/agents/{uuid}/runs/{runId}", baseUri: ResolveBaseUri( - servers: s_ListAgentKnowledgeItemsServers, + servers: s_GetDetectAgentInvestigationRunServers, defaultBaseUrl: "https://app.resemble.ai/api/v2")); var __path = __pathBuilder.ToString(); __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -154,10 +164,11 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListAgentKnowledgeItemsRequest( + PrepareGetDetectAgentInvestigationRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentUuid: agentUuid!); + uuid: uuid!, + runId: runId!); return __httpRequest; } @@ -174,9 +185,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentKnowledgeItems", - methodName: "ListAgentKnowledgeItemsAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", + operationId: "GetDetectAgentInvestigationRun", + methodName: "GetDetectAgentInvestigationRunAsync", + pathTemplate: "$\"/agents/{uuid}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -208,9 +219,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentKnowledgeItems", - methodName: "ListAgentKnowledgeItemsAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", + operationId: "GetDetectAgentInvestigationRun", + methodName: "GetDetectAgentInvestigationRunAsync", + pathTemplate: "$\"/agents/{uuid}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -249,9 +260,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentKnowledgeItems", - methodName: "ListAgentKnowledgeItemsAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", + operationId: "GetDetectAgentInvestigationRun", + methodName: "GetDetectAgentInvestigationRunAsync", + pathTemplate: "$\"/agents/{uuid}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -289,7 +300,7 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListAgentKnowledgeItemsResponse( + ProcessGetDetectAgentInvestigationRunResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -297,9 +308,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentKnowledgeItems", - methodName: "ListAgentKnowledgeItemsAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", + operationId: "GetDetectAgentInvestigationRun", + methodName: "GetDetectAgentInvestigationRunAsync", + pathTemplate: "$\"/agents/{uuid}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -319,9 +330,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAgentKnowledgeItems", - methodName: "ListAgentKnowledgeItemsAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items\"", + operationId: "GetDetectAgentInvestigationRun", + methodName: "GetDetectAgentInvestigationRunAsync", + pathTemplate: "$\"/agents/{uuid}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -336,7 +347,81 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Agent not found + // Missing or invalid API key + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The account does not have Detect Agents access + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::ResembleAI.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Detect Agent or investigation run not found if ((int)__response.StatusCode == 404) { string? __content_404 = null; @@ -373,6 +458,43 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( h => h.Key, h => h.Value)); } + // Detect Agents service unavailable + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::ResembleAI.Error? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -386,7 +508,7 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListAgentKnowledgeItemsResponseContent( + ProcessGetDetectAgentInvestigationRunResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -395,9 +517,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -427,9 +549,9 @@ partial void ProcessListAgentKnowledgeItemsResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.GetKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs similarity index 68% rename from src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.GetKnowledgeItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs index ab24c97..7382c59 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.GetKnowledgeItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI { - public partial class AgentKnowledgeBaseClient + public partial class DetectAgentsClient { - private static readonly global::ResembleAI.AutoSDKServer[] s_GetKnowledgeItemServers = new global::ResembleAI.AutoSDKServer[] + private static readonly global::ResembleAI.AutoSDKServer[] s_ListDetectAgentInvestigationRunsServers = new global::ResembleAI.AutoSDKServer[] { new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-api-v2", name: "app.resemble.ai api v2", @@ -15,7 +15,7 @@ public partial class AgentKnowledgeBaseClient }; - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetKnowledgeItemSecurityRequirement0 = + private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListDetectAgentInvestigationRunsSecurityRequirement0 = new global::ResembleAI.EndPointSecurityRequirement { Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] @@ -29,40 +29,41 @@ public partial class AgentKnowledgeBaseClient }, }, }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetKnowledgeItemSecurityRequirements = + private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListDetectAgentInvestigationRunsSecurityRequirements = new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetKnowledgeItemSecurityRequirement0, + { s_ListDetectAgentInvestigationRunsSecurityRequirement0, }; - partial void PrepareGetKnowledgeItemArguments( + partial void PrepareListDetectAgentInvestigationRunsArguments( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareGetKnowledgeItemRequest( + ref string uuid); + partial void PrepareListDetectAgentInvestigationRunsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessGetKnowledgeItemResponse( + string uuid); + partial void ProcessListDetectAgentInvestigationRunsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetKnowledgeItemResponseContent( + partial void ProcessListDetectAgentInvestigationRunsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get knowledge item
- /// Retrieves a single knowledge item with detailed information including attached agents + /// List investigation runs
+ /// Return up to 100 of a Detect Agent's most recent investigation runs in
+ /// newest-first order. An agent that the team has never run returns an empty list. ///
/// /// 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 GetKnowledgeItemAsync( - global::System.Guid uuid, + public async global::System.Threading.Tasks.Task ListDetectAgentInvestigationRunsAsync( + string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetKnowledgeItemAsResponseAsync( + var __response = await ListDetectAgentInvestigationRunsAsResponseAsync( uuid: uuid, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -71,29 +72,30 @@ partial void ProcessGetKnowledgeItemResponseContent( return __response.Body; } /// - /// Get knowledge item
- /// Retrieves a single knowledge item with detailed information including attached agents + /// List investigation runs
+ /// Return up to 100 of a Detect Agent's most recent investigation runs in
+ /// newest-first order. An agent that the team has never run returns an empty list. ///
/// /// 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> GetKnowledgeItemAsResponseAsync( - global::System.Guid uuid, + public async global::System.Threading.Tasks.Task> ListDetectAgentInvestigationRunsAsResponseAsync( + string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetKnowledgeItemArguments( + PrepareListDetectAgentInvestigationRunsArguments( httpClient: HttpClient, uuid: ref uuid); var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetKnowledgeItemSecurityRequirements, - operationName: "GetKnowledgeItemAsync"); + securityRequirements: s_ListDetectAgentInvestigationRunsSecurityRequirements, + operationName: "ListDetectAgentInvestigationRunsAsync"); using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -113,9 +115,9 @@ partial void ProcessGetKnowledgeItemResponseContent( { var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/knowledge_items/{uuid}", + path: $"/agents/{uuid}/runs", baseUri: ResolveBaseUri( - servers: s_GetKnowledgeItemServers, + servers: s_ListDetectAgentInvestigationRunsServers, defaultBaseUrl: "https://app.resemble.ai/api/v2")); var __path = __pathBuilder.ToString(); __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -154,7 +156,7 @@ partial void ProcessGetKnowledgeItemResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetKnowledgeItemRequest( + PrepareListDetectAgentInvestigationRunsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, uuid: uuid!); @@ -174,9 +176,9 @@ partial void ProcessGetKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetKnowledgeItem", - methodName: "GetKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", + operationId: "ListDetectAgentInvestigationRuns", + methodName: "ListDetectAgentInvestigationRunsAsync", + pathTemplate: "$\"/agents/{uuid}/runs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -208,9 +210,9 @@ partial void ProcessGetKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetKnowledgeItem", - methodName: "GetKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", + operationId: "ListDetectAgentInvestigationRuns", + methodName: "ListDetectAgentInvestigationRunsAsync", + pathTemplate: "$\"/agents/{uuid}/runs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -249,9 +251,9 @@ partial void ProcessGetKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetKnowledgeItem", - methodName: "GetKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", + operationId: "ListDetectAgentInvestigationRuns", + methodName: "ListDetectAgentInvestigationRunsAsync", + pathTemplate: "$\"/agents/{uuid}/runs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -289,7 +291,7 @@ partial void ProcessGetKnowledgeItemResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetKnowledgeItemResponse( + ProcessListDetectAgentInvestigationRunsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -297,9 +299,9 @@ partial void ProcessGetKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetKnowledgeItem", - methodName: "GetKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", + operationId: "ListDetectAgentInvestigationRuns", + methodName: "ListDetectAgentInvestigationRunsAsync", + pathTemplate: "$\"/agents/{uuid}/runs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -319,9 +321,9 @@ partial void ProcessGetKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetKnowledgeItem", - methodName: "GetKnowledgeItemAsync", - pathTemplate: "$\"/knowledge_items/{uuid}\"", + operationId: "ListDetectAgentInvestigationRuns", + methodName: "ListDetectAgentInvestigationRunsAsync", + pathTemplate: "$\"/agents/{uuid}/runs\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -336,7 +338,81 @@ partial void ProcessGetKnowledgeItemResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Knowledge item not found + // Missing or invalid API key + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The account does not have Detect Agents access + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::ResembleAI.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Detect Agent not found if ((int)__response.StatusCode == 404) { string? __content_404 = null; @@ -373,6 +449,43 @@ partial void ProcessGetKnowledgeItemResponseContent( h => h.Key, h => h.Value)); } + // Detect Agents service unavailable + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::ResembleAI.Error? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -386,7 +499,7 @@ partial void ProcessGetKnowledgeItemResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetKnowledgeItemResponseContent( + ProcessListDetectAgentInvestigationRunsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -395,9 +508,9 @@ partial void ProcessGetKnowledgeItemResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -427,9 +540,9 @@ partial void ProcessGetKnowledgeItemResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgents.g.cs similarity index 75% rename from src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgents.g.cs index bb4a7e6..9c080a3 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.ListDetectAgents.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI { - public partial class AgentKnowledgeBaseClient + public partial class DetectAgentsClient { - private static readonly global::ResembleAI.AutoSDKServer[] s_DetachKnowledgeItemFromAgentServers = new global::ResembleAI.AutoSDKServer[] + private static readonly global::ResembleAI.AutoSDKServer[] s_ListDetectAgentsServers = new global::ResembleAI.AutoSDKServer[] { new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-api-v2", name: "app.resemble.ai api v2", @@ -15,7 +15,7 @@ public partial class AgentKnowledgeBaseClient }; - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DetachKnowledgeItemFromAgentSecurityRequirement0 = + private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListDetectAgentsSecurityRequirement0 = new global::ResembleAI.EndPointSecurityRequirement { Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] @@ -29,46 +29,38 @@ public partial class AgentKnowledgeBaseClient }, }, }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DetachKnowledgeItemFromAgentSecurityRequirements = + private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListDetectAgentsSecurityRequirements = new global::ResembleAI.EndPointSecurityRequirement[] - { s_DetachKnowledgeItemFromAgentSecurityRequirement0, + { s_ListDetectAgentsSecurityRequirement0, }; - partial void PrepareDetachKnowledgeItemFromAgentArguments( + partial void PrepareListDetectAgentsArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareListDetectAgentsRequest( global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid agentUuid, - ref global::System.Guid knowledgeItemUuid); - partial void PrepareDetachKnowledgeItemFromAgentRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid); - partial void ProcessDetachKnowledgeItemFromAgentResponse( + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessListDetectAgentsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDetachKnowledgeItemFromAgentResponseContent( + partial void ProcessListDetectAgentsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Detach knowledge item from agent
- /// Removes a knowledge item from an agent + /// List Detect Agents
+ /// Return all six managed Detect Agents available to the authenticated team.
+ /// Use an agent's `uuid` to run an investigation or retrieve its run history.
+ /// This endpoint does not accept pagination or filtering parameters. ///
- /// - /// /// 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 DetachKnowledgeItemFromAgentAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, + public async global::System.Threading.Tasks.Task ListDetectAgentsAsync( global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DetachKnowledgeItemFromAgentAsResponseAsync( - agentUuid: agentUuid, - knowledgeItemUuid: knowledgeItemUuid, + var __response = await ListDetectAgentsAsResponseAsync( requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -76,32 +68,28 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( return __response.Body; } /// - /// Detach knowledge item from agent
- /// Removes a knowledge item from an agent + /// List Detect Agents
+ /// Return all six managed Detect Agents available to the authenticated team.
+ /// Use an agent's `uuid` to run an investigation or retrieve its run history.
+ /// This endpoint does not accept pagination or filtering parameters. ///
- /// - /// /// 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> DetachKnowledgeItemFromAgentAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, + public async global::System.Threading.Tasks.Task> ListDetectAgentsAsResponseAsync( global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDetachKnowledgeItemFromAgentArguments( - httpClient: HttpClient, - agentUuid: ref agentUuid, - knowledgeItemUuid: ref knowledgeItemUuid); + PrepareListDetectAgentsArguments( + httpClient: HttpClient); var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DetachKnowledgeItemFromAgentSecurityRequirements, - operationName: "DetachKnowledgeItemFromAgentAsync"); + securityRequirements: s_ListDetectAgentsSecurityRequirements, + operationName: "ListDetectAgentsAsync"); using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -121,9 +109,9 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( { var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}", + path: "/agents", baseUri: ResolveBaseUri( - servers: s_DetachKnowledgeItemFromAgentServers, + servers: s_ListDetectAgentsServers, defaultBaseUrl: "https://app.resemble.ai/api/v2")); var __path = __pathBuilder.ToString(); __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -131,7 +119,7 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( clientParameters: Options.QueryParameters, requestParameters: requestOptions?.QueryParameters); var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, + 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; @@ -162,11 +150,9 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDetachKnowledgeItemFromAgentRequest( + PrepareListDetectAgentsRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentUuid: agentUuid!, - knowledgeItemUuid: knowledgeItemUuid!); + httpRequestMessage: __httpRequest); return __httpRequest; } @@ -183,10 +169,10 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DetachKnowledgeItemFromAgent", - methodName: "DetachKnowledgeItemFromAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}\"", - httpMethod: "DELETE", + operationId: "ListDetectAgents", + methodName: "ListDetectAgentsAsync", + pathTemplate: "\"/agents\"", + httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -217,10 +203,10 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DetachKnowledgeItemFromAgent", - methodName: "DetachKnowledgeItemFromAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}\"", - httpMethod: "DELETE", + operationId: "ListDetectAgents", + methodName: "ListDetectAgentsAsync", + pathTemplate: "\"/agents\"", + httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -258,10 +244,10 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DetachKnowledgeItemFromAgent", - methodName: "DetachKnowledgeItemFromAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}\"", - httpMethod: "DELETE", + operationId: "ListDetectAgents", + methodName: "ListDetectAgentsAsync", + pathTemplate: "\"/agents\"", + httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -298,7 +284,7 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDetachKnowledgeItemFromAgentResponse( + ProcessListDetectAgentsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -306,10 +292,10 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DetachKnowledgeItemFromAgent", - methodName: "DetachKnowledgeItemFromAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}\"", - httpMethod: "DELETE", + operationId: "ListDetectAgents", + methodName: "ListDetectAgentsAsync", + pathTemplate: "\"/agents\"", + httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -328,10 +314,10 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DetachKnowledgeItemFromAgent", - methodName: "DetachKnowledgeItemFromAgentAsync", - pathTemplate: "$\"/agents/{agentUuid}/knowledge_items/{knowledgeItemUuid}\"", - httpMethod: "DELETE", + operationId: "ListDetectAgents", + methodName: "ListDetectAgentsAsync", + pathTemplate: "\"/agents\"", + httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -345,75 +331,112 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Agent or knowledge item not found - if ((int)__response.StatusCode == 404) + // Missing or invalid API key + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The account does not have Detect Agents access + if ((int)__response.StatusCode == 403) { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::ResembleAI.Error? __value_404 = null; + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::ResembleAI.Error? __value_403 = null; try { if (__effectiveReadResponseAsString) { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); } else { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) { - __exception_404 = __ex; + __exception_403 = __ex; } throw global::ResembleAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_404, - responseBody: __content_404, - responseObject: __value_404, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, h => h.Value)); } - // Knowledge item not attached to agent - if ((int)__response.StatusCode == 422) + // Detect Agents service unavailable + if ((int)__response.StatusCode == 502) { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::ResembleAI.Error? __value_502 = null; try { if (__effectiveReadResponseAsString) { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); } else { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) { - __exception_422 = __ex; + __exception_502 = __ex; } throw global::ResembleAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -432,7 +455,7 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDetachKnowledgeItemFromAgentResponseContent( + ProcessListDetectAgentsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -441,9 +464,9 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJson(__content, JsonSerializerContext) ?? + var __value = global::ResembleAI.DetectAgentsListDetectAgentsResponse200.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -473,9 +496,9 @@ partial void ProcessDetachKnowledgeItemFromAgentResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::ResembleAI.DetectAgentsListDetectAgentsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.RunDetectAgentInvestigation.g.cs similarity index 51% rename from src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.RunDetectAgentInvestigation.g.cs index bd70bcb..dd62972 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.RunDetectAgentInvestigation.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI { - public partial class AgentKnowledgeBaseClient + public partial class DetectAgentsClient { - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateKnowledgeItemServers = new global::ResembleAI.AutoSDKServer[] + private static readonly global::ResembleAI.AutoSDKServer[] s_RunDetectAgentInvestigationServers = new global::ResembleAI.AutoSDKServer[] { new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-api-v2", name: "app.resemble.ai api v2", @@ -15,7 +15,7 @@ public partial class AgentKnowledgeBaseClient }; - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateKnowledgeItemSecurityRequirement0 = + private static readonly global::ResembleAI.EndPointSecurityRequirement s_RunDetectAgentInvestigationSecurityRequirement0 = new global::ResembleAI.EndPointSecurityRequirement { Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] @@ -29,41 +29,48 @@ public partial class AgentKnowledgeBaseClient }, }, }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateKnowledgeItemSecurityRequirements = + private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_RunDetectAgentInvestigationSecurityRequirements = new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateKnowledgeItemSecurityRequirement0, + { s_RunDetectAgentInvestigationSecurityRequirement0, }; - partial void PrepareCreateKnowledgeItemArguments( + partial void PrepareRunDetectAgentInvestigationArguments( global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateKnowledgeItemRequest request); - partial void PrepareCreateKnowledgeItemRequest( + ref string uuid, + global::ResembleAI.RunDetectAgentInvestigationRequest request); + partial void PrepareRunDetectAgentInvestigationRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateKnowledgeItemRequest request); - partial void ProcessCreateKnowledgeItemResponse( + string uuid, + global::ResembleAI.RunDetectAgentInvestigationRequest request); + partial void ProcessRunDetectAgentInvestigationResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateKnowledgeItemResponseContent( + partial void ProcessRunDetectAgentInvestigationResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. ///
+ /// /// /// 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 CreateKnowledgeItemAsync( + public async global::System.Threading.Tasks.Task RunDetectAgentInvestigationAsync( + string uuid, - global::ResembleAI.CreateKnowledgeItemRequest request, + global::ResembleAI.RunDetectAgentInvestigationRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateKnowledgeItemAsResponseAsync( + var __response = await RunDetectAgentInvestigationAsResponseAsync( + uuid: uuid, request: request, requestOptions: requestOptions, @@ -73,16 +80,20 @@ partial void ProcessCreateKnowledgeItemResponseContent( return __response.Body; } /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. ///
+ /// /// /// 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> CreateKnowledgeItemAsResponseAsync( + public async global::System.Threading.Tasks.Task> RunDetectAgentInvestigationAsResponseAsync( + string uuid, - global::ResembleAI.CreateKnowledgeItemRequest request, + global::ResembleAI.RunDetectAgentInvestigationRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -90,15 +101,16 @@ partial void ProcessCreateKnowledgeItemResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateKnowledgeItemArguments( + PrepareRunDetectAgentInvestigationArguments( httpClient: HttpClient, + uuid: ref uuid, request: request); var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateKnowledgeItemSecurityRequirements, - operationName: "CreateKnowledgeItemAsync"); + securityRequirements: s_RunDetectAgentInvestigationSecurityRequirements, + operationName: "RunDetectAgentInvestigationAsync"); using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -112,15 +124,15 @@ partial void ProcessCreateKnowledgeItemResponseContent( var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( clientOptions: Options, requestOptions: requestOptions, - supportsRetry: true); + supportsRetry: false); global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() { var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/knowledge_items", + path: $"/agents/{uuid}/run", baseUri: ResolveBaseUri( - servers: s_CreateKnowledgeItemServers, + servers: s_RunDetectAgentInvestigationServers, defaultBaseUrl: "https://app.resemble.ai/api/v2")); var __path = __pathBuilder.ToString(); __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -151,12 +163,99 @@ partial void ProcessCreateKnowledgeItemResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); + + var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(uuid ?? string.Empty), + name: "\"uuid\""); + + if (request.File != default) + { + + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); + __httpRequestContent.Add( + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } + + } + if (request.Url != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Url ?? string.Empty), + name: "\"url\""); + + } + if (request.Query != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Query ?? string.Empty), + name: "\"query\""); + + } + if (request.Evidence != default) + { + + for (var __iEvidence = 0; __iEvidence < request.Evidence.Count; __iEvidence++) + { + var __contentEvidence = new global::System.Net.Http.ByteArrayContent(request.Evidence[__iEvidence]); + __contentEvidence.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); + __httpRequestContent.Add( + content: __contentEvidence, + name: "\"evidence[]\"", + fileName: $"\"file{__iEvidence}.bin\""); + if (__contentEvidence.Headers.ContentDisposition != null) + { + __contentEvidence.Headers.ContentDisposition.FileNameStar = null; + } + } + + } + if (request.CheckUrls != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.CheckUrls ?? string.Empty), + name: "\"check_urls\""); + + } + __httpRequest.Content = __httpRequestContent; + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers, @@ -165,9 +264,10 @@ partial void ProcessCreateKnowledgeItemResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateKnowledgeItemRequest( + PrepareRunDetectAgentInvestigationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + uuid: uuid!, request: request); return __httpRequest; @@ -185,9 +285,9 @@ partial void ProcessCreateKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateKnowledgeItem", - methodName: "CreateKnowledgeItemAsync", - pathTemplate: "\"/knowledge_items\"", + operationId: "RunDetectAgentInvestigation", + methodName: "RunDetectAgentInvestigationAsync", + pathTemplate: "$\"/agents/{uuid}/run\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -219,9 +319,9 @@ partial void ProcessCreateKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateKnowledgeItem", - methodName: "CreateKnowledgeItemAsync", - pathTemplate: "\"/knowledge_items\"", + operationId: "RunDetectAgentInvestigation", + methodName: "RunDetectAgentInvestigationAsync", + pathTemplate: "$\"/agents/{uuid}/run\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -260,9 +360,9 @@ partial void ProcessCreateKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateKnowledgeItem", - methodName: "CreateKnowledgeItemAsync", - pathTemplate: "\"/knowledge_items\"", + operationId: "RunDetectAgentInvestigation", + methodName: "RunDetectAgentInvestigationAsync", + pathTemplate: "$\"/agents/{uuid}/run\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -300,7 +400,7 @@ partial void ProcessCreateKnowledgeItemResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateKnowledgeItemResponse( + ProcessRunDetectAgentInvestigationResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -308,9 +408,9 @@ partial void ProcessCreateKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateKnowledgeItem", - methodName: "CreateKnowledgeItemAsync", - pathTemplate: "\"/knowledge_items\"", + operationId: "RunDetectAgentInvestigation", + methodName: "RunDetectAgentInvestigationAsync", + pathTemplate: "$\"/agents/{uuid}/run\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -330,9 +430,9 @@ partial void ProcessCreateKnowledgeItemResponseContent( await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateKnowledgeItem", - methodName: "CreateKnowledgeItemAsync", - pathTemplate: "\"/knowledge_items\"", + operationId: "RunDetectAgentInvestigation", + methodName: "RunDetectAgentInvestigationAsync", + pathTemplate: "$\"/agents/{uuid}/run\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -347,7 +447,155 @@ partial void ProcessCreateKnowledgeItemResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Validation error + // Missing or invalid API key + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The investigation is blocked by billing or available credits + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + global::ResembleAI.Error? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = global::ResembleAI.Error.FromJson(__content_402, JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = global::ResembleAI.Error.FromJson(__content_402, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + responseBody: __content_402, + responseObject: __value_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The account does not have Detect Agents access + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::ResembleAI.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Detect Agent not found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::ResembleAI.Error? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Neither `file` nor `url` was provided if ((int)__response.StatusCode == 422) { string? __content_422 = null; @@ -384,6 +632,43 @@ partial void ProcessCreateKnowledgeItemResponseContent( h => h.Key, h => h.Value)); } + // Detect Agents service unavailable before streaming begins + if ((int)__response.StatusCode == 502) + { + string? __content_502 = null; + global::System.Exception? __exception_502 = null; + global::ResembleAI.Error? __value_502 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + else + { + __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_502 = global::ResembleAI.Error.FromJson(__content_502, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_502 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_502, + responseBody: __content_502, + responseObject: __value_502, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -397,7 +682,7 @@ partial void ProcessCreateKnowledgeItemResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateKnowledgeItemResponseContent( + ProcessRunDetectAgentInvestigationResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -406,13 +691,11 @@ partial void ProcessCreateKnowledgeItemResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __value); + body: __content); } catch (global::System.Exception __ex) { @@ -432,19 +715,17 @@ partial void ProcessCreateKnowledgeItemResponseContent( try { __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( + var __content = await __response.Content.ReadAsStringAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - var __value = await global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( + return new global::ResembleAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __value); + body: __content); } catch (global::System.Exception __ex) { @@ -481,46 +762,56 @@ partial void ProcessCreateKnowledgeItemResponseContent( } } /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. ///
- /// - /// Title of the knowledge item - /// - /// - /// Description of the knowledge item + /// + /// + /// Primary media to analyze. Required when `url` is omitted. /// - /// - /// Type of knowledge source + /// + /// Primary media to analyze. Required when `url` is omitted. /// /// - /// Required when source_type is url + /// Public media URL to analyze. Required when `file` is omitted. + /// + /// + /// Question or investigation objective. + /// + /// + /// Supporting evidence files. Repeat this field for multiple files. /// - /// - /// Required when source_type is text + /// + /// Additional URLs for the Detect Agent to check. /// /// 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 CreateKnowledgeItemAsync( - string title, - string description, - global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType sourceType, + public async global::System.Threading.Tasks.Task RunDetectAgentInvestigationAsync( + string uuid, + byte[]? file = default, + string? filename = default, string? url = default, - string? rawText = default, + string? query = default, + global::System.Collections.Generic.IList? evidence = default, + string? checkUrls = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::ResembleAI.CreateKnowledgeItemRequest + var __request = new global::ResembleAI.RunDetectAgentInvestigationRequest { - Title = title, - Description = description, - SourceType = sourceType, + File = file, + Filename = filename, Url = url, - RawText = rawText, + Query = query, + Evidence = evidence, + CheckUrls = checkUrls, }; - return await CreateKnowledgeItemAsync( + return await RunDetectAgentInvestigationAsync( + uuid: uuid, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.g.cs similarity index 94% rename from src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.g.cs index c1d4bb6..46ea7fd 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AgentsClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgentsClient.g.cs @@ -7,7 +7,7 @@ namespace ResembleAI /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// - public sealed partial class AgentsClient : global::ResembleAI.IAgentsClient, global::System.IDisposable + public sealed partial class DetectAgentsClient : global::ResembleAI.IDetectAgentsClient, global::System.IDisposable { /// /// @@ -43,7 +43,7 @@ public sealed partial class AgentsClient : global::ResembleAI.IAgentsClient, glo /// - /// Creates a new instance of the AgentsClient. + /// Creates a new instance of the DetectAgentsClient. /// If no httpClient is provided, a new one will be created. /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// @@ -51,7 +51,7 @@ public sealed partial class AgentsClient : global::ResembleAI.IAgentsClient, glo /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. /// The authorizations to use for the requests. /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentsClient( + public DetectAgentsClient( global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null, global::System.Collections.Generic.List? authorizations = null, @@ -65,14 +65,14 @@ public AgentsClient( } /// - /// Creates a new instance of the AgentsClient with explicit options but no base URL override. + /// Creates a new instance of the DetectAgentsClient with explicit options but no base URL override. /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. /// /// The HttpClient instance. If not provided, a new one will be created. /// The authorizations to use for the requests. /// Client-wide request defaults such as headers, query parameters, retries, and timeout. /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentsClient( + public DetectAgentsClient( global::System.Net.Http.HttpClient? httpClient, global::System.Collections.Generic.List? authorizations, global::ResembleAI.AutoSDKClientOptions? options, @@ -86,7 +86,7 @@ public AgentsClient( } /// - /// Creates a new instance of the AgentsClient. + /// Creates a new instance of the DetectAgentsClient. /// If no httpClient is provided, a new one will be created. /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// @@ -95,7 +95,7 @@ public AgentsClient( /// The authorizations to use for the requests. /// Client-wide request defaults such as headers, query parameters, retries, and timeout. /// Dispose the HttpClient when the instance is disposed. True by default. - public AgentsClient( + public DetectAgentsClient( global::System.Net.Http.HttpClient? httpClient, global::System.Uri? baseUri, global::System.Collections.Generic.List? authorizations, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs deleted file mode 100644 index 594d3f7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.AttachKnowledgeItemToAgent.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// 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 AttachKnowledgeItemToAgentAsync( - global::System.Guid agentUuid, - - global::ResembleAI.AttachKnowledgeItemToAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// 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> AttachKnowledgeItemToAgentAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.AttachKnowledgeItemToAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Attach knowledge item to agent
- /// Attaches an existing knowledge item to an agent - ///
- /// - /// - /// The UUID of the knowledge item to attach - /// - /// 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 AttachKnowledgeItemToAgentAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs deleted file mode 100644 index f52533f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.CreateKnowledgeItem.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing - ///
- /// - /// 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 CreateKnowledgeItemAsync( - - global::ResembleAI.CreateKnowledgeItemRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing - ///
- /// - /// 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> CreateKnowledgeItemAsResponseAsync( - - global::ResembleAI.CreateKnowledgeItemRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create knowledge item
- /// Creates a new knowledge item and queues it for ingestion processing - ///
- /// - /// Title of the knowledge item - /// - /// - /// Description of the knowledge item - /// - /// - /// Type of knowledge source - /// - /// - /// Required when source_type is url - /// - /// - /// Required when source_type is text - /// - /// 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 CreateKnowledgeItemAsync( - string title, - string description, - global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType sourceType, - string? url = default, - string? rawText = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs deleted file mode 100644 index 856717b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DeleteKnowledgeItem.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// Delete knowledge item
- /// Deletes a knowledge item and cleans up associated data - ///
- /// - /// 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 DeleteKnowledgeItemAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete knowledge item
- /// Deletes a knowledge item and cleans up associated data - ///
- /// - /// 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> DeleteKnowledgeItemAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs deleted file mode 100644 index d41e0e7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.DetachKnowledgeItemFromAgent.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// Detach knowledge item from agent
- /// Removes a knowledge item from an agent - ///
- /// - /// - /// 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 DetachKnowledgeItemFromAgentAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Detach knowledge item from agent
- /// Removes a knowledge item from an agent - ///
- /// - /// - /// 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> DetachKnowledgeItemFromAgentAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid knowledgeItemUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs deleted file mode 100644 index 389ed17..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.GetKnowledgeItem.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// Get knowledge item
- /// Retrieves a single knowledge item with detailed information including attached agents - ///
- /// - /// 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 GetKnowledgeItemAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get knowledge item
- /// Retrieves a single knowledge item with detailed information including attached agents - ///
- /// - /// 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> GetKnowledgeItemAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs deleted file mode 100644 index 852106d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListKnowledgeItems.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentKnowledgeBaseClient - { - /// - /// List knowledge items
- /// List all knowledge items belonging to the authenticated user's team - ///
- /// - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 20 - /// - /// 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 ListKnowledgeItemsAsync( - global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default, - int? page = default, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List knowledge items
- /// List all knowledge items belonging to the authenticated user's team - ///
- /// - /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 20 - /// - /// 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> ListKnowledgeItemsAsResponseAsync( - global::ResembleAI.KnowledgeItemsGetParametersStatus? status = default, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? sourceType = default, - int? page = default, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.g.cs deleted file mode 100644 index d3563e5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IAgentKnowledgeBaseClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.CreatePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.CreatePhoneNumber.g.cs deleted file mode 100644 index 8717021..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.CreatePhoneNumber.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentPhoneNumbersClient - { - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// 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 CreatePhoneNumberAsync( - - global::ResembleAI.CreatePhoneNumberRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// 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> CreatePhoneNumberAsResponseAsync( - - global::ResembleAI.CreatePhoneNumberRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent phone number
- /// Create a new agent phone number - ///
- /// - /// E.164 formatted phone number - /// - /// - /// - /// Default Value: false - /// - /// - /// Default Value: false - /// - /// - /// - /// - /// - /// - /// 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 CreatePhoneNumberAsync( - string phoneNumber, - string label, - bool? supportsInbound = default, - bool? supportsOutbound = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? provider = default, - string? twilioAccountSid = default, - string? twilioAuthToken = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? outboundTrunk = default, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? inboundTrunk = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.DeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.DeletePhoneNumber.g.cs deleted file mode 100644 index 88c6342..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.DeletePhoneNumber.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentPhoneNumbersClient - { - /// - /// Delete agent phone number
- /// Delete an agent phone number - ///
- /// - /// 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 DeletePhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete agent phone number
- /// Delete an agent phone number - ///
- /// - /// 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> DeletePhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs deleted file mode 100644 index a56224b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ForceDeletePhoneNumber.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentPhoneNumbersClient - { - /// - /// Force delete agent phone number
- /// Force delete an agent phone number even if linked to agent - ///
- /// - /// 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 ForceDeletePhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Force delete agent phone number
- /// Force delete an agent phone number even if linked to agent - ///
- /// - /// 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> ForceDeletePhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.GetPhoneNumber.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.GetPhoneNumber.g.cs deleted file mode 100644 index 0c55cc1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.GetPhoneNumber.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentPhoneNumbersClient - { - /// - /// Get agent phone number
- /// Get agent phone number details - ///
- /// - /// 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 GetPhoneNumberAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get agent phone number
- /// Get agent phone number details - ///
- /// - /// 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> GetPhoneNumberAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ListPhoneNumbers.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ListPhoneNumbers.g.cs deleted file mode 100644 index 237fe4e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.ListPhoneNumbers.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentPhoneNumbersClient - { - /// - /// List agent phone numbers
- /// List all agent phone numbers - ///
- /// 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 ListPhoneNumbersAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List agent phone numbers
- /// List all agent phone numbers - ///
- /// 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> ListPhoneNumbersAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.g.cs deleted file mode 100644 index b1a8ad6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentPhoneNumbersClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IAgentPhoneNumbersClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.CreateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.CreateAgentTool.g.cs deleted file mode 100644 index 23e775a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.CreateAgentTool.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentToolsClient - { - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// 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 CreateAgentToolAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// 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> CreateAgentToolAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent tool
- /// Create a new tool for an agent - ///
- /// - /// - /// - /// - /// - /// 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 CreateAgentToolAsync( - global::System.Guid agentUuid, - string name, - string description, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType toolType, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig toolConfig, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.DeleteAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.DeleteAgentTool.g.cs deleted file mode 100644 index 7725586..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.DeleteAgentTool.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentToolsClient - { - /// - /// Delete agent tool
- /// Delete a tool - ///
- /// - /// - /// 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 DeleteAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete agent tool
- /// Delete a tool - ///
- /// - /// - /// 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> DeleteAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.GetAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.GetAgentTool.g.cs deleted file mode 100644 index 1e802e4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.GetAgentTool.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentToolsClient - { - /// - /// Get agent tool
- /// Get details of a specific tool - ///
- /// - /// - /// 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 GetAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get agent tool
- /// Get details of a specific tool - ///
- /// - /// - /// 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> GetAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.ListAgentTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.ListAgentTools.g.cs deleted file mode 100644 index 74b69f7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.ListAgentTools.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentToolsClient - { - /// - /// List agent tools
- /// List all tools for an agent - ///
- /// - /// 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 ListAgentToolsAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List agent tools
- /// List all tools for an agent - ///
- /// - /// 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> ListAgentToolsAsResponseAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.UpdateAgentTool.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.UpdateAgentTool.g.cs deleted file mode 100644 index d4378e5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.UpdateAgentTool.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentToolsClient - { - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// 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 UpdateAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - - global::ResembleAI.UpdateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// 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> UpdateAgentToolAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - - global::ResembleAI.UpdateAgentToolRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent tool
- /// Update an existing tool - ///
- /// - /// - /// - /// - /// - /// 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 UpdateAgentToolAsync( - global::System.Guid agentUuid, - global::System.Guid toolUuid, - string? name = default, - string? description = default, - global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? toolConfig = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.g.cs deleted file mode 100644 index 50ea587..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentToolsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IAgentToolsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.CreateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.CreateAgentWebhook.g.cs deleted file mode 100644 index c282c34..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.CreateAgentWebhook.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentWebhooksClient - { - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// 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 CreateAgentWebhookAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// 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> CreateAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - - global::ResembleAI.CreateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent webhook
- /// Create a new webhook for an agent - ///
- /// - /// - /// - /// 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 CreateAgentWebhookAsync( - global::System.Guid agentUuid, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType webhookType, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig webhookConfig, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.DeleteAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.DeleteAgentWebhook.g.cs deleted file mode 100644 index 9ea112d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.DeleteAgentWebhook.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentWebhooksClient - { - /// - /// Delete agent webhook
- /// Delete a webhook - ///
- /// - /// - /// 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 DeleteAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete agent webhook
- /// Delete a webhook - ///
- /// - /// - /// 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> DeleteAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.GetAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.GetAgentWebhook.g.cs deleted file mode 100644 index b2c6358..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.GetAgentWebhook.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentWebhooksClient - { - /// - /// Get agent webhook
- /// Get details of a specific webhook - ///
- /// - /// - /// 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 GetAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get agent webhook
- /// Get details of a specific webhook - ///
- /// - /// - /// 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> GetAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.ListAgentWebhooks.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.ListAgentWebhooks.g.cs deleted file mode 100644 index 0654d45..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.ListAgentWebhooks.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentWebhooksClient - { - /// - /// List agent webhooks
- /// List all webhooks for an agent - ///
- /// - /// 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 ListAgentWebhooksAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List agent webhooks
- /// List all webhooks for an agent - ///
- /// - /// 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> ListAgentWebhooksAsResponseAsync( - global::System.Guid agentUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.UpdateAgentWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.UpdateAgentWebhook.g.cs deleted file mode 100644 index 9f19d35..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.UpdateAgentWebhook.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentWebhooksClient - { - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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 UpdateAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - - global::ResembleAI.UpdateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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> UpdateAgentWebhookAsResponseAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - - global::ResembleAI.UpdateAgentWebhookRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent webhook
- /// Update an existing webhook - ///
- /// - /// - /// - /// 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 UpdateAgentWebhookAsync( - global::System.Guid agentUuid, - global::System.Guid webhookUuid, - global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? webhookConfig = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.g.cs deleted file mode 100644 index d3c195f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentWebhooksClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IAgentWebhooksClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.CreateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.CreateAgent.g.cs deleted file mode 100644 index 52a6625..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.CreateAgent.g.cs +++ /dev/null @@ -1,74 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// 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 CreateAgentAsync( - - global::ResembleAI.CreateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// 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> CreateAgentAsResponseAsync( - - global::ResembleAI.CreateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create agent
- /// Create a new voice agent - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - speed (faster) or accuracy (more thorough)
- /// Default Value: accuracy - /// - /// - /// Number of relevant chunks to retrieve per query for RAG
- /// Default Value: 8 - /// - /// - /// - /// 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 CreateAgentAsync( - string name, - string voiceUuid, - int? phoneNumberId = default, - global::System.Collections.Generic.IList? languages = default, - object? dynamicVariables = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? asr = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? turn = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? llm = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? searchMode = default, - int? maxChunksPerQuery = default, - global::System.Collections.Generic.IList? webhooks = default, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? systemTools = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DispatchAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DispatchAgent.g.cs deleted file mode 100644 index b0108c5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DispatchAgent.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// 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 DispatchAgentAsync( - global::System.Guid uuid, - - global::ResembleAI.DispatchAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// 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> DispatchAgentAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.DispatchAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Dispatch agent
- /// Make an outbound call with an agent - ///
- /// - /// - /// Destination phone number - /// - /// - /// Runtime variable overrides - /// - /// 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 DispatchAgentAsync( - global::System.Guid uuid, - string phoneNumber, - global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgent.g.cs deleted file mode 100644 index 20026eb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgent.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Get agent
- /// Retrieve a specific agent's details - ///
- /// - /// - /// Default Value: false - /// - /// 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 GetAgentAsync( - global::System.Guid uuid, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get agent
- /// Retrieve a specific agent's details - ///
- /// - /// - /// Default Value: false - /// - /// 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> GetAgentAsResponseAsync( - global::System.Guid uuid, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgentCapabilities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgentCapabilities.g.cs deleted file mode 100644 index ab5e881..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetAgentCapabilities.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Get capabilities
- /// List supported ASR and LLM providers and models - ///
- /// 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 GetAgentCapabilitiesAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get capabilities
- /// List supported ASR and LLM providers and models - ///
- /// 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> GetAgentCapabilitiesAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetSystemTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetSystemTools.g.cs deleted file mode 100644 index 4833894..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.GetSystemTools.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Get system tools
- /// List available system tools - ///
- /// 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 GetSystemToolsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get system tools
- /// List available system tools - ///
- /// 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> GetSystemToolsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.ListAgents.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.ListAgents.g.cs deleted file mode 100644 index d69f083..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.ListAgents.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// List agents
- /// Retrieve all agents for the authenticated team - ///
- /// - /// - /// Default Value: false - /// - /// 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 ListAgentsAsync( - string? phoneNumber = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List agents
- /// Retrieve all agents for the authenticated team - ///
- /// - /// - /// Default Value: false - /// - /// 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> ListAgentsAsResponseAsync( - string? phoneNumber = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.UpdateAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.UpdateAgent.g.cs deleted file mode 100644 index 00c85ce..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.UpdateAgent.g.cs +++ /dev/null @@ -1,78 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAgentsClient - { - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// 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 UpdateAgentAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// 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> UpdateAgentAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdateAgentRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update agent
- /// Update an existing agent's configuration - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - /// - /// - /// Number of chunks to retrieve per query for RAG - /// - /// - /// - /// 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 UpdateAgentAsync( - global::System.Guid uuid, - string? name = default, - string? voiceUuid = default, - int? phoneNumberId = default, - global::System.Collections.Generic.IList? languages = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? asr = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? turn = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? llm = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? searchMode = default, - int? maxChunksPerQuery = default, - global::System.Collections.Generic.IList? webhooks = default, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? systemTools = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.GetDetectAgentInvestigationRun.g.cs similarity index 55% rename from src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.GetDetectAgentInvestigationRun.g.cs index afde499..64d4a4a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ReingestKnowledgeItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.GetDetectAgentInvestigationRun.g.cs @@ -2,30 +2,36 @@ namespace ResembleAI { - public partial interface IAgentKnowledgeBaseClient + public partial interface IDetectAgentsClient { /// - /// Re-ingest knowledge item
- /// Re-runs the ingestion pipeline for an existing knowledge item + /// Get investigation run
+ /// Retrieve a persisted investigation run, including its replay transcript
+ /// and the exact configuration and memory snapshots used by the investigation. ///
/// + /// /// 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 ReingestKnowledgeItemAsync( - global::System.Guid uuid, + global::System.Threading.Tasks.Task GetDetectAgentInvestigationRunAsync( + string uuid, + global::System.Guid runId, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Re-ingest knowledge item
- /// Re-runs the ingestion pipeline for an existing knowledge item + /// Get investigation run
+ /// Retrieve a persisted investigation run, including its replay transcript
+ /// and the exact configuration and memory snapshots used by the investigation. ///
/// + /// /// 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> ReingestKnowledgeItemAsResponseAsync( - global::System.Guid uuid, + global::System.Threading.Tasks.Task> GetDetectAgentInvestigationRunAsResponseAsync( + string uuid, + global::System.Guid runId, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DeleteAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs similarity index 59% rename from src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DeleteAgent.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs index 24ee477..924297f 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.DeleteAgent.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgentInvestigationRuns.g.cs @@ -2,30 +2,32 @@ namespace ResembleAI { - public partial interface IAgentsClient + public partial interface IDetectAgentsClient { /// - /// Delete agent
- /// Delete an agent and all its configurations + /// List investigation runs
+ /// Return up to 100 of a Detect Agent's most recent investigation runs in
+ /// newest-first order. An agent that the team has never run returns an empty list. ///
/// /// 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 DeleteAgentAsync( - global::System.Guid uuid, + global::System.Threading.Tasks.Task ListDetectAgentInvestigationRunsAsync( + string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Delete agent
- /// Delete an agent and all its configurations + /// List investigation runs
+ /// Return up to 100 of a Detect Agent's most recent investigation runs in
+ /// newest-first order. An agent that the team has never run returns an empty list. ///
/// /// 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> DeleteAgentAsResponseAsync( - global::System.Guid uuid, + global::System.Threading.Tasks.Task> ListDetectAgentInvestigationRunsAsResponseAsync( + string uuid, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgents.g.cs similarity index 56% rename from src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgents.g.cs index f5f0ae9..3dd0073 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentKnowledgeBaseClient.ListAgentKnowledgeItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.ListDetectAgents.g.cs @@ -2,30 +2,30 @@ namespace ResembleAI { - public partial interface IAgentKnowledgeBaseClient + public partial interface IDetectAgentsClient { /// - /// List agent's knowledge items
- /// Lists all knowledge items attached to a specific agent + /// List Detect Agents
+ /// Return all six managed Detect Agents available to the authenticated team.
+ /// Use an agent's `uuid` to run an investigation or retrieve its run history.
+ /// This endpoint does not accept pagination or filtering parameters. ///
- /// /// 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 ListAgentKnowledgeItemsAsync( - global::System.Guid agentUuid, + global::System.Threading.Tasks.Task ListDetectAgentsAsync( global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// List agent's knowledge items
- /// Lists all knowledge items attached to a specific agent + /// List Detect Agents
+ /// Return all six managed Detect Agents available to the authenticated team.
+ /// Use an agent's `uuid` to run an investigation or retrieve its run history.
+ /// This endpoint does not accept pagination or filtering parameters. ///
- /// /// 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> ListAgentKnowledgeItemsAsResponseAsync( - global::System.Guid agentUuid, + global::System.Threading.Tasks.Task> ListDetectAgentsAsResponseAsync( global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.RunDetectAgentInvestigation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.RunDetectAgentInvestigation.g.cs new file mode 100644 index 0000000..ade7ccf --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.RunDetectAgentInvestigation.g.cs @@ -0,0 +1,80 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface IDetectAgentsClient + { + /// + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. + ///
+ /// + /// + /// 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 RunDetectAgentInvestigationAsync( + string uuid, + + global::ResembleAI.RunDetectAgentInvestigationRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. + ///
+ /// + /// + /// 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> RunDetectAgentInvestigationAsResponseAsync( + string uuid, + + global::ResembleAI.RunDetectAgentInvestigationRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Run investigation
+ /// Run a managed Detect Agent against uploaded media or a public URL.
+ /// The response is a live Server-Sent Events stream. The first `run_started`
+ /// event contains the persisted run identifier. + ///
+ /// + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + /// + /// Public media URL to analyze. Required when `file` is omitted. + /// + /// + /// Question or investigation objective. + /// + /// + /// Supporting evidence files. Repeat this field for multiple files. + /// + /// + /// Additional URLs for the Detect Agent to check. + /// + /// 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 RunDetectAgentInvestigationAsync( + string uuid, + byte[]? file = default, + string? filename = default, + string? url = default, + string? query = default, + global::System.Collections.Generic.IList? evidence = default, + string? checkUrls = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.g.cs similarity index 95% rename from src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.g.cs index 495bd58..411e257 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAgentsClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IDetectAgentsClient.g.cs @@ -7,7 +7,7 @@ namespace ResembleAI /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// - public partial interface IAgentsClient : global::System.IDisposable + public partial interface IDetectAgentsClient : global::System.IDisposable { /// /// The HttpClient instance. diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs index 4e3478e..9b2cd1a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs @@ -70,31 +70,6 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public AccountClient Account { get; } - /// - /// - /// - public AgentKnowledgeBaseClient AgentKnowledgeBase { get; } - - /// - /// - /// - public AgentPhoneNumbersClient AgentPhoneNumbers { get; } - - /// - /// - /// - public AgentToolsClient AgentTools { get; } - - /// - /// - /// - public AgentWebhooksClient AgentWebhooks { get; } - - /// - /// - /// - public AgentsClient Agents { get; } - /// /// /// @@ -120,6 +95,11 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public DeepfakeDetectionClient DeepfakeDetection { get; } + /// + /// + /// + public DetectAgentsClient DetectAgents { get; } + /// /// /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs deleted file mode 100644 index e5a363a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullable.g.cs deleted file mode 100644 index 2517673..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs deleted file mode 100644 index ddff756..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullable.g.cs deleted file mode 100644 index 98bdef2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs deleted file mode 100644 index 83fe42b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullable.g.cs deleted file mode 100644 index ea46259..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs deleted file mode 100644 index fef7fcb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs +++ /dev/null @@ -1,217 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace ResembleAI.JsonConverters -{ - /// - public class AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(bool), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - - string? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = default; - double? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = default; - bool? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 == null && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables( - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1, - - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2, - - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1!, typeInfo); - } - else if (value.IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2!.Value, typeInfo); - } - else if (value.IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(bool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(bool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs deleted file mode 100644 index a852a20..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs deleted file mode 100644 index 60c88a9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs deleted file mode 100644 index 9f14538..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullable.g.cs deleted file mode 100644 index 6d22c90..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs deleted file mode 100644 index d47074b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs deleted file mode 100644 index 8329e5c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatus.g.cs similarity index 64% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatus.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatus.g.cs index 48ce63b..5299e06 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatus.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatus.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class KnowledgeItemsGetParametersStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class DetectAgentRunSummaryStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.KnowledgeItemsGetParametersStatus Read( + public override global::ResembleAI.DetectAgentRunSummaryStatus Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class KnowledgeItemsGetParametersStatusJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.KnowledgeItemsGetParametersStatusExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.DetectAgentRunSummaryStatusExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class KnowledgeItemsGetParametersStatusJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetParametersStatus)numValue; + return (global::ResembleAI.DetectAgentRunSummaryStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.KnowledgeItemsGetParametersStatus); + return default(global::ResembleAI.DetectAgentRunSummaryStatus); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class KnowledgeItemsGetParametersStatusJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetParametersStatus value, + global::ResembleAI.DetectAgentRunSummaryStatus value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetParametersStatusExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.DetectAgentRunSummaryStatusExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullable.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullable.g.cs index 268c599..00a266c 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class KnowledgeItemsGetParametersStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class DetectAgentRunSummaryStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.KnowledgeItemsGetParametersStatus? Read( + public override global::ResembleAI.DetectAgentRunSummaryStatus? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class KnowledgeItemsGetParametersStatusNullableJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.KnowledgeItemsGetParametersStatusExtensions.ToEnum(stringValue); + return global::ResembleAI.DetectAgentRunSummaryStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class KnowledgeItemsGetParametersStatusNullableJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetParametersStatus)numValue; + return (global::ResembleAI.DetectAgentRunSummaryStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.KnowledgeItemsGetParametersStatus?); + return default(global::ResembleAI.DetectAgentRunSummaryStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class KnowledgeItemsGetParametersStatusNullableJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetParametersStatus? value, + global::ResembleAI.DetectAgentRunSummaryStatus? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetParametersStatusExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.DetectAgentRunSummaryStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTier.g.cs similarity index 63% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTier.g.cs index 6f3e2cb..f5db69e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTier.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class KnowledgeItemsGetParametersSourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class DetectAgentTierJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.KnowledgeItemsGetParametersSourceType Read( + public override global::ResembleAI.DetectAgentTier Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class KnowledgeItemsGetParametersSourceTypeJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.KnowledgeItemsGetParametersSourceTypeExtensions.ToEnum(stringValue) ?? default; + return global::ResembleAI.DetectAgentTierExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class KnowledgeItemsGetParametersSourceTypeJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetParametersSourceType)numValue; + return (global::ResembleAI.DetectAgentTier)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.KnowledgeItemsGetParametersSourceType); + return default(global::ResembleAI.DetectAgentTier); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class KnowledgeItemsGetParametersSourceTypeJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetParametersSourceType value, + global::ResembleAI.DetectAgentTier value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetParametersSourceTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::ResembleAI.DetectAgentTierExtensions.ToValueString(value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTierNullable.g.cs similarity index 65% rename from src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullable.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTierNullable.g.cs index a0d8482..8efdc57 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullable.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DetectAgentTierNullable.g.cs @@ -3,10 +3,10 @@ namespace ResembleAI.JsonConverters { /// - public sealed class KnowledgeItemsGetParametersSourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class DetectAgentTierNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::ResembleAI.KnowledgeItemsGetParametersSourceType? Read( + public override global::ResembleAI.DetectAgentTier? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class KnowledgeItemsGetParametersSourceTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::ResembleAI.KnowledgeItemsGetParametersSourceTypeExtensions.ToEnum(stringValue); + return global::ResembleAI.DetectAgentTierExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class KnowledgeItemsGetParametersSourceTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetParametersSourceType)numValue; + return (global::ResembleAI.DetectAgentTier)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::ResembleAI.KnowledgeItemsGetParametersSourceType?); + return default(global::ResembleAI.DetectAgentTier?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class KnowledgeItemsGetParametersSourceTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetParametersSourceType? value, + global::ResembleAI.DetectAgentTier? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetParametersSourceTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::ResembleAI.DetectAgentTierExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs deleted file mode 100644 index 1d8ba5d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullable.g.cs deleted file mode 100644 index baae063..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs deleted file mode 100644 index cede794..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs deleted file mode 100644 index 81a207f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs deleted file mode 100644 index e9e110c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullable.g.cs deleted file mode 100644 index 5fea638..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs deleted file mode 100644 index 33ffc10..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullable.g.cs deleted file mode 100644 index 2229a7f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 1fc2dff..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs deleted file mode 100644 index b999da9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs deleted file mode 100644 index 53bc00e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullable.g.cs deleted file mode 100644 index 2fda309..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index 42ebddc..800022f 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -13,110 +13,6 @@ namespace ResembleAI DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter), typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter), @@ -181,6 +77,14 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.DetectAgentTierJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentTierNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter), typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter), @@ -337,6 +241,54 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), + typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter), typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter), @@ -349,8 +301,6 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter), - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter), - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionJsonConverter), @@ -373,178 +323,24 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioTimestamps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [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::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine), TypeInfoPropertyName = "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsListAgentsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables), TypeInfoPropertyName = "AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat), TypeInfoPropertyName = "AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode), TypeInfoPropertyName = "AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode), TypeInfoPropertyName = "AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsCreateAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsGetAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsDeleteAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode), TypeInfoPropertyName = "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUpdateAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsDispatchAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsGetAgentCapabilitiesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsGetSystemToolsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentToolsListAgentToolsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType), TypeInfoPropertyName = "AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentToolsCreateAgentToolResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentToolsGetAgentToolResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentToolsDeleteAgentToolResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentToolsUpdateAgentToolResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType), TypeInfoPropertyName = "AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider), TypeInfoPropertyName = "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersStatus), TypeInfoPropertyName = "KnowledgeItemsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersSourceType), TypeInfoPropertyName = "KnowledgeItemsGetParametersSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType), TypeInfoPropertyName = "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType), TypeInfoPropertyName = "KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType), TypeInfoPropertyName = "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SecureUploadsCreateSecureUploadResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAudioMetrics))] + [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::ResembleAI.DetectImageMetricsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectImageMetrics))] + [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::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems))] @@ -560,9 +356,12 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracingObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligenceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionListDetectionsResponse200))] + [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(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality), TypeInfoPropertyName = "DetectPostRequestBodyContentMultipartFormDataSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality), TypeInfoPropertyName = "DetectPostResponsesContentApplicationJsonSchemaItemModality2")] @@ -598,10 +397,29 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracingObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionGetDetectionResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectBatchStatus), TypeInfoPropertyName = "DetectBatchStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectBatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionCreateDetectBatchResponse202))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionGetDetectBatchResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentTier), TypeInfoPropertyName = "DetectAgentTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentCapabilities))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentsListDetectAgentsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunSummaryStatus), TypeInfoPropertyName = "DetectAgentRunSummaryStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunResultVerdict))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfDetectAgentRunResultVerdictObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunSummaryInputs))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunSummary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType), TypeInfoPropertyName = "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItem))] @@ -706,6 +524,51 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf), TypeInfoPropertyName = "OneOfWatermarkDetectItemMetricsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SecureUploadsCreateSecureUploadResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioTimestamps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine), TypeInfoPropertyName = "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech))] @@ -792,15 +655,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsDeleteClipResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsUpdateClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetAccountResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetTeamsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetTeamResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetBillingUsageResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsListDuetVoicesResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -818,31 +672,29 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsGenerateDuetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamSynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTranscriptRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskTranscriptQuestionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAgentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateAgentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DispatchAgentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAgentToolRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateAgentToolRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAgentWebhookRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateAgentWebhookRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreatePhoneNumberRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateKnowledgeItemRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AttachKnowledgeItemToAgentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateSecureUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetAccountResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetTeamsResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetTeamResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetBillingUsageResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectBatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RunDetectAgentInvestigationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RunIntelligenceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskDetectIntelligenceQuestionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateIdentityAttachmentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SearchIdentitiesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateSecureUploadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamSynthesizeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTranscriptRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskTranscriptQuestionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BuildVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GenerateVoiceDesignRequest))] @@ -863,512 +715,17 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDuetVoicePairRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GenerateDuetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine?), TypeInfoPropertyName = "NullableAudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine?), TypeInfoPropertyName = "NullableAudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), - - typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySummaryVisibilityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityIdentityTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityVisibilityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter), - - typeof(global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter), - - typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionJsonConverter), - - typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceJsonConverter), - - typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), - - typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), - - typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaTurnMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaSearchMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType?), TypeInfoPropertyName = "NullableAgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType?), TypeInfoPropertyName = "NullableAgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider?), TypeInfoPropertyName = "NullablePhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectC2PaManifestValidationState?), TypeInfoPropertyName = "NullableDetectC2PaManifestValidationState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligenceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultStatus?), TypeInfoPropertyName = "NullableDetectIntelligenceResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescriptionOneOf1FraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescriptionOneOf1LivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescription?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescription2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectIntelligenceResultDescriptionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectBatchStatus?), TypeInfoPropertyName = "NullableDetectBatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType?), TypeInfoPropertyName = "NullableIntelligencePostRequestBodyContentApplicationJsonSchemaMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableIntelligencePostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryVisibility?), TypeInfoPropertyName = "NullableIdentitySummaryVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryIdentityType?), TypeInfoPropertyName = "NullableIdentitySummaryIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?), TypeInfoPropertyName = "NullableIdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility?), TypeInfoPropertyName = "NullableIdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityRequest?), TypeInfoPropertyName = "NullableIdentityCreateIdentityRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableIdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityIdentityType?), TypeInfoPropertyName = "NullableIdentityIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityVisibility?), TypeInfoPropertyName = "NullableIdentityVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityEmbeddingsItemsModality?), TypeInfoPropertyName = "NullableIdentityEmbeddingsItemsModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostRequestBodyContentApplicationJsonSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostResponsesContentApplicationJsonSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkApplyPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemOperationType?), TypeInfoPropertyName = "NullableWatermarkApplyItemOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemStatus?), TypeInfoPropertyName = "NullableWatermarkApplyItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkApplyItemModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkDetectPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemOperationType?), TypeInfoPropertyName = "NullableWatermarkDetectItemOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemStatus?), TypeInfoPropertyName = "NullableWatermarkDetectItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkDetectItemModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsOverallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsDetectedModelVersionsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsOverallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsDetectedModelVersionsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkVisionDetectionMetricsVerdictObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics?), TypeInfoPropertyName = "NullableWatermarkDetectItemMetrics2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectItemMetricsObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus?), TypeInfoPropertyName = "NullablePronunciationsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus?), TypeInfoPropertyName = "NullableCustomPronunciationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?), TypeInfoPropertyName = "NullableDuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] [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.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [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))] @@ -1379,6 +736,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1388,240 +751,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = global::System.Text.Json.Serialization.Metadata.JsonTypeInfoResolver.Combine( - SourceGenerationContextChunk0.Default, - - SourceGenerationContextChunk1.Default - ); - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static SourceGenerationContext Default { get; } = new(DefaultOptions); - - private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityIdentityTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityVisibilityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - - return options; - } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs index 1d5ae95..aa43290 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -28,35 +28,35 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Type0 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type0 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? Type1 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type1 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? Type2 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality? Type2 { get; set; } /// /// /// - public global::ResembleAI.AudioTimestamps? Type3 { get; set; } + public global::ResembleAI.DetectAudioMetrics? Type3 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4 { get; set; } + public string? Type4 { get; set; } /// /// /// - public string? Type5 { get; set; } + public global::System.Collections.Generic.IList? Type5 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type6 { get; set; } + public global::ResembleAI.DetectImageMetricsChildrenItems? Type6 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type7 { get; set; } + public global::ResembleAI.DetectImageMetrics? Type7 { get; set; } /// /// /// @@ -64,1891 +64,1499 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.TextToSpeechSynthesizeResponse200? Type9 { get; set; } + public global::System.Collections.Generic.IList? Type9 { get; set; } /// /// /// - public bool? Type10 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems? Type10 { get; set; } /// /// /// - public byte[]? Type11 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems? Type11 { get; set; } /// /// /// - public int? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// - public global::ResembleAI.Error? Type13 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItems? Type13 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type14 { get; set; } + public global::System.Collections.Generic.IList? Type14 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Type15 { get; set; } + public global::ResembleAI.DetectVideoMetrics? Type15 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? Type16 { get; set; } + public global::System.Collections.Generic.IList? Type16 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? Type17 { get; set; } + public global::ResembleAI.DetectC2PaManifestValidationState? Type17 { get; set; } /// /// /// - public global::System.Guid? Type18 { get; set; } + public global::ResembleAI.DetectC2paManifest? Type18 { get; set; } /// /// /// - public global::System.DateTime? Type19 { get; set; } + public object? Type19 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Type20 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing? Type20 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptsResponse200? Type21 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence? Type21 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type22 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams? Type22 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Type23 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems? Type23 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Type24 { get; set; } + public bool? Type24 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextCreateTranscriptResponse200? Type25 { get; set; } + public global::ResembleAI.OneOf? Type25 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type26 { get; set; } + public global::ResembleAI.OneOf? Type26 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? Type27 { get; set; } + public global::System.DateTime? Type27 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Type28 { get; set; } + public global::ResembleAI.DeepfakeDetectionListDetectionsResponse200? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public int? Type29 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptResponse200? Type30 { get; set; } + public global::System.Collections.Generic.IList? Type30 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Type31 { get; set; } + public global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? Type31 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? Type32 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality? Type32 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? Type33 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus? Type33 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Type34 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType? Type34 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? Type35 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment? Type36 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type37 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness? Type37 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? Type38 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered? Type38 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type39 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1? Type39 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine? Type40 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription? Type40 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? Type41 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligence? Type41 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? Type42 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItem? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::ResembleAI.OneOf? Type43 { get; set; } /// /// /// - public global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? Type44 { get; set; } + public global::ResembleAI.DeepfakeDetectionCreateDetectionResponse200? Type44 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine? Type45 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type45 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Type46 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type46 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? Type47 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing? Type47 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? Type48 { get; set; } + public global::ResembleAI.DetectIntelligenceResultStatus? Type48 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? Type49 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType? Type49 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Type50 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Fraud? Type50 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? Type51 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment? Type51 { get; set; } /// /// /// - public global::ResembleAI.GetAudioEnhancementRequestNotFoundError? Type52 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Liveness? Type52 { get; set; } /// /// /// - public global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems? Type53 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1DigitallyAltered? Type53 { get; set; } /// /// /// - public global::ResembleAI.AgentsListAgentsResponse200? Type54 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescription1? Type54 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type55 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescription? Type55 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables? Type56 { get; set; } + public global::ResembleAI.DetectIntelligenceResult? Type56 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? Type57 { get; set; } + public global::ResembleAI.OneOf? Type57 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? Type59 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence? Type59 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? Type60 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality? Type60 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? Type61 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItem? Type61 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? Type62 { get; set; } + public global::ResembleAI.OneOf? Type62 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? Type63 { get; set; } + public global::ResembleAI.OneOf? Type63 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems? Type64 { get; set; } + public global::ResembleAI.DeepfakeDetectionGetDetectionResponse200? Type64 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? Type65 { get; set; } + public global::ResembleAI.Error? Type65 { get; set; } /// /// /// - public global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? Type66 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type66 { get; set; } /// /// /// - public global::ResembleAI.AgentsCreateAgentResponse200? Type67 { get; set; } + public global::ResembleAI.DetectBatchStatus? Type67 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? Type68 { get; set; } + public global::ResembleAI.DetectBatch? Type68 { get; set; } /// /// /// - public global::ResembleAI.AgentsGetAgentResponse200? Type69 { get; set; } + public global::ResembleAI.DeepfakeDetectionCreateDetectBatchResponse202? Type69 { get; set; } /// /// /// - public global::ResembleAI.AgentsDeleteAgentResponse200? Type70 { get; set; } + public global::ResembleAI.DeepfakeDetectionGetDetectBatchResponse200? Type70 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? Type71 { get; set; } + public global::ResembleAI.DetectAgentTier? Type71 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? Type72 { get; set; } + public global::ResembleAI.DetectAgentCapabilities? Type72 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? Type73 { get; set; } + public global::ResembleAI.DetectAgent? Type73 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? Type74 { get; set; } + public global::ResembleAI.DetectAgentsListDetectAgentsResponse200? Type74 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? Type75 { get; set; } + public global::System.Collections.Generic.IList? Type75 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? Type76 { get; set; } + public global::ResembleAI.DetectAgentRunSummaryStatus? Type76 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? Type77 { get; set; } + public global::ResembleAI.DetectAgentRunResultVerdict? Type77 { get; set; } /// /// /// - public global::ResembleAI.AgentsUpdateAgentResponse200? Type78 { get; set; } + public global::ResembleAI.DetectAgentRunResult? Type78 { get; set; } /// /// /// - public global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? Type79 { get; set; } + public global::ResembleAI.OneOf? Type79 { get; set; } /// /// /// - public global::ResembleAI.AgentsDispatchAgentResponse200? Type80 { get; set; } + public global::ResembleAI.DetectAgentRunSummaryInputs? Type80 { get; set; } /// /// /// - public global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems? Type81 { get; set; } + public global::ResembleAI.DetectAgentRunSummary? Type81 { get; set; } /// /// /// - public global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems? Type82 { get; set; } + public global::System.Guid? Type82 { get; set; } /// /// /// - public global::ResembleAI.AgentsGetAgentCapabilitiesResponse200? Type83 { get; set; } + public global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? Type83 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type85 { get; set; } + public global::ResembleAI.DetectAgentRun? Type85 { get; set; } /// /// /// - public global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::ResembleAI.AgentsGetSystemToolsResponse200? Type87 { get; set; } + public global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType? Type88 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems? Type89 { get; set; } + public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType? Type89 { get; set; } /// /// /// - public global::ResembleAI.AgentToolsListAgentToolsResponse200? Type90 { get; set; } + public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItem? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::ResembleAI.IntelligenceRunIntelligenceResponse200? Type91 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType? Type92 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType? Type92 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig? Type93 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud? Type93 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? Type94 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment? Type94 { get; set; } /// /// /// - public global::ResembleAI.AgentToolsCreateAgentToolResponse200? Type95 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness? Type95 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? Type96 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered? Type96 { get; set; } /// /// /// - public global::ResembleAI.AgentToolsGetAgentToolResponse200? Type97 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription? Type97 { get; set; } /// /// /// - public global::ResembleAI.AgentToolsDeleteAgentToolResponse200? Type98 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type98 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? Type99 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems? Type99 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? Type100 { get; set; } + public global::ResembleAI.IntelligenceListIntelligencesResponse200? Type100 { get; set; } /// /// /// - public global::ResembleAI.AgentToolsUpdateAgentToolResponse200? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems? Type102 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType? Type102 { get; set; } /// /// /// - public global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200? Type103 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment? Type104 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType? Type105 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness? Type105 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig? Type106 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered? Type106 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? Type107 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription? Type107 { get; set; } /// /// /// - public global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200? Type108 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type108 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? Type109 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem? Type109 { get; set; } /// /// /// - public global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200? Type110 { get; set; } + public global::ResembleAI.IntelligenceGetIntelligenceResponse200? Type110 { get; set; } /// /// /// - public global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200? Type111 { get; set; } + public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus? Type111 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? Type112 { get; set; } + public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem? Type112 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? Type113 { get; set; } + public global::ResembleAI.DetectIntelligenceAskDetectIntelligenceQuestionResponse202? Type113 { get; set; } /// /// /// - public global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200? Type114 { get; set; } + public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type114 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems? Type115 { get; set; } + public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type115 { get; set; } /// /// /// - public global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200? Type116 { get; set; } + public global::ResembleAI.DetectIntelligenceGetDetectIntelligenceQuestionResponse200? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults? Type117 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? Type118 { get; set; } + public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems? Type118 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? Type119 { get; set; } + public global::ResembleAI.AudioSourceTracingListAudioSourceTracingsResponse200? Type119 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? Type121 { get; set; } + public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults? Type121 { get; set; } /// /// /// - public global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200? Type122 { get; set; } + public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem? Type122 { get; set; } /// /// /// - public global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? Type123 { get; set; } + public global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200? Type123 { get; set; } /// /// /// - public global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200? Type124 { get; set; } + public global::ResembleAI.IdentitySummaryVisibility? Type124 { get; set; } /// /// /// - public global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200? Type125 { get; set; } + public global::ResembleAI.IdentitySummaryIdentityType? Type125 { get; set; } /// /// /// - public global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200? Type126 { get; set; } + public global::ResembleAI.IdentitySummary? Type126 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetParametersStatus? Type127 { get; set; } + public global::ResembleAI.IdentityListIdentitiesResponse200? Type127 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetParametersSourceType? Type128 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? Type129 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest0? Type129 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type130 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? Type130 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? Type131 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? Type131 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? Type132 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? Type132 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200? Type133 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest1? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest? Type134 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType? Type135 { get; set; } + public global::ResembleAI.IdentityCreateIdentityResponse200? Type135 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? Type136 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityResponse200? Type136 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201? Type137 { get; set; } + public global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? Type137 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? Type138 { get; set; } + public global::ResembleAI.IdentityIdentityType? Type138 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type139 { get; set; } + public global::ResembleAI.IdentityVisibility? Type139 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems? Type140 { get; set; } + public global::ResembleAI.IdentityAttachment? Type140 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? Type141 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItemsModality? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItems? Type142 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200? Type143 { get; set; } + public global::ResembleAI.IdentityProjectsItems? Type143 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200? Type144 { get; set; } + public global::ResembleAI.Identity? Type144 { get; set; } /// /// /// - public global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200? Type146 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200? Type148 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type149 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems? Type150 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type150 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201? Type151 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type152 { get; set; } /// /// /// - public global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems? Type153 { get; set; } + public global::System.Collections.Generic.Dictionary? Type153 { get; set; } /// /// /// - public global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200? Type154 { get; set; } + public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::ResembleAI.WatermarkApplyRequest? Type155 { get; set; } /// /// /// - public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type156 { get; set; } + public global::ResembleAI.WatermarkApplyItemMediaType? Type156 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type157 { get; set; } + public global::ResembleAI.WatermarkApplyItemOperationType? Type157 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type158 { get; set; } + public global::ResembleAI.WatermarkApplyItemStatus? Type158 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality? Type159 { get; set; } + public global::ResembleAI.WatermarkApplyItemModelVersion? Type159 { get; set; } /// /// /// - public global::ResembleAI.DetectAudioMetrics? Type160 { get; set; } + public global::ResembleAI.WatermarkApplyMetrics? Type160 { get; set; } /// /// /// - public global::ResembleAI.DetectImageMetricsChildrenItems? Type161 { get; set; } + public global::ResembleAI.WatermarkApplyItem? Type161 { get; set; } /// /// /// - public global::ResembleAI.DetectImageMetrics? Type162 { get; set; } + public global::ResembleAI.WatermarkApplyResponse? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type163 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems? Type164 { get; set; } + public global::ResembleAI.WatermarkDetectRequest? Type164 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems? Type165 { get; set; } + public global::ResembleAI.WatermarkDetectItemMediaType? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::ResembleAI.WatermarkDetectItemOperationType? Type166 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItems? Type167 { get; set; } + public global::ResembleAI.WatermarkDetectItemStatus? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::ResembleAI.WatermarkDetectItemModelVersion? Type168 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetrics? Type169 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems? Type170 { get; set; } /// /// /// - public global::ResembleAI.DetectC2PaManifestValidationState? Type171 { get; set; } + public global::ResembleAI.WatermarkAudioModelResultModelVersion? Type171 { get; set; } /// /// /// - public global::ResembleAI.DetectC2paManifest? Type172 { get; set; } + public global::ResembleAI.WatermarkAudioModelResultStatus? Type172 { get; set; } /// /// /// - public object? Type173 { get; set; } + public global::ResembleAI.WatermarkAudioModelResult? Type173 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing? Type174 { get; set; } + public global::System.Collections.Generic.Dictionary? Type174 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence? Type175 { get; set; } + public global::ResembleAI.WatermarkAudioDetectionMetrics? Type175 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems? Type177 { get; set; } + public global::System.Collections.Generic.IList? Type177 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type178 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus? Type178 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type179 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems? Type179 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionListDetectionsResponse200? Type180 { get; set; } + public global::ResembleAI.WatermarkVisionModelResultModelVersion? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::ResembleAI.WatermarkVisionModelResultStatus? Type181 { get; set; } /// /// /// - public global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? Type182 { get; set; } + public global::ResembleAI.WatermarkVisionModelResult? Type182 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality? Type183 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetricsVerdict? Type183 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus? Type184 { get; set; } + public global::ResembleAI.WatermarkVisionDetectionMetrics? Type184 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment? Type187 { get; set; } + public global::ResembleAI.OneOf? Type187 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness? Type188 { get; set; } + public global::ResembleAI.WatermarkDetectItemMetrics? Type188 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered? Type189 { get; set; } + public global::ResembleAI.WatermarkDetectItem? Type189 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1? Type190 { get; set; } + public global::ResembleAI.OneOf? Type190 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription? Type191 { get; set; } + public global::ResembleAI.WatermarkDetectResponse? Type191 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligence? Type192 { get; set; } + public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type192 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItem? Type193 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Type193 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type194 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? Type194 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionCreateDetectionResponse200? Type195 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? Type195 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type196 { get; set; } + public global::ResembleAI.AudioTimestamps? Type196 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type197 { get; set; } + public global::System.Collections.Generic.IList>? Type197 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing? Type198 { get; set; } + public global::System.Collections.Generic.IList? Type198 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultStatus? Type199 { get; set; } + public global::ResembleAI.TextToSpeechSynthesizeResponse200? Type199 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType? Type200 { get; set; } + public byte[]? Type200 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Fraud? Type201 { get; set; } + public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Type201 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment? Type202 { get; set; } + public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? Type202 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Liveness? Type203 { get; set; } + public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? Type203 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1DigitallyAltered? Type204 { get; set; } + public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Type204 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescription1? Type205 { get; set; } + public global::ResembleAI.SpeechToTextListTranscriptsResponse200? Type205 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescription? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResult? Type207 { get; set; } + public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Type207 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type208 { get; set; } + public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::ResembleAI.SpeechToTextCreateTranscriptResponse200? Type209 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence? Type210 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type210 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality? Type211 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? Type211 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItem? Type212 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Type212 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type214 { get; set; } + public global::ResembleAI.SpeechToTextGetTranscriptResponse200? Type214 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionGetDetectionResponse200? Type215 { get; set; } + public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Type215 { get; set; } /// /// /// - public global::ResembleAI.DetectBatchStatus? Type216 { get; set; } + public global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? Type216 { get; set; } /// /// /// - public global::ResembleAI.DetectBatch? Type217 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? Type217 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionCreateDetectBatchResponse202? Type218 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Type218 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionGetDetectBatchResponse200? Type219 { get; set; } + public global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? Type219 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType? Type221 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type221 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItem? Type222 { get; set; } + public global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? Type222 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceRunIntelligenceResponse200? Type223 { get; set; } + public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type223 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType? Type224 { get; set; } + public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine? Type224 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud? Type225 { get; set; } + public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? Type225 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment? Type226 { get; set; } + public global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? Type226 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered? Type228 { get; set; } + public global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? Type228 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription? Type229 { get; set; } + public global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine? Type229 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type230 { get; set; } + public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Type230 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems? Type231 { get; set; } + public global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? Type231 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceListIntelligencesResponse200? Type232 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? Type233 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType? Type234 { get; set; } + public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Type234 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud? Type235 { get; set; } + public global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? Type235 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment? Type236 { get; set; } + public global::ResembleAI.GetAudioEnhancementRequestNotFoundError? Type236 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness? Type237 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type237 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered? Type238 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type238 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription? Type239 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type239 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type240 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type240 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem? Type241 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type241 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceGetIntelligenceResponse200? Type242 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type242 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus? Type243 { get; set; } + public global::ResembleAI.VoicesListVoicesResponse200? Type243 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceAskDetectIntelligenceQuestionResponse202? Type245 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type245 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type246 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type246 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type247 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type247 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceGetDetectIntelligenceQuestionResponse200? Type248 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type248 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults? Type249 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type249 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems? Type250 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type250 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingListAudioSourceTracingsResponse200? Type251 { get; set; } + public global::ResembleAI.VoicesCreateVoiceResponse200? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type252 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults? Type253 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type253 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem? Type254 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type254 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200? Type255 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type255 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummaryVisibility? Type256 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type256 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummaryIdentityType? Type257 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type257 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummary? Type258 { get; set; } + public global::ResembleAI.VoicesGetVoiceResponse200? Type258 { get; set; } /// /// /// - public global::ResembleAI.IdentityListIdentitiesResponse200? Type259 { get; set; } + public global::ResembleAI.VoicesDeleteVoiceResponse200? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::ResembleAI.VoicesBuildVoiceResponse200? Type260 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest0? Type261 { get; set; } + public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type261 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? Type262 { get; set; } + public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type262 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? Type264 { get; set; } + public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type264 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest1? Type265 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type265 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest? Type266 { get; set; } + public global::ResembleAI.RecordingsListRecordingsResponse200? Type266 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityResponse200? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::ResembleAI.IdentityDeleteIdentityResponse200? Type268 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type268 { get; set; } /// /// /// - public global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? Type269 { get; set; } + public global::ResembleAI.RecordingsCreateRecordingResponse200? Type269 { get; set; } /// /// /// - public global::ResembleAI.IdentityIdentityType? Type270 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type270 { get; set; } /// /// /// - public global::ResembleAI.IdentityVisibility? Type271 { get; set; } + public global::ResembleAI.RecordingsGetRecordingResponse200? Type271 { get; set; } /// /// /// - public global::ResembleAI.IdentityAttachment? Type272 { get; set; } + public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type272 { get; set; } /// /// /// - public global::ResembleAI.IdentityEmbeddingsItemsModality? Type273 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type273 { get; set; } /// /// /// - public global::ResembleAI.IdentityEmbeddingsItems? Type274 { get; set; } + public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type274 { get; set; } /// /// /// - public global::ResembleAI.IdentityProjectsItems? Type275 { get; set; } + public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type275 { get; set; } /// /// /// - public global::ResembleAI.Identity? Type276 { get; set; } + public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type279 { get; set; } /// /// /// - public global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? Type280 { get; set; } + public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type280 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type281 { get; set; } + public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type281 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type282 { get; set; } + public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type282 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type283 { get; set; } + public global::ResembleAI.PronunciationsGetParametersStatus? Type283 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type284 { get; set; } + public global::ResembleAI.CustomPronunciationStatus? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type285 { get; set; } + public global::ResembleAI.CustomPronunciation? Type285 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type286 { get; set; } + public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type286 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyRequest? Type287 { get; set; } + public global::System.Collections.Generic.IList? Type287 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemMediaType? Type288 { get; set; } + public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type288 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemOperationType? Type289 { get; set; } + public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type289 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemStatus? Type290 { get; set; } + public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type290 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemModelVersion? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyMetrics? Type292 { get; set; } + public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type292 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItem? Type293 { get; set; } + public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type293 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyResponse? Type294 { get; set; } + public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type294 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type295 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type295 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectRequest? Type296 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type296 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemMediaType? Type297 { get; set; } + public global::System.Collections.Generic.IList? Type297 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemOperationType? Type298 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type298 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemStatus? Type299 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type299 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemModelVersion? Type300 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type300 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus? Type301 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type301 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems? Type302 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type302 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioModelResultModelVersion? Type303 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type303 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioModelResultStatus? Type304 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type304 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioModelResult? Type305 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type306 { get; set; } + public global::ResembleAI.ProjectsListProjectsResponse200? Type306 { get; set; } /// /// /// - public global::ResembleAI.WatermarkAudioDetectionMetrics? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type308 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type308 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type309 { get; set; } + public global::ResembleAI.ProjectsCreateProjectResponse200? Type309 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus? Type310 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type310 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems? Type311 { get; set; } + public global::ResembleAI.ProjectsGetProjectResponse200? Type311 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionModelResultModelVersion? Type312 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type312 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionModelResultStatus? Type313 { get; set; } + public global::ResembleAI.ProjectsUpdateProjectResponse200? Type313 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionModelResult? Type314 { get; set; } + public global::ResembleAI.ProjectsDeleteProjectResponse200? Type314 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionDetectionMetricsVerdict? Type315 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type315 { get; set; } /// /// /// - public global::ResembleAI.WatermarkVisionDetectionMetrics? Type316 { get; set; } + public global::ResembleAI.ClipsListClipsResponse200? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type318 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type319 { get; set; } + public global::ResembleAI.ClipsGetClipResponse200? Type319 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemMetrics? Type320 { get; set; } + public global::ResembleAI.ClipsDeleteClipResponse200? Type320 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItem? Type321 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type321 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type322 { get; set; } + public global::ResembleAI.ClipsUpdateClipResponse200? Type322 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectResponse? Type323 { get; set; } + public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type323 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type324 { get; set; } + public global::ResembleAI.DuetsListDuetVoicesResponse200? Type324 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type325 { get; set; } + public global::System.Collections.Generic.IList? Type325 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type326 { get; set; } + public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type326 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type327 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type327 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type328 { get; set; } + public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type328 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type329 { get; set; } + public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type329 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type330 { get; set; } + public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type331 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type332 { get; set; } + public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type332 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type334 { get; set; } + public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type334 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type335 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type335 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type336 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type336 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type337 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type337 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type338 { get; set; } + public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type338 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type339 { get; set; } + public global::ResembleAI.DuetsGenerateDuetResponse200? Type339 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type340 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type340 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type341 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type341 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type342 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type342 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type343 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type343 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type344 { get; set; } + public global::System.Collections.Generic.IList? Type344 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type345 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type345 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type346 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type346 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type347 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type347 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type348 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type348 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type349 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type350 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type352 { get; set; } + public global::ResembleAI.RunDetectAgentInvestigationRequest? Type352 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type353 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type354 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type355 { get; set; } + public global::ResembleAI.CreateIdentityAttachmentRequest? Type355 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type356 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type356 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type357 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type357 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type358 { get; set; } + public global::ResembleAI.SynthesizeRequest? Type358 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type359 { get; set; } + public global::ResembleAI.StreamSynthesizeRequest? Type359 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type360 { get; set; } + public global::ResembleAI.CreateTranscriptRequest? Type360 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type361 { get; set; } + public global::ResembleAI.AskTranscriptQuestionRequest? Type361 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type362 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequest? Type362 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type363 { get; set; } + public global::ResembleAI.CreateVoiceRequest? Type363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type364 { get; set; } + public global::ResembleAI.BuildVoiceRequest? Type364 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type365 { get; set; } + public global::ResembleAI.GenerateVoiceDesignRequest? Type365 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type366 { get; set; } + public global::ResembleAI.CreateVoiceFromCandidateRequest? Type366 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type367 { get; set; } + public global::ResembleAI.CreateRecordingRequest? Type367 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type368 { get; set; } + public global::ResembleAI.UpdateRecordingRequest? Type368 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type369 { get; set; } + public global::ResembleAI.CreateTermSubstitutionRequest? Type369 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type370 { get; set; } + public global::ResembleAI.CreatePronunciationRequest? Type370 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type371 { get; set; } + public global::ResembleAI.BulkCreatePronunciationsRequest? Type371 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type372 { get; set; } + public global::ResembleAI.UpdatePronunciationRequest? Type372 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type373 { get; set; } + public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type374 { get; set; } + public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type374 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type375 { get; set; } + public global::ResembleAI.CreateProjectRequest? Type375 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type376 { get; set; } + public global::ResembleAI.UpdateProjectRequest? Type376 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type377 { get; set; } + public global::ResembleAI.UpdateClipRequest? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::ResembleAI.CreateDuetVoiceRequest? Type378 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type379 { get; set; } + public global::ResembleAI.UpdateDuetVoiceRequest? Type379 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type380 { get; set; } + public global::ResembleAI.CreateDuetVoicePairRequest? Type380 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type381 { get; set; } + public global::ResembleAI.GenerateDuetRequest? Type381 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type382 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type383 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type384 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type385 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type386 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type387 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type388 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type389 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type390 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type391 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type392 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type393 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type394 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type395 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type396 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type397 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type398 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type399 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type400 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type401 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type402 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsListClipsResponse200? Type403 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type404 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type405 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsGetClipResponse200? Type406 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type407 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type408 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type409 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type410 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetAccountResponse200? Type411 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type412 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetTeamsResponse200? Type413 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type414 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type415 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetTeamResponse200? Type416 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type417 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type418 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type419 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type420 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type421 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type422 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type423 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type424 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type425 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type426 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type427 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type428 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type429 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type430 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type431 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type432 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type433 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type434 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type435 { get; set; } - /// - /// - /// - public global::ResembleAI.SynthesizeRequest? Type436 { get; set; } - /// - /// - /// - public global::ResembleAI.StreamSynthesizeRequest? Type437 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateTranscriptRequest? Type438 { get; set; } - /// - /// - /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type439 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type440 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateAgentRequest? Type441 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type442 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateAgentRequest? Type443 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type444 { get; set; } - /// - /// - /// - public global::ResembleAI.DispatchAgentRequest? Type445 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateAgentToolRequest? Type446 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateAgentToolRequest? Type447 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateAgentWebhookRequest? Type448 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateAgentWebhookRequest? Type449 { get; set; } - /// - /// - /// - public global::ResembleAI.CreatePhoneNumberRequest? Type450 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateKnowledgeItemRequest? Type451 { get; set; } - /// - /// - /// - public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type452 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateSecureUploadRequest? Type453 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDetectionRequest? Type454 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDetectBatchRequest? Type455 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type456 { get; set; } - /// - /// - /// - public global::ResembleAI.RunIntelligenceRequest? Type457 { get; set; } - /// - /// - /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type458 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateIdentityAttachmentRequest? Type459 { get; set; } - /// - /// - /// - public global::ResembleAI.SearchIdentitiesRequest? Type460 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateVoiceRequest? Type461 { get; set; } - /// - /// - /// - public global::ResembleAI.BuildVoiceRequest? Type462 { get; set; } - /// - /// - /// - public global::ResembleAI.GenerateVoiceDesignRequest? Type463 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateVoiceFromCandidateRequest? Type464 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateRecordingRequest? Type465 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateRecordingRequest? Type466 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type467 { get; set; } - /// - /// - /// - public global::ResembleAI.CreatePronunciationRequest? Type468 { get; set; } - /// - /// - /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type469 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdatePronunciationRequest? Type470 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type471 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type472 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateProjectRequest? Type473 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateProjectRequest? Type474 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateClipRequest? Type475 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDuetVoiceRequest? Type476 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type477 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type478 { get; set; } - /// - /// - /// - public global::ResembleAI.GenerateDuetRequest? Type479 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type480 { get; set; } + public global::System.Collections.Generic.IList? Type382 { get; set; } /// /// @@ -1957,206 +1565,162 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List>? ListType1 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType2 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary>? ListType3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List>? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.Json.g.cs deleted file mode 100644 index 8e9b988..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.g.cs deleted file mode 100644 index 96b9e9b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201( - bool? success, - global::System.Collections.Generic.IList? items, - string? message) - { - this.Success = success; - this.Items = items; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseAttachKnowledgeItemToAgentResponse201() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.Json.g.cs deleted file mode 100644 index 484d89a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseCreateKnowledgeItemResponse201 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseCreateKnowledgeItemResponse201; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.g.cs deleted file mode 100644 index 6fb96fa..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseCreateKnowledgeItemResponse201.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseCreateKnowledgeItemResponse201 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseCreateKnowledgeItemResponse201( - bool? success, - global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseCreateKnowledgeItemResponse201() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.Json.g.cs deleted file mode 100644 index be15646..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseDeleteKnowledgeItemResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseDeleteKnowledgeItemResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.g.cs deleted file mode 100644 index 505bc94..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDeleteKnowledgeItemResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseDeleteKnowledgeItemResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseDeleteKnowledgeItemResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseDeleteKnowledgeItemResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.Json.g.cs deleted file mode 100644 index f1f979f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.g.cs deleted file mode 100644 index 8eb1c68..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - string? message) - { - this.Success = success; - this.Items = items; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseDetachKnowledgeItemFromAgentResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.g.cs deleted file mode 100644 index 9d00d2c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseGetKnowledgeItemResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseGetKnowledgeItemResponse200( - bool? success, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseGetKnowledgeItemResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.Json.g.cs deleted file mode 100644 index 99474a6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseListAgentKnowledgeItemsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.g.cs deleted file mode 100644 index 54c9b8b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseListKnowledgeItemsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pagination")] - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? Pagination { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseListKnowledgeItemsResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? pagination) - { - this.Success = success; - this.Items = items; - this.Pagination = pagination; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseListKnowledgeItemsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.Json.g.cs deleted file mode 100644 index f7cf9b0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentKnowledgeBaseReingestKnowledgeItemResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseReingestKnowledgeItemResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.g.cs deleted file mode 100644 index 6d61d8f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseReingestKnowledgeItemResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentKnowledgeBaseReingestKnowledgeItemResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentKnowledgeBaseReingestKnowledgeItemResponse200( - bool? success, - global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentKnowledgeBaseReingestKnowledgeItemResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.Json.g.cs deleted file mode 100644 index df1c150..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentPhoneNumbersCreatePhoneNumberResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200), - jsonSerializerContext) as global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentPhoneNumbersCreatePhoneNumberResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.g.cs deleted file mode 100644 index 552e86e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersCreatePhoneNumberResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentPhoneNumbersCreatePhoneNumberResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentPhoneNumbersCreatePhoneNumberResponse200( - bool? success, - global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentPhoneNumbersCreatePhoneNumberResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.Json.g.cs deleted file mode 100644 index 43c162f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentPhoneNumbersDeletePhoneNumberResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200), - jsonSerializerContext) as global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentPhoneNumbersDeletePhoneNumberResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.g.cs deleted file mode 100644 index 25db97d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersDeletePhoneNumberResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentPhoneNumbersDeletePhoneNumberResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentPhoneNumbersDeletePhoneNumberResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentPhoneNumbersDeletePhoneNumberResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.Json.g.cs deleted file mode 100644 index 13e616c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentPhoneNumbersForceDeletePhoneNumberResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200), - jsonSerializerContext) as global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentPhoneNumbersForceDeletePhoneNumberResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.g.cs deleted file mode 100644 index e12d72e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersForceDeletePhoneNumberResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentPhoneNumbersForceDeletePhoneNumberResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentPhoneNumbersForceDeletePhoneNumberResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentPhoneNumbersForceDeletePhoneNumberResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.Json.g.cs deleted file mode 100644 index e93211e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentPhoneNumbersGetPhoneNumberResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200), - jsonSerializerContext) as global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentPhoneNumbersGetPhoneNumberResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.Json.g.cs deleted file mode 100644 index 3413f77..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentPhoneNumbersListPhoneNumbersResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200), - jsonSerializerContext) as global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentPhoneNumbersListPhoneNumbersResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.g.cs deleted file mode 100644 index c363993..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersListPhoneNumbersResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentPhoneNumbersListPhoneNumbersResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentPhoneNumbersListPhoneNumbersResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentPhoneNumbersListPhoneNumbersResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.Json.g.cs deleted file mode 100644 index 3766fe2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentToolsCreateAgentToolResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsCreateAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentToolsCreateAgentToolResponse200), - jsonSerializerContext) as global::ResembleAI.AgentToolsCreateAgentToolResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsCreateAgentToolResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsCreateAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsCreateAgentToolResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentToolsCreateAgentToolResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.g.cs deleted file mode 100644 index 4096cfc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsCreateAgentToolResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentToolsCreateAgentToolResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentToolsCreateAgentToolResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentToolsCreateAgentToolResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.Json.g.cs deleted file mode 100644 index 40b317f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentToolsDeleteAgentToolResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsDeleteAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentToolsDeleteAgentToolResponse200), - jsonSerializerContext) as global::ResembleAI.AgentToolsDeleteAgentToolResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsDeleteAgentToolResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsDeleteAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsDeleteAgentToolResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentToolsDeleteAgentToolResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.g.cs deleted file mode 100644 index 33cb796..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsDeleteAgentToolResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentToolsDeleteAgentToolResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentToolsDeleteAgentToolResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentToolsDeleteAgentToolResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.Json.g.cs deleted file mode 100644 index a4e677e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentToolsGetAgentToolResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsGetAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentToolsGetAgentToolResponse200), - jsonSerializerContext) as global::ResembleAI.AgentToolsGetAgentToolResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsGetAgentToolResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsGetAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsGetAgentToolResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentToolsGetAgentToolResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.g.cs deleted file mode 100644 index 869ba90..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsGetAgentToolResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentToolsGetAgentToolResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentToolsGetAgentToolResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentToolsGetAgentToolResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.g.cs deleted file mode 100644 index 3b8123a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentToolsListAgentToolsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentToolsListAgentToolsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentToolsListAgentToolsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.Json.g.cs deleted file mode 100644 index 4599b52..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentToolsUpdateAgentToolResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsUpdateAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentToolsUpdateAgentToolResponse200), - jsonSerializerContext) as global::ResembleAI.AgentToolsUpdateAgentToolResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentToolsUpdateAgentToolResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsUpdateAgentToolResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentToolsUpdateAgentToolResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentToolsUpdateAgentToolResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.g.cs deleted file mode 100644 index 8963e37..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsUpdateAgentToolResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentToolsUpdateAgentToolResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentToolsUpdateAgentToolResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentToolsUpdateAgentToolResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.Json.g.cs deleted file mode 100644 index ef3388b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentWebhooksCreateAgentWebhookResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200), - jsonSerializerContext) as global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentWebhooksCreateAgentWebhookResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.g.cs deleted file mode 100644 index c1d6a51..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksCreateAgentWebhookResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentWebhooksCreateAgentWebhookResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentWebhooksCreateAgentWebhookResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentWebhooksCreateAgentWebhookResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.Json.g.cs deleted file mode 100644 index aad8ad8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentWebhooksDeleteAgentWebhookResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200), - jsonSerializerContext) as global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentWebhooksDeleteAgentWebhookResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.g.cs deleted file mode 100644 index 24f307e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksDeleteAgentWebhookResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentWebhooksDeleteAgentWebhookResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentWebhooksDeleteAgentWebhookResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentWebhooksDeleteAgentWebhookResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.g.cs deleted file mode 100644 index 00b2921..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentWebhooksGetAgentWebhookResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentWebhooksGetAgentWebhookResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentWebhooksGetAgentWebhookResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.Json.g.cs deleted file mode 100644 index 897c351..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentWebhooksListAgentWebhooksResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200), - jsonSerializerContext) as global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksListAgentWebhooksResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksListAgentWebhooksResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentWebhooksListAgentWebhooksResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.g.cs deleted file mode 100644 index 4709af5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksListAgentWebhooksResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentWebhooksListAgentWebhooksResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentWebhooksListAgentWebhooksResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentWebhooksListAgentWebhooksResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.Json.g.cs deleted file mode 100644 index bae39b2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentWebhooksUpdateAgentWebhookResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200), - jsonSerializerContext) as global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentWebhooksUpdateAgentWebhookResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.g.cs deleted file mode 100644 index 8765dd3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksUpdateAgentWebhookResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentWebhooksUpdateAgentWebhookResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentWebhooksUpdateAgentWebhookResponse200( - bool? success, - global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentWebhooksUpdateAgentWebhookResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 34e98ea..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 48f7950..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 0af4462..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 0bb924b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index ab70465..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 53fb932..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 7c1f078..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs deleted file mode 100644 index 710e1b9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.g.cs deleted file mode 100644 index 3f78a70..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs deleted file mode 100644 index 1641650..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType - { - /// - /// - /// - Client, - /// - /// - /// - Webhook, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType value) - { - return value switch - { - AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.Client => "client", - AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.Webhook => "webhook", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType? ToEnum(string value) - { - return value switch - { - "client" => AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.Client, - "webhook" => AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType.Webhook, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index ddf12ef..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index b7e7553..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 037e030..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index f999e86..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs deleted file mode 100644 index 179952b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.g.cs deleted file mode 100644 index f68253f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index bbdbe3a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 812c82a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index c731fad..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 2caf37c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs deleted file mode 100644 index 4dd1065..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs deleted file mode 100644 index 35b0ce0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs deleted file mode 100644 index 25f2f34..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType - { - /// - /// - /// - PostCall, - /// - /// - /// - PreCall, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType value) - { - return value switch - { - AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.PostCall => "post_call", - AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.PreCall => "pre_call", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType? ToEnum(string value) - { - return value switch - { - "post_call" => AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.PostCall, - "pre_call" => AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType.PreCall, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 5425df2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index e315697..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 6c636a0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index e42e6f6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs deleted file mode 100644 index d2ae217..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs deleted file mode 100644 index 24e9829..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index e4cd102..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 5ca4a4d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.Json.g.cs deleted file mode 100644 index a4453cb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems), - jsonSerializerContext) as global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.g.cs deleted file mode 100644 index ee8ae33..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems - { - /// - /// ASR provider name (e.g., "deepgram") - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// Model identifier (e.g., "nova-2") - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Human-readable description of the capability - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// ASR provider name (e.g., "deepgram") - /// - /// - /// Model identifier (e.g., "nova-2") - /// - /// - /// Human-readable description of the capability - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems( - string? provider, - string? model, - string? description) - { - this.Provider = provider; - this.Model = model; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.Json.g.cs deleted file mode 100644 index d0609f2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems), - jsonSerializerContext) as global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.g.cs deleted file mode 100644 index e44f9ea..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems - { - /// - /// LLM provider name (e.g., "openai", "anthropic") - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// Model identifier (e.g., "gpt-4o", "claude-3-5-sonnet-20241022") - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Human-readable description of the capability - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// LLM provider name (e.g., "openai", "anthropic") - /// - /// - /// Model identifier (e.g., "gpt-4o", "claude-3-5-sonnet-20241022") - /// - /// - /// Human-readable description of the capability - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems( - string? provider, - string? model, - string? description) - { - this.Provider = provider; - this.Model = model; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.g.cs deleted file mode 100644 index 545b462..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsCreateAgentResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsCreateAgentResponse200( - bool? success, - global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsCreateAgentResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.Json.g.cs deleted file mode 100644 index 4760963..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsDispatchAgentResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsDispatchAgentResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsDispatchAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsDispatchAgentResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsDispatchAgentResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsDispatchAgentResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsDispatchAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsDispatchAgentResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.g.cs deleted file mode 100644 index fad2098..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDispatchAgentResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsDispatchAgentResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] - public string? CallId { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsDispatchAgentResponse200( - bool? success, - string? callId) - { - this.Success = success; - this.CallId = callId; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsDispatchAgentResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.Json.g.cs deleted file mode 100644 index b7a262c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsGetAgentCapabilitiesResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetAgentCapabilitiesResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsGetAgentCapabilitiesResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsGetAgentCapabilitiesResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetAgentCapabilitiesResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetAgentCapabilitiesResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetAgentCapabilitiesResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsGetAgentCapabilitiesResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.g.cs deleted file mode 100644 index 832ea6b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentCapabilitiesResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsGetAgentCapabilitiesResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("asr_capabilities")] - public global::System.Collections.Generic.IList? AsrCapabilities { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("llm_capabilities")] - public global::System.Collections.Generic.IList? LlmCapabilities { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsGetAgentCapabilitiesResponse200( - bool? success, - global::System.Collections.Generic.IList? asrCapabilities, - global::System.Collections.Generic.IList? llmCapabilities) - { - this.Success = success; - this.AsrCapabilities = asrCapabilities; - this.LlmCapabilities = llmCapabilities; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsGetAgentCapabilitiesResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.g.cs deleted file mode 100644 index 68fe716..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsGetAgentResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsGetAgentResponse200( - bool? success, - global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsGetAgentResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 883248c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index d00ed51..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.Json.g.cs deleted file mode 100644 index 08e1e3c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsGetSystemToolsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetSystemToolsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsGetSystemToolsResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsGetSystemToolsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsGetSystemToolsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetSystemToolsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsGetSystemToolsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsGetSystemToolsResponse200; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.g.cs deleted file mode 100644 index 9a5dfc5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetSystemToolsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsGetSystemToolsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsGetSystemToolsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsGetSystemToolsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs deleted file mode 100644 index b727f93..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaAsr - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.g.cs deleted file mode 100644 index dede73d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsr.g.cs +++ /dev/null @@ -1,76 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaAsr - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Default Value: deepgram - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// Default Value: pcm_16000 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user_input_audio_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter))] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? UserInputAudioFormat { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("keywords")] - public global::System.Collections.Generic.IList? Keywords { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Default Value: deepgram - /// - /// - /// Default Value: pcm_16000 - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsPostRequestBodyContentApplicationJsonSchemaAsr( - string? model, - string? provider, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? userInputAudioFormat, - global::System.Collections.Generic.IList? keywords) - { - this.Model = model; - this.Provider = provider; - this.UserInputAudioFormat = userInputAudioFormat; - this.Keywords = keywords; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaAsr() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs deleted file mode 100644 index f05e0da..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Default Value: pcm_16000 - /// - public enum AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat - { - /// - /// - /// - Pcm16000, - /// - /// - /// - Pcm22050, - /// - /// - /// - Pcm24000, - /// - /// - /// - Pcm44100, - /// - /// - /// - Pcm48000, - /// - /// - /// - Pcm8000, - /// - /// - /// - Ulaw8000, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat value) - { - return value switch - { - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm16000 => "pcm_16000", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm22050 => "pcm_22050", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm24000 => "pcm_24000", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm44100 => "pcm_44100", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm48000 => "pcm_48000", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm8000 => "pcm_8000", - AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Ulaw8000 => "ulaw_8000", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat? ToEnum(string value) - { - return value switch - { - "pcm_16000" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm16000, - "pcm_22050" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm22050, - "pcm_24000" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm24000, - "pcm_44100" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm44100, - "pcm_48000" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm48000, - "pcm_8000" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Pcm8000, - "ulaw_8000" => AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat.Ulaw8000, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs deleted file mode 100644 index 923c90e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public readonly partial struct AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables?; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs deleted file mode 100644 index 6fcdb5f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs +++ /dev/null @@ -1,378 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public readonly partial struct AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 { get; init; } -#else - public string? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1))] -#endif - public bool IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 => AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 != null; - - /// - /// - /// - public bool TryPickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out string? value) - { - value = AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1; - return IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1; - } - - /// - /// - /// - public string PickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1() => IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 - ? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1! - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 { get; init; } -#else - public double? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2))] -#endif - public bool IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 => AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 != null; - - /// - /// - /// - public bool TryPickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out double? value) - { - value = AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2; - return IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2; - } - - /// - /// - /// - public double PickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2() => IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 - ? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public bool? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 { get; init; } -#else - public bool? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3))] -#endif - public bool IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 => AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 != null; - - /// - /// - /// - public bool TryPickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out bool? value) - { - value = AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3; - return IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3; - } - - /// - /// - /// - public bool PickAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3() => IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 - ? AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3!.Value - : throw new global::System.InvalidOperationException($"Expected union variant 'AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(string value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables((string?)value); - - /// - /// - /// - public static implicit operator string?(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables @this) => @this.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1; - - /// - /// - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(string? value) - { - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = value; - } - - /// - /// - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables FromAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1(string? value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(value); - - /// - /// - /// - public static implicit operator AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(double value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables((double?)value); - - /// - /// - /// - public static implicit operator double?(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables @this) => @this.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2; - - /// - /// - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(double? value) - { - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = value; - } - - /// - /// - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables FromAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2(double? value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(value); - - /// - /// - /// - public static implicit operator AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(bool value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables((bool?)value); - - /// - /// - /// - public static implicit operator bool?(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables @this) => @this.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3; - - /// - /// - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(bool? value) - { - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = value; - } - - /// - /// - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables FromAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3(bool? value) => new AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables(value); - - /// - /// - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables( - string? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1, - double? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2, - bool? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 - ) - { - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1; - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2; - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3; - } - - /// - /// - /// - public object? Object => - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 as object ?? - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 as object ?? - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1?.ToString() ?? - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2?.ToString() ?? - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3?.ToString().ToLowerInvariant() - ; - - /// - /// - /// - public bool Validate() - { - return IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 && !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 && !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 || !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 && IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 && !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 || !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 && !IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 && IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = null, - global::System.Func? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = null, - global::System.Func? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 != null) - { - return agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 != null) - { - return agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 && agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 != null) - { - return agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = null, - - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = null, - - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1 = null, - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2 = null, - global::System.Action? agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2!); - } - else if (IsAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3) - { - agentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3?.Invoke(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1, - typeof(string), - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2, - typeof(double), - AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3, - typeof(bool), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1, other.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2, other.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3, other.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesVariant3) - ; - } - - /// - /// - /// - public static bool operator ==(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables obj1, AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables obj1, AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables o && Equals(o); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs deleted file mode 100644 index fa7ab54..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaLlm - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.g.cs deleted file mode 100644 index dac2680..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlm.g.cs +++ /dev/null @@ -1,98 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaLlm - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - public string? Prompt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - public string? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_effort")] - public string? ReasoningEffort { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] - public string? Timezone { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("built_in_tools")] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? BuiltInTools { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsPostRequestBodyContentApplicationJsonSchemaLlm( - string? prompt, - string? provider, - string? model, - string? reasoningEffort, - double? temperature, - string? timezone, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? builtInTools) - { - this.Prompt = prompt; - this.Provider = provider; - this.Model = model; - this.ReasoningEffort = reasoningEffort; - this.Temperature = temperature; - this.Timezone = timezone; - this.BuiltInTools = builtInTools; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaLlm() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.Json.g.cs deleted file mode 100644 index 5fe0dff..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.g.cs deleted file mode 100644 index ceb2b91..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs deleted file mode 100644 index 2efde0e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// RAG search strategy - speed (faster) or accuracy (more thorough)
- /// Default Value: accuracy - ///
- public enum AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode - { - /// - /// - /// - Accuracy, - /// - /// - /// - Speed, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode value) - { - return value switch - { - AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.Accuracy => "accuracy", - AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.Speed => "speed", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? ToEnum(string value) - { - return value switch - { - "accuracy" => AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.Accuracy, - "speed" => AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode.Speed, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs deleted file mode 100644 index c68fce6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.g.cs deleted file mode 100644 index 04e6103..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs deleted file mode 100644 index 9415f20..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaTurn - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.g.cs deleted file mode 100644 index c82c751..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurn.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaTurn - { - /// - /// Default Value: 7 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("turn_timeout")] - public int? TurnTimeout { get; set; } - - /// - /// Default Value: -1 - /// - [global::System.Text.Json.Serialization.JsonPropertyName("silence_end_call_timeout")] - public int? SilenceEndCallTimeout { get; set; } - - /// - /// Default Value: silence - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter))] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? Mode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Default Value: 7 - /// - /// - /// Default Value: -1 - /// - /// - /// Default Value: silence - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsPostRequestBodyContentApplicationJsonSchemaTurn( - int? turnTimeout, - int? silenceEndCallTimeout, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? mode) - { - this.TurnTimeout = turnTimeout; - this.SilenceEndCallTimeout = silenceEndCallTimeout; - this.Mode = mode; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsPostRequestBodyContentApplicationJsonSchemaTurn() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs deleted file mode 100644 index eb7ac5a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Default Value: silence - /// - public enum AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode - { - /// - /// - /// - Silence, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode value) - { - return value switch - { - AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.Silence => "silence", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode? ToEnum(string value) - { - return value switch - { - "silence" => AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode.Silence, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.Json.g.cs deleted file mode 100644 index 1b6b9d6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems), - jsonSerializerContext) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.g.cs deleted file mode 100644 index 64ac4db..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 4b0f667..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 8179b55..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 0e371cd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.g.cs deleted file mode 100644 index e8a4682..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUpdateAgentResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? Item { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AgentsUpdateAgentResponse200( - bool? success, - global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? item, - string? message) - { - this.Success = success; - this.Item = item; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public AgentsUpdateAgentResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs deleted file mode 100644 index 33bf03a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext) as global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs deleted file mode 100644 index 08c9945..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Runtime variable overrides - /// - public sealed partial class AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index dc07160..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs deleted file mode 100644 index 722f395..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.g.cs deleted file mode 100644 index d519e37..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs deleted file mode 100644 index 5845c05..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs deleted file mode 100644 index 5e12d09..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs deleted file mode 100644 index 133b52b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.g.cs deleted file mode 100644 index a33c262..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs deleted file mode 100644 index e28ce84..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// RAG search strategy - /// - public enum AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode - { - /// - /// - /// - Accuracy, - /// - /// - /// - Speed, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode value) - { - return value switch - { - AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.Accuracy => "accuracy", - AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.Speed => "speed", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? ToEnum(string value) - { - return value switch - { - "accuracy" => AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.Accuracy, - "speed" => AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode.Speed, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs deleted file mode 100644 index 53af0a5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.g.cs deleted file mode 100644 index a869236..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs deleted file mode 100644 index 6de36d8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.g.cs deleted file mode 100644 index bcd514c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index eedd663..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AgentsUuidPatchResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 9e35609..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AgentsUuidPatchResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.Json.g.cs deleted file mode 100644 index f754e50..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AttachKnowledgeItemToAgentRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AttachKnowledgeItemToAgentRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AttachKnowledgeItemToAgentRequest), - jsonSerializerContext) as global::ResembleAI.AttachKnowledgeItemToAgentRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AttachKnowledgeItemToAgentRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AttachKnowledgeItemToAgentRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.AttachKnowledgeItemToAgentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AttachKnowledgeItemToAgentRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.g.cs deleted file mode 100644 index 82cf4c4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AttachKnowledgeItemToAgentRequest.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AttachKnowledgeItemToAgentRequest - { - /// - /// The UUID of the knowledge item to attach - /// - [global::System.Text.Json.Serialization.JsonPropertyName("knowledge_item_uuid")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid KnowledgeItemUuid { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The UUID of the knowledge item to attach - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AttachKnowledgeItemToAgentRequest( - global::System.Guid knowledgeItemUuid) - { - this.KnowledgeItemUuid = knowledgeItemUuid; - } - - /// - /// Initializes a new instance of the class. - /// - public AttachKnowledgeItemToAgentRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.g.cs deleted file mode 100644 index 339808b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.g.cs +++ /dev/null @@ -1,154 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAgentRequest - { - /// - /// - /// - [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("voice_uuid")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string VoiceUuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phone_number_id")] - public int? PhoneNumberId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("languages")] - public global::System.Collections.Generic.IList? Languages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dynamic_variables")] - public object? DynamicVariables { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("asr")] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? Asr { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("turn")] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? Turn { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("llm")] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? Llm { get; set; } - - /// - /// RAG search strategy - speed (faster) or accuracy (more thorough)
- /// Default Value: accuracy - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("search_mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter))] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? SearchMode { get; set; } - - /// - /// Number of relevant chunks to retrieve per query for RAG
- /// Default Value: 8 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_chunks_per_query")] - public int? MaxChunksPerQuery { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhooks")] - public global::System.Collections.Generic.IList? Webhooks { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("system_tools")] - public global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? SystemTools { 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. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - speed (faster) or accuracy (more thorough)
- /// Default Value: accuracy - /// - /// - /// Number of relevant chunks to retrieve per query for RAG
- /// Default Value: 8 - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAgentRequest( - string name, - string voiceUuid, - int? phoneNumberId, - global::System.Collections.Generic.IList? languages, - object? dynamicVariables, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsr? asr, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurn? turn, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaLlm? llm, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode? searchMode, - int? maxChunksPerQuery, - global::System.Collections.Generic.IList? webhooks, - global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools? systemTools) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.VoiceUuid = voiceUuid ?? throw new global::System.ArgumentNullException(nameof(voiceUuid)); - this.PhoneNumberId = phoneNumberId; - this.Languages = languages; - this.DynamicVariables = dynamicVariables; - this.Asr = asr; - this.Turn = turn; - this.Llm = llm; - this.SearchMode = searchMode; - this.MaxChunksPerQuery = maxChunksPerQuery; - this.Webhooks = webhooks; - this.SystemTools = systemTools; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAgentRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.g.cs deleted file mode 100644 index a2d2ef0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.g.cs +++ /dev/null @@ -1,76 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAgentToolRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType ToolType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig ToolConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAgentToolRequest( - string name, - string description, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType toolType, - global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig toolConfig) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.ToolType = toolType; - this.ToolConfig = toolConfig ?? throw new global::System.ArgumentNullException(nameof(toolConfig)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAgentToolRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.Json.g.cs deleted file mode 100644 index e26e995..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateAgentWebhookRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateAgentWebhookRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateAgentWebhookRequest), - jsonSerializerContext) as global::ResembleAI.CreateAgentWebhookRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateAgentWebhookRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreateAgentWebhookRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreateAgentWebhookRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAgentWebhookRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.g.cs deleted file mode 100644 index 0db91a9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentWebhookRequest.g.cs +++ /dev/null @@ -1,56 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAgentWebhookRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType WebhookType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig WebhookConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAgentWebhookRequest( - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType webhookType, - global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig webhookConfig) - { - this.WebhookType = webhookType; - this.WebhookConfig = webhookConfig ?? throw new global::System.ArgumentNullException(nameof(webhookConfig)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAgentWebhookRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.Json.g.cs deleted file mode 100644 index 71ac56b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateKnowledgeItemRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateKnowledgeItemRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateKnowledgeItemRequest), - jsonSerializerContext) as global::ResembleAI.CreateKnowledgeItemRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateKnowledgeItemRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreateKnowledgeItemRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreateKnowledgeItemRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateKnowledgeItemRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.g.cs deleted file mode 100644 index aaa576c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateKnowledgeItemRequest.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateKnowledgeItemRequest - { - /// - /// Title of the knowledge item - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Title { get; set; } - - /// - /// Description of the knowledge item - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } - - /// - /// Type of knowledge source - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType SourceType { get; set; } - - /// - /// Required when source_type is url - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - - /// - /// Required when source_type is text - /// - [global::System.Text.Json.Serialization.JsonPropertyName("raw_text")] - public string? RawText { 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. - /// - /// - /// Title of the knowledge item - /// - /// - /// Description of the knowledge item - /// - /// - /// Type of knowledge source - /// - /// - /// Required when source_type is url - /// - /// - /// Required when source_type is text - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateKnowledgeItemRequest( - string title, - string description, - global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType sourceType, - string? url, - string? rawText) - { - this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.SourceType = sourceType; - this.Url = url; - this.RawText = rawText; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateKnowledgeItemRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.Json.g.cs deleted file mode 100644 index 011ca0b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreatePhoneNumberRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreatePhoneNumberRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreatePhoneNumberRequest), - jsonSerializerContext) as global::ResembleAI.CreatePhoneNumberRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreatePhoneNumberRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreatePhoneNumberRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.CreatePhoneNumberRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreatePhoneNumberRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.g.cs deleted file mode 100644 index 5941f3f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePhoneNumberRequest.g.cs +++ /dev/null @@ -1,125 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreatePhoneNumberRequest - { - /// - /// E.164 formatted phone number - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phone_number")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PhoneNumber { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("label")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Label { get; set; } - - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("supports_inbound")] - public bool? SupportsInbound { get; set; } - - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("supports_outbound")] - public bool? SupportsOutbound { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter))] - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("twilio_account_sid")] - public string? TwilioAccountSid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("twilio_auth_token")] - public string? TwilioAuthToken { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("outbound_trunk")] - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? OutboundTrunk { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inbound_trunk")] - public global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? InboundTrunk { 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. - /// - /// - /// E.164 formatted phone number - /// - /// - /// - /// Default Value: false - /// - /// - /// Default Value: false - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreatePhoneNumberRequest( - string phoneNumber, - string label, - bool? supportsInbound, - bool? supportsOutbound, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? provider, - string? twilioAccountSid, - string? twilioAuthToken, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? outboundTrunk, - global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? inboundTrunk) - { - this.PhoneNumber = phoneNumber ?? throw new global::System.ArgumentNullException(nameof(phoneNumber)); - this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); - this.SupportsInbound = supportsInbound; - this.SupportsOutbound = supportsOutbound; - this.Provider = provider; - this.TwilioAccountSid = twilioAccountSid; - this.TwilioAuthToken = twilioAuthToken; - this.OutboundTrunk = outboundTrunk; - this.InboundTrunk = inboundTrunk; - } - - /// - /// Initializes a new instance of the class. - /// - public CreatePhoneNumberRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.Json.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.Json.g.cs index 9c21a2f..f3948dd 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class UpdateAgentRequest + public sealed partial class DetectAgent { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.UpdateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgent? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.UpdateAgentRequest), - jsonSerializerContext) as global::ResembleAI.UpdateAgentRequest; + typeof(global::ResembleAI.DetectAgent), + jsonSerializerContext) as global::ResembleAI.DetectAgent; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.UpdateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgent? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.UpdateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgent? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.UpdateAgentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateAgentRequest; + typeof(global::ResembleAI.DetectAgent), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgent; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.g.cs new file mode 100644 index 0000000..fd1a25b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgent.g.cs @@ -0,0 +1,174 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// A Resemble-managed Detect Agent available to the authenticated team. + /// + public sealed partial class DetectAgent + { + /// + /// Stable Detect Agent identifier. Currently the same as `uuid` and `preset_id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Stable identifier used by the run and history endpoints. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uuid { get; set; } + + /// + /// Resemble-managed Detect Agent identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("preset_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PresetId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Verification workflow handled by the Detect Agent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Managed investigation depth. Informational and read-only. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.DetectAgentTierJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentTier Tier { get; set; } + + /// + /// Read-only preview of patterns learned from previous investigations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("memory_preview")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string MemoryPreview { get; set; } + + /// + /// Read-only feature flags for a managed Detect Agent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentCapabilities Capabilities { get; set; } + + /// + /// Short description derived from the Detect Agent's managed instructions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tagline")] + public string? Tagline { get; set; } + + /// + /// Whether this team has initialized backing state for the Detect Agent by running it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("activated")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Activated { get; set; } + + /// + /// Team backing-state creation time, or null before the first investigation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime? CreatedAt { get; set; } + + /// + /// Team backing-state update time, or null before the first investigation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime? UpdatedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Stable Detect Agent identifier. Currently the same as `uuid` and `preset_id`. + /// + /// + /// Stable identifier used by the run and history endpoints. + /// + /// + /// Resemble-managed Detect Agent identifier. + /// + /// + /// + /// Managed investigation depth. Informational and read-only. + /// + /// + /// Read-only preview of patterns learned from previous investigations. + /// + /// + /// Read-only feature flags for a managed Detect Agent. + /// + /// + /// Whether this team has initialized backing state for the Detect Agent by running it. + /// + /// + /// Verification workflow handled by the Detect Agent. + /// + /// + /// Short description derived from the Detect Agent's managed instructions. + /// + /// + /// Team backing-state creation time, or null before the first investigation. + /// + /// + /// Team backing-state update time, or null before the first investigation. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgent( + string id, + string uuid, + string presetId, + string name, + global::ResembleAI.DetectAgentTier tier, + string memoryPreview, + global::ResembleAI.DetectAgentCapabilities capabilities, + bool activated, + string? description, + string? tagline, + global::System.DateTime? createdAt, + global::System.DateTime? updatedAt) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Uuid = uuid ?? throw new global::System.ArgumentNullException(nameof(uuid)); + this.PresetId = presetId ?? throw new global::System.ArgumentNullException(nameof(presetId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Tier = tier; + this.MemoryPreview = memoryPreview ?? throw new global::System.ArgumentNullException(nameof(memoryPreview)); + this.Capabilities = capabilities ?? throw new global::System.ArgumentNullException(nameof(capabilities)); + this.Tagline = tagline; + this.Activated = activated; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgent() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.Json.g.cs new file mode 100644 index 0000000..a7b3c68 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class DetectAgentCapabilities + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.DetectAgentCapabilities? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.DetectAgentCapabilities), + jsonSerializerContext) as global::ResembleAI.DetectAgentCapabilities; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.DetectAgentCapabilities? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.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::ResembleAI.DetectAgentCapabilities? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.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::ResembleAI.DetectAgentCapabilities), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentCapabilities; + } + + /// + /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.g.cs new file mode 100644 index 0000000..8280104 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentCapabilities.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Read-only feature flags for a managed Detect Agent. + /// + public sealed partial class DetectAgentCapabilities + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("media")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Media { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reverse_search")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool ReverseSearch { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("identity")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Identity { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("grounding")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Grounding { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("structured")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Structured { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("knowledge")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Knowledge { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgentCapabilities( + bool media, + bool reverseSearch, + bool identity, + bool grounding, + bool structured, + bool tools, + bool knowledge) + { + this.Media = media; + this.ReverseSearch = reverseSearch; + this.Identity = identity; + this.Grounding = grounding; + this.Structured = structured; + this.Tools = tools; + this.Knowledge = knowledge; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgentCapabilities() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.Json.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.Json.g.cs index 8dc0617..5db11bb 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class CreateAgentRequest + public sealed partial class DetectAgentRun { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRun? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.CreateAgentRequest), - jsonSerializerContext) as global::ResembleAI.CreateAgentRequest; + typeof(global::ResembleAI.DetectAgentRun), + jsonSerializerContext) as global::ResembleAI.DetectAgentRun; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRun? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.CreateAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRun? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.CreateAgentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAgentRequest; + typeof(global::ResembleAI.DetectAgentRun), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRun; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.g.cs new file mode 100644 index 0000000..13d3645 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRun.g.cs @@ -0,0 +1,172 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class DetectAgentRun + { + /// + /// Investigation run identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Uuid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunSummaryStatus Status { get; set; } + + /// + /// Compact result summary derived from the investigation transcript. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunResult Result { get; set; } + + /// + /// Submitted investigation inputs. Null-valued fields are omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunSummaryInputs Inputs { get; set; } + + /// + /// Whether primary uploaded media is attached to this run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_media")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasMedia { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime? CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime? UpdatedAt { get; set; } + + /// + /// Public investigation events. Internal cost events are omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + public global::System.Collections.Generic.IList? Transcript { get; set; } + + /// + /// Exact managed configuration used for the investigation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config_snapshot")] + public object? ConfigSnapshot { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("memory_before")] + public string? MemoryBefore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("memory_after")] + public string? MemoryAfter { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } + + /// + /// Relative URL for uploaded primary media, or null when the run used a public URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("media_url")] + public string? MediaUrl { 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. + /// + /// + /// Investigation run identifier. + /// + /// + /// + /// Compact result summary derived from the investigation transcript. + /// + /// + /// Submitted investigation inputs. Null-valued fields are omitted. + /// + /// + /// Whether primary uploaded media is attached to this run. + /// + /// + /// + /// + /// Public investigation events. Internal cost events are omitted. + /// + /// + /// Exact managed configuration used for the investigation. + /// + /// + /// + /// + /// + /// Relative URL for uploaded primary media, or null when the run used a public URL. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgentRun( + global::System.Guid uuid, + global::ResembleAI.DetectAgentRunSummaryStatus status, + global::ResembleAI.DetectAgentRunResult result, + global::ResembleAI.DetectAgentRunSummaryInputs inputs, + bool hasMedia, + global::System.DateTime? createdAt, + global::System.DateTime? updatedAt, + global::System.Collections.Generic.IList? transcript, + object? configSnapshot, + string? memoryBefore, + string? memoryAfter, + string? error, + string? mediaUrl) + { + this.Uuid = uuid; + this.Status = status; + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); + this.HasMedia = hasMedia; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.Transcript = transcript; + this.ConfigSnapshot = configSnapshot; + this.MemoryBefore = memoryBefore; + this.MemoryAfter = memoryAfter; + this.Error = error; + this.MediaUrl = mediaUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgentRun() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.Json.g.cs index 732a934..b0de8f5 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUpdateAgentResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentsUpdateAgentResponse200 + public sealed partial class DetectAgentRunConfigSnapshot { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentsUpdateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentsUpdateAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsUpdateAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunConfigSnapshot), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunConfigSnapshot; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentsUpdateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentsUpdateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentsUpdateAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsUpdateAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunConfigSnapshot), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunConfigSnapshot; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.g.cs similarity index 78% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.g.cs index 3315be4..d472c75 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot.g.cs @@ -4,9 +4,9 @@ namespace ResembleAI { /// - /// + /// Exact managed configuration used for the investigation. /// - public sealed partial class AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems + public sealed partial class DetectAgentRunConfigSnapshot { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.Json.g.cs index 519b842..e69a920 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentsDeleteAgentResponse200 + public sealed partial class DetectAgentRunConfigSnapshot2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentsDeleteAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentsDeleteAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsDeleteAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunConfigSnapshot2), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunConfigSnapshot2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentsDeleteAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentsDeleteAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunConfigSnapshot2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentsDeleteAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsDeleteAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunConfigSnapshot2), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunConfigSnapshot2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.g.cs index 6a07181..8079de5 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunConfigSnapshot2.g.cs @@ -6,7 +6,7 @@ namespace ResembleAI /// /// Any type /// - public sealed partial class UpdateAgentRequestWebhook + public sealed partial class DetectAgentRunConfigSnapshot2 { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.Json.g.cs similarity index 88% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.Json.g.cs index 8de043d..6bf357c 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class DispatchAgentRequest + public sealed partial class DetectAgentRunResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.DispatchAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRunResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.DispatchAgentRequest), - jsonSerializerContext) as global::ResembleAI.DispatchAgentRequest; + typeof(global::ResembleAI.DetectAgentRunResult), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.DispatchAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRunResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.DispatchAgentRequest? FromJson( + public static global::ResembleAI.DetectAgentRunResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.DispatchAgentRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DispatchAgentRequest; + typeof(global::ResembleAI.DetectAgentRunResult), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.g.cs new file mode 100644 index 0000000..71da398 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResult.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Compact result summary derived from the investigation transcript. + /// + public sealed partial class DetectAgentRunResult + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("verdict")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter))] + public global::ResembleAI.OneOf? Verdict { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recommended_action")] + public string? RecommendedAction { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + public string? Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + public double? Score { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_ran")] + public bool? AgentRan { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgentRunResult( + global::ResembleAI.OneOf? verdict, + string? recommendedAction, + double? confidence, + string? label, + double? score, + bool? agentRan) + { + this.Verdict = verdict; + this.RecommendedAction = recommendedAction; + this.Confidence = confidence; + this.Label = label; + this.Score = score; + this.AgentRan = agentRan; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgentRunResult() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.Json.g.cs index 260733c..cf073c2 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentsListAgentsResponse200 + public sealed partial class DetectAgentRunResultVerdict { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentsListAgentsResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunResultVerdict? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentsListAgentsResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsListAgentsResponse200; + typeof(global::ResembleAI.DetectAgentRunResultVerdict), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunResultVerdict; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentsListAgentsResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunResultVerdict? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentsListAgentsResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunResultVerdict? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentsListAgentsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsListAgentsResponse200; + typeof(global::ResembleAI.DetectAgentRunResultVerdict), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunResultVerdict; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.g.cs similarity index 58% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.g.cs index 60b20f9..b4bb9d2 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsDeleteAgentResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunResultVerdict.g.cs @@ -6,19 +6,19 @@ namespace ResembleAI /// /// /// - public sealed partial class AgentsDeleteAgentResponse200 + public sealed partial class DetectAgentRunResultVerdict { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("forced")] + public bool? Forced { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("excerpt")] + public string? Excerpt { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +27,25 @@ public sealed partial class AgentsDeleteAgentResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AgentsDeleteAgentResponse200( - bool? success, - string? message) + public DetectAgentRunResultVerdict( + bool? forced, + string? excerpt) { - this.Success = success; - this.Message = message; + this.Forced = forced; + this.Excerpt = excerpt; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AgentsDeleteAgentResponse200() + public DetectAgentRunResultVerdict() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.Json.g.cs index 25d130e..d25268e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentToolRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class CreateAgentToolRequest + public sealed partial class DetectAgentRunSummary { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentToolRequest? FromJson( + public static global::ResembleAI.DetectAgentRunSummary? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.CreateAgentToolRequest), - jsonSerializerContext) as global::ResembleAI.CreateAgentToolRequest; + typeof(global::ResembleAI.DetectAgentRunSummary), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunSummary; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentToolRequest? FromJson( + public static global::ResembleAI.DetectAgentRunSummary? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.CreateAgentToolRequest? FromJson( + public static global::ResembleAI.DetectAgentRunSummary? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.CreateAgentToolRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAgentToolRequest; + typeof(global::ResembleAI.DetectAgentRunSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunSummary; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.g.cs new file mode 100644 index 0000000..327f2d9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummary.g.cs @@ -0,0 +1,112 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class DetectAgentRunSummary + { + /// + /// Investigation run identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Uuid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunSummaryStatus Status { get; set; } + + /// + /// Compact result summary derived from the investigation transcript. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunResult Result { get; set; } + + /// + /// Submitted investigation inputs. Null-valued fields are omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRunSummaryInputs Inputs { get; set; } + + /// + /// Whether primary uploaded media is attached to this run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_media")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasMedia { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime? CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime? UpdatedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Investigation run identifier. + /// + /// + /// + /// Compact result summary derived from the investigation transcript. + /// + /// + /// Submitted investigation inputs. Null-valued fields are omitted. + /// + /// + /// Whether primary uploaded media is attached to this run. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgentRunSummary( + global::System.Guid uuid, + global::ResembleAI.DetectAgentRunSummaryStatus status, + global::ResembleAI.DetectAgentRunResult result, + global::ResembleAI.DetectAgentRunSummaryInputs inputs, + bool hasMedia, + global::System.DateTime? createdAt, + global::System.DateTime? updatedAt) + { + this.Uuid = uuid; + this.Status = status; + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); + this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs)); + this.HasMedia = hasMedia; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgentRunSummary() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.Json.g.cs index d5481ec..00fe34e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsGetAgentResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentsGetAgentResponse200 + public sealed partial class DetectAgentRunSummaryInputs { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentsGetAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunSummaryInputs? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentsGetAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsGetAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunSummaryInputs), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunSummaryInputs; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentsGetAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunSummaryInputs? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentsGetAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunSummaryInputs? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentsGetAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsGetAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunSummaryInputs), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunSummaryInputs; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.g.cs new file mode 100644 index 0000000..5a16a69 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryInputs.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Submitted investigation inputs. Null-valued fields are omitted. + /// + public sealed partial class DetectAgentRunSummaryInputs + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("check_urls")] + public string? CheckUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DetectAgentRunSummaryInputs( + string? query, + string? url, + string? filename, + string? checkUrls) + { + this.Query = query; + this.Url = url; + this.Filename = filename; + this.CheckUrls = checkUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public DetectAgentRunSummaryInputs() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryStatus.g.cs similarity index 52% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersSourceType.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryStatus.g.cs index 57aa8a4..aedcf86 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersSourceType.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunSummaryStatus.g.cs @@ -6,50 +6,50 @@ namespace ResembleAI /// /// /// - public enum KnowledgeItemsGetParametersSourceType + public enum DetectAgentRunSummaryStatus { /// /// /// - Document, + Completed, /// /// /// - Text, + Error, /// /// /// - Url, + Running, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class KnowledgeItemsGetParametersSourceTypeExtensions + public static class DetectAgentRunSummaryStatusExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this KnowledgeItemsGetParametersSourceType value) + public static string ToValueString(this DetectAgentRunSummaryStatus value) { return value switch { - KnowledgeItemsGetParametersSourceType.Document => "document", - KnowledgeItemsGetParametersSourceType.Text => "text", - KnowledgeItemsGetParametersSourceType.Url => "url", + DetectAgentRunSummaryStatus.Completed => "completed", + DetectAgentRunSummaryStatus.Error => "error", + DetectAgentRunSummaryStatus.Running => "running", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static KnowledgeItemsGetParametersSourceType? ToEnum(string value) + public static DetectAgentRunSummaryStatus? ToEnum(string value) { return value switch { - "document" => KnowledgeItemsGetParametersSourceType.Document, - "text" => KnowledgeItemsGetParametersSourceType.Text, - "url" => KnowledgeItemsGetParametersSourceType.Url, + "completed" => DetectAgentRunSummaryStatus.Completed, + "error" => DetectAgentRunSummaryStatus.Error, + "running" => DetectAgentRunSummaryStatus.Running, _ => null, }; } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.Json.g.cs index 8a7bea6..bb65bd3 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsCreateAgentResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentsCreateAgentResponse200 + public sealed partial class DetectAgentRunTranscriptItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentsCreateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunTranscriptItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentsCreateAgentResponse200), - jsonSerializerContext) as global::ResembleAI.AgentsCreateAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunTranscriptItem), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunTranscriptItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentsCreateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunTranscriptItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentsCreateAgentResponse200? FromJson( + public static global::ResembleAI.DetectAgentRunTranscriptItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentsCreateAgentResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentsCreateAgentResponse200; + typeof(global::ResembleAI.DetectAgentRunTranscriptItem), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunTranscriptItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.g.cs index fb1f248..e979c86 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem.g.cs @@ -6,7 +6,7 @@ namespace ResembleAI /// /// /// - public sealed partial class CreateAgentRequestDynamicVariables + public sealed partial class DetectAgentRunTranscriptItem { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.Json.g.cs new file mode 100644 index 0000000..8554c23 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class DetectAgentRunTranscriptItem2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ResembleAI.DetectAgentRunTranscriptItem2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.DetectAgentRunTranscriptItem2), + jsonSerializerContext) as global::ResembleAI.DetectAgentRunTranscriptItem2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.DetectAgentRunTranscriptItem2? FromJson( + string json) + { + return FromJson( + json, + global::ResembleAI.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::ResembleAI.DetectAgentRunTranscriptItem2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::ResembleAI.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::ResembleAI.DetectAgentRunTranscriptItem2), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentRunTranscriptItem2; + } + + /// + /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.g.cs similarity index 83% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.g.cs index 47d5669..9d064c8 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentRunTranscriptItem2.g.cs @@ -4,9 +4,9 @@ namespace ResembleAI { /// - /// + /// Any type /// - public sealed partial class AgentsUuidGetResponsesContentApplicationJsonSchemaItem + public sealed partial class DetectAgentRunTranscriptItem2 { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentTier.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentTier.g.cs new file mode 100644 index 0000000..e82eb7c --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentTier.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Managed investigation depth. Informational and read-only. + /// + public enum DetectAgentTier + { + /// + /// + /// + Forensic, + /// + /// + /// + Investigation, + /// + /// + /// + Triage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DetectAgentTierExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DetectAgentTier value) + { + return value switch + { + DetectAgentTier.Forensic => "forensic", + DetectAgentTier.Investigation => "investigation", + DetectAgentTier.Triage => "triage", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DetectAgentTier? ToEnum(string value) + { + return value switch + { + "forensic" => DetectAgentTier.Forensic, + "investigation" => DetectAgentTier.Investigation, + "triage" => DetectAgentTier.Triage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.Json.g.cs similarity index 83% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.Json.g.cs index c6d1736..6feb938 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListKnowledgeItemsResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentKnowledgeBaseListKnowledgeItemsResponse200 + public sealed partial class DetectAgentsGetDetectAgentInvestigationRunResponse200 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200? FromJson( + public static global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200; + typeof(global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200), + jsonSerializerContext) as global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200? FromJson( + public static global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200? FromJson( + public static global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseListKnowledgeItemsResponse200; + typeof(global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.g.cs similarity index 55% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.g.cs index 7a299cf..eacefa1 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentPhoneNumbersGetPhoneNumberResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsGetDetectAgentInvestigationRunResponse200.g.cs @@ -6,19 +6,21 @@ namespace ResembleAI /// /// /// - public sealed partial class AgentPhoneNumbersGetPhoneNumberResponse200 + public sealed partial class DetectAgentsGetDetectAgentInvestigationRunResponse200 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? Item { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.DetectAgentRun Item { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -27,25 +29,25 @@ public sealed partial class AgentPhoneNumbersGetPhoneNumberResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AgentPhoneNumbersGetPhoneNumberResponse200( - bool? success, - global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? item) + public DetectAgentsGetDetectAgentInvestigationRunResponse200( + bool success, + global::ResembleAI.DetectAgentRun item) { this.Success = success; - this.Item = item; + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AgentPhoneNumbersGetPhoneNumberResponse200() + public DetectAgentsGetDetectAgentInvestigationRunResponse200() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.Json.g.cs similarity index 82% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.Json.g.cs index 1704586..81e8f56 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseGetKnowledgeItemResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentKnowledgeBaseGetKnowledgeItemResponse200 + public sealed partial class DetectAgentsListDetectAgentInvestigationRunsResponse200 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200), - jsonSerializerContext) as global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200; + typeof(global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200), + jsonSerializerContext) as global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentKnowledgeBaseGetKnowledgeItemResponse200; + typeof(global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.g.cs similarity index 55% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.g.cs index 998b828..a6ac2a9 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentKnowledgeBaseListAgentKnowledgeItemsResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentInvestigationRunsResponse200.g.cs @@ -6,25 +6,28 @@ namespace ResembleAI /// /// /// - public sealed partial class AgentKnowledgeBaseListAgentKnowledgeItemsResponse200 + public sealed partial class DetectAgentsListDetectAgentInvestigationRunsResponse200 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required int Count { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +36,7 @@ public sealed partial class AgentKnowledgeBaseListAgentKnowledgeItemsResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -41,20 +44,20 @@ public sealed partial class AgentKnowledgeBaseListAgentKnowledgeItemsResponse200 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AgentKnowledgeBaseListAgentKnowledgeItemsResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - int? count) + public DetectAgentsListDetectAgentInvestigationRunsResponse200( + bool success, + global::System.Collections.Generic.IList items, + int count) { this.Success = success; - this.Items = items; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); this.Count = count; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AgentKnowledgeBaseListAgentKnowledgeItemsResponse200() + public DetectAgentsListDetectAgentInvestigationRunsResponse200() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.Json.g.cs index d961252..ec6feb6 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentWebhooksGetAgentWebhookResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentWebhooksGetAgentWebhookResponse200 + public sealed partial class DetectAgentsListDetectAgentsResponse200 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentsResponse200? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200), - jsonSerializerContext) as global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200; + typeof(global::ResembleAI.DetectAgentsListDetectAgentsResponse200), + jsonSerializerContext) as global::ResembleAI.DetectAgentsListDetectAgentsResponse200; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentsResponse200? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200? FromJson( + public static global::ResembleAI.DetectAgentsListDetectAgentsResponse200? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentWebhooksGetAgentWebhookResponse200; + typeof(global::ResembleAI.DetectAgentsListDetectAgentsResponse200), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectAgentsListDetectAgentsResponse200; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.g.cs similarity index 58% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.g.cs index a3e1c18..c7892b3 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsListAgentsResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectAgentsListDetectAgentsResponse200.g.cs @@ -6,25 +6,28 @@ namespace ResembleAI /// /// /// - public sealed partial class AgentsListAgentsResponse200 + public sealed partial class DetectAgentsListDetectAgentsResponse200 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required int Count { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -33,7 +36,7 @@ public sealed partial class AgentsListAgentsResponse200 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -41,20 +44,20 @@ public sealed partial class AgentsListAgentsResponse200 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AgentsListAgentsResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - int? count) + public DetectAgentsListDetectAgentsResponse200( + bool success, + global::System.Collections.Generic.IList items, + int count) { this.Success = success; - this.Items = items; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); this.Count = count; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AgentsListAgentsResponse200() + public DetectAgentsListDetectAgentsResponse200() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.g.cs deleted file mode 100644 index 2e97deb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DispatchAgentRequest.g.cs +++ /dev/null @@ -1,58 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DispatchAgentRequest - { - /// - /// Destination phone number - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phone_number")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PhoneNumber { get; set; } - - /// - /// Runtime variable overrides - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dynamic_variables")] - public global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? DynamicVariables { 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. - /// - /// - /// Destination phone number - /// - /// - /// Runtime variable overrides - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DispatchAgentRequest( - string phoneNumber, - global::ResembleAI.AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables) - { - this.PhoneNumber = phoneNumber ?? throw new global::System.ArgumentNullException(nameof(phoneNumber)); - this.DynamicVariables = dynamicVariables; - } - - /// - /// Initializes a new instance of the class. - /// - public DispatchAgentRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersStatus.g.cs deleted file mode 100644 index 45dd327..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetParametersStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum KnowledgeItemsGetParametersStatus - { - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsGetParametersStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsGetParametersStatus value) - { - return value switch - { - KnowledgeItemsGetParametersStatus.Failed => "failed", - KnowledgeItemsGetParametersStatus.Pending => "pending", - KnowledgeItemsGetParametersStatus.Processing => "processing", - KnowledgeItemsGetParametersStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsGetParametersStatus? ToEnum(string value) - { - return value switch - { - "failed" => KnowledgeItemsGetParametersStatus.Failed, - "pending" => KnowledgeItemsGetParametersStatus.Pending, - "processing" => KnowledgeItemsGetParametersStatus.Processing, - "ready" => KnowledgeItemsGetParametersStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 5e360e4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 816feb6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,154 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter))] - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? SourceType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter))] - public global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] - public string? ErrorMessage { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chunk_count")] - public int? ChunkCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("document_url")] - public string? DocumentUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("document_filename")] - public string? DocumentFilename { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agent_count")] - public int? AgentCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems( - global::System.Guid? uuid, - string? title, - string? description, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? sourceType, - global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? status, - string? errorMessage, - int? chunkCount, - string? url, - string? documentUrl, - string? documentFilename, - int? agentCount, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Title = title; - this.Description = description; - this.SourceType = sourceType; - this.Status = status; - this.ErrorMessage = errorMessage; - this.ChunkCount = chunkCount; - this.Url = url; - this.DocumentUrl = documentUrl; - this.DocumentFilename = documentFilename; - this.AgentCount = agentCount; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs deleted file mode 100644 index 568c994..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType - { - /// - /// - /// - Document, - /// - /// - /// - Text, - /// - /// - /// - Url, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType value) - { - return value switch - { - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Document => "document", - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Text => "text", - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Url => "url", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType? ToEnum(string value) - { - return value switch - { - "document" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Document, - "text" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Text, - "url" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType.Url, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs deleted file mode 100644 index 9408634..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus - { - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus value) - { - return value switch - { - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Failed => "failed", - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Pending => "pending", - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Processing => "processing", - KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? ToEnum(string value) - { - return value switch - { - "failed" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Failed, - "pending" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Pending, - "processing" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Processing, - "ready" => KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.Json.g.cs deleted file mode 100644 index 0e65efd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.g.cs deleted file mode 100644 index 3ed2a44..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page")] - public int? Page { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("per_page")] - public int? PerPage { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] - public int? TotalCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_pages")] - public int? TotalPages { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination( - int? page, - int? perPage, - int? totalCount, - int? totalPages) - { - this.Page = page; - this.PerPage = perPage; - this.TotalCount = totalCount; - this.TotalPages = totalPages; - } - - /// - /// Initializes a new instance of the class. - /// - public KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs deleted file mode 100644 index 507700d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Type of knowledge source - /// - public enum KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType - { - /// - /// - /// - Document, - /// - /// - /// - Text, - /// - /// - /// - Url, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType value) - { - return value switch - { - KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Document => "document", - KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Text => "text", - KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Url => "url", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType? ToEnum(string value) - { - return value switch - { - "document" => KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Document, - "text" => KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Text, - "url" => KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType.Url, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 13ba71b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 290265f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index b15e20d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index bc93055..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,154 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter))] - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? SourceType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter))] - public global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] - public string? ErrorMessage { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chunk_count")] - public int? ChunkCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("document_url")] - public string? DocumentUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("document_filename")] - public string? DocumentFilename { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agents")] - public global::System.Collections.Generic.IList? Agents { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem( - global::System.Guid? uuid, - string? title, - string? description, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? sourceType, - global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? status, - string? errorMessage, - int? chunkCount, - string? url, - string? documentUrl, - string? documentFilename, - global::System.Collections.Generic.IList? agents, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Title = title; - this.Description = description; - this.SourceType = sourceType; - this.Status = status; - this.ErrorMessage = errorMessage; - this.ChunkCount = chunkCount; - this.Url = url; - this.DocumentUrl = documentUrl; - this.DocumentFilename = documentFilename; - this.Agents = agents; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.Json.g.cs deleted file mode 100644 index 02d151c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.g.cs deleted file mode 100644 index 1de370c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems( - global::System.Guid? uuid, - string? name) - { - this.Uuid = uuid; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs deleted file mode 100644 index d5842f8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType - { - /// - /// - /// - Document, - /// - /// - /// - Text, - /// - /// - /// - Url, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType value) - { - return value switch - { - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Document => "document", - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Text => "text", - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Url => "url", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType? ToEnum(string value) - { - return value switch - { - "document" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Document, - "text" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Text, - "url" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType.Url, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 351f354..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus - { - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus value) - { - return value switch - { - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Failed => "failed", - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Pending => "pending", - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Processing => "processing", - KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus? ToEnum(string value) - { - return value switch - { - "failed" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Failed, - "pending" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Pending, - "processing" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Processing, - "ready" => KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 5eba6f3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 866601e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 1ea64ae..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index e72a67a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 2050315..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index bc5b815..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.Json.g.cs deleted file mode 100644 index 1b9eb6c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk), - jsonSerializerContext) as global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.g.cs deleted file mode 100644 index 2c369a8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.Json.g.cs deleted file mode 100644 index b592ae6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk), - jsonSerializerContext) as global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.g.cs deleted file mode 100644 index b31c637..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs deleted file mode 100644 index 22e0b98..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider - { - /// - /// - /// - Twilio, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider value) - { - return value switch - { - PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.Twilio => "twilio", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider? ToEnum(string value) - { - return value switch - { - "twilio" => PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider.Twilio, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index b7b6bec..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class PhoneNumbersPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index dc37689..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PhoneNumbersPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PhoneNumbersPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.Json.g.cs index f265717..25f9ee2 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAgentRequestDynamicVariables.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class CreateAgentRequestDynamicVariables + public sealed partial class RunDetectAgentInvestigationRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentRequestDynamicVariables? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.CreateAgentRequestDynamicVariables), - jsonSerializerContext) as global::ResembleAI.CreateAgentRequestDynamicVariables; + typeof(global::ResembleAI.RunDetectAgentInvestigationRequest), + jsonSerializerContext) as global::ResembleAI.RunDetectAgentInvestigationRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.CreateAgentRequestDynamicVariables? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.CreateAgentRequestDynamicVariables? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.CreateAgentRequestDynamicVariables), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAgentRequestDynamicVariables; + typeof(global::ResembleAI.RunDetectAgentInvestigationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RunDetectAgentInvestigationRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.g.cs new file mode 100644 index 0000000..a68523e --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationRequest.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class RunDetectAgentInvestigationRequest + { + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + public byte[]? File { get; set; } + + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// Public media URL to analyze. Required when `file` is omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// Question or investigation objective. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + public string? Query { get; set; } + + /// + /// Supporting evidence files. Repeat this field for multiple files. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evidence[]")] + public global::System.Collections.Generic.IList? Evidence { get; set; } + + /// + /// Additional URLs for the Detect Agent to check. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("check_urls")] + public string? CheckUrls { 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. + /// + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + /// + /// Primary media to analyze. Required when `url` is omitted. + /// + /// + /// Public media URL to analyze. Required when `file` is omitted. + /// + /// + /// Question or investigation objective. + /// + /// + /// Supporting evidence files. Repeat this field for multiple files. + /// + /// + /// Additional URLs for the Detect Agent to check. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RunDetectAgentInvestigationRequest( + byte[]? file, + string? filename, + string? url, + string? query, + global::System.Collections.Generic.IList? evidence, + string? checkUrls) + { + this.File = file; + this.Filename = filename; + this.Url = url; + this.Query = query; + this.Evidence = evidence; + this.CheckUrls = checkUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public RunDetectAgentInvestigationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.Json.g.cs similarity index 86% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.Json.g.cs index b6e0ea4..2bc77db 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentToolsListAgentToolsResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class AgentToolsListAgentToolsResponse200 + public sealed partial class RunDetectAgentInvestigationResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.AgentToolsListAgentToolsResponse200? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.AgentToolsListAgentToolsResponse200), - jsonSerializerContext) as global::ResembleAI.AgentToolsListAgentToolsResponse200; + typeof(global::ResembleAI.RunDetectAgentInvestigationResponse), + jsonSerializerContext) as global::ResembleAI.RunDetectAgentInvestigationResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.AgentToolsListAgentToolsResponse200? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.AgentToolsListAgentToolsResponse200? FromJson( + public static global::ResembleAI.RunDetectAgentInvestigationResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.AgentToolsListAgentToolsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AgentToolsListAgentToolsResponse200; + typeof(global::ResembleAI.RunDetectAgentInvestigationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RunDetectAgentInvestigationResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.g.cs similarity index 85% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.g.cs index 6c69076..a958b83 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AgentsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.RunDetectAgentInvestigationResponse.g.cs @@ -6,7 +6,7 @@ namespace ResembleAI /// /// /// - public sealed partial class AgentsPostResponsesContentApplicationJsonSchemaItem + public sealed partial class RunDetectAgentInvestigationResponse { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.g.cs deleted file mode 100644 index 461f55c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateAgentRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_uuid")] - public string? VoiceUuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phone_number_id")] - public int? PhoneNumberId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("languages")] - public global::System.Collections.Generic.IList? Languages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dynamic_variables")] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? DynamicVariables { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("asr")] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? Asr { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("turn")] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? Turn { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("llm")] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? Llm { get; set; } - - /// - /// RAG search strategy - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter))] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? SearchMode { get; set; } - - /// - /// Number of chunks to retrieve per query for RAG - /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_chunks_per_query")] - public int? MaxChunksPerQuery { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhooks")] - public global::System.Collections.Generic.IList? Webhooks { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("system_tools")] - public global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? SystemTools { 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. - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// RAG search strategy - /// - /// - /// Number of chunks to retrieve per query for RAG - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateAgentRequest( - string? name, - string? voiceUuid, - int? phoneNumberId, - global::System.Collections.Generic.IList? languages, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables? dynamicVariables, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr? asr, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn? turn, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm? llm, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode? searchMode, - int? maxChunksPerQuery, - global::System.Collections.Generic.IList? webhooks, - global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools? systemTools) - { - this.Name = name; - this.VoiceUuid = voiceUuid; - this.PhoneNumberId = phoneNumberId; - this.Languages = languages; - this.DynamicVariables = dynamicVariables; - this.Asr = asr; - this.Turn = turn; - this.Llm = llm; - this.SearchMode = searchMode; - this.MaxChunksPerQuery = maxChunksPerQuery; - this.Webhooks = webhooks; - this.SystemTools = systemTools; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateAgentRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.Json.g.cs deleted file mode 100644 index fc5cf6b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentRequestWebhook.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateAgentRequestWebhook - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentRequestWebhook? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateAgentRequestWebhook), - jsonSerializerContext) as global::ResembleAI.UpdateAgentRequestWebhook; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentRequestWebhook? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentRequestWebhook? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentRequestWebhook), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateAgentRequestWebhook; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.Json.g.cs deleted file mode 100644 index e8eb9e7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateAgentToolRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentToolRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateAgentToolRequest), - jsonSerializerContext) as global::ResembleAI.UpdateAgentToolRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentToolRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentToolRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentToolRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateAgentToolRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.g.cs deleted file mode 100644 index d4c84a4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentToolRequest.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateAgentToolRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_config")] - public global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? ToolConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateAgentToolRequest( - string? name, - string? description, - global::ResembleAI.AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig? toolConfig) - { - this.Name = name; - this.Description = description; - this.ToolConfig = toolConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateAgentToolRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.Json.g.cs deleted file mode 100644 index de183db..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateAgentWebhookRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentWebhookRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateAgentWebhookRequest), - jsonSerializerContext) as global::ResembleAI.UpdateAgentWebhookRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateAgentWebhookRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentWebhookRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.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::ResembleAI.UpdateAgentWebhookRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateAgentWebhookRequest; - } - - /// - /// 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::ResembleAI.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::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.g.cs deleted file mode 100644 index 22ee992..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateAgentWebhookRequest.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateAgentWebhookRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] - public global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? WebhookConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdateAgentWebhookRequest( - global::ResembleAI.AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig? webhookConfig) - { - this.WebhookConfig = webhookConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateAgentWebhookRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs index 7f50216..93030a8 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs @@ -10,9 +10,9 @@ namespace ResembleAI public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAIClient, global::System.IDisposable { /// - /// synthesis + /// production /// - public const string DefaultBaseUrl = "https://f.cluster.resemble.ai/"; + public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; private bool _disposeHttpClient = true; @@ -55,47 +55,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public AgentKnowledgeBaseClient AgentKnowledgeBase => new AgentKnowledgeBaseClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public AgentPhoneNumbersClient AgentPhoneNumbers => new AgentPhoneNumbersClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public AgentToolsClient AgentTools => new AgentToolsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public AgentWebhooksClient AgentWebhooks => new AgentWebhooksClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public AgentsClient Agents => new AgentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public AudioEnhancementClient AudioEnhancement => new AudioEnhancementClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -105,7 +65,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public AudioEnhancementClient AudioEnhancement => new AudioEnhancementClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public AudioSourceTracingClient AudioSourceTracing => new AudioSourceTracingClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -115,7 +75,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public AudioSourceTracingClient AudioSourceTracing => new AudioSourceTracingClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public ClipsClient Clips => new ClipsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -125,7 +85,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public ClipsClient Clips => new ClipsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public CustomPronunciationsClient CustomPronunciations => new CustomPronunciationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -135,7 +95,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public CustomPronunciationsClient CustomPronunciations => new CustomPronunciationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public DeepfakeDetectionClient DeepfakeDetection => new DeepfakeDetectionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -145,7 +105,7 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli /// /// /// - public DeepfakeDetectionClient DeepfakeDetection => new DeepfakeDetectionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public DetectAgentsClient DetectAgents => new DetectAgentsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, @@ -295,15 +255,15 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli private static readonly global::ResembleAI.AutoSDKServer[] s_availableServers = new global::ResembleAI.AutoSDKServer[] { new global::ResembleAI.AutoSDKServer( - id: "https-f-cluster-resemble-ai", - name: "synthesis", - url: "https://f.cluster.resemble.ai/", - description: "synthesis"), - new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-api-v2", name: "production", url: "https://app.resemble.ai/api/v2", description: "production"), + new global::ResembleAI.AutoSDKServer( + id: "https-f-cluster-resemble-ai", + name: "synthesis", + url: "https://f.cluster.resemble.ai/", + description: "synthesis"), }; /// diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index bf8a21b..c85119e 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -5,15 +5,34 @@ "version": "1.0.0" }, "paths": { - "/synthesize": { - "post": { - "operationId": "synthesize", - "summary": "Synchronous text-to-speech synthesis", - "description": "Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically.", + "/detect": { + "get": { + "operationId": "list-detections", + "summary": "List all detects", + "description": "Retrieve a paginated list of all detect objects for the authenticated user's team", "tags": [ - "textToSpeech" + "deepfakeDetection" ], "parameters": [ + { + "name": "page", + "in": "query", + "description": "Page number (must be >= 1)", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "page_size", + "in": "query", + "description": "Number of items per page (10-1000)", + "required": false, + "schema": { + "type": "integer", + "default": 10 + } + }, { "name": "Authorization", "in": "header", @@ -26,103 +45,23 @@ ], "responses": { "200": { - "description": "Successful synthesis", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Text-to-Speech_synthesize_Response_200" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "List of detects", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Deepfake Detection_listDetections_Response_200" } } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_uuid": { - "type": "string", - "description": "Voice UUID to use for synthesis" - }, - "project_uuid": { - "type": "string", - "description": "Optional project UUID to store the clip" - }, - "title": { - "type": "string", - "description": "Optional title for the generated clip" - }, - "data": { - "type": "string", - "description": "Text or SSML to synthesize (max 3,000 characters)" - }, - "precision": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision", - "description": "Audio precision for WAV output" - }, - "output_format": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat", - "description": "Audio output format" - }, - "sample_rate": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate", - "description": "Audio sample rate in Hz" - }, - "use_hd": { - "type": "boolean", - "default": false, - "description": "Enable HD synthesis with small latency trade-off" - }, - "apply_custom_pronunciations": { - "type": "boolean", - "default": false, - "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." - } - }, - "required": [ - "voice_uuid", - "data" - ] - } - } - } } }, - "servers": [ - { - "url": "https://f.cluster.resemble.ai" - } - ] - }, - "/stream": { "post": { - "operationId": "stream-synthesize", - "summary": "Streaming text-to-speech synthesis (HTTP)", - "description": "Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically.", + "operationId": "create-detection", + "summary": "Create deepfake detection", + "description": "Analyze audio, image, and video for deepfake detection.\n\nSupply media via one of three intake methods:\n\n- **Direct file upload** — `multipart/form-data` with the file attached as `file`. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions. For larger files, use the secure upload flow.\n- **Public URL** — `application/json` with a `url` field. The API fetches the URL itself.\n- **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.\n\nExactly one of `file`, `url`, or `media_token` must be provided per request.\n", "tags": [ - "textToSpeech" + "deepfakeDetection" ], "parameters": [ { @@ -137,22 +76,11 @@ ], "responses": { "200": { - "description": "Streaming audio response (chunked WAV)", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - }, - "400": { - "description": "Bad request", + "description": "Detection job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Deepfake Detection_createDetection_Response_200" } } } @@ -160,44 +88,95 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "voice_uuid": { + "file": { "type": "string", - "description": "Voice UUID to use for synthesis" + "format": "binary", + "description": "The media file to analyze (audio, video, or image). Must be 150 MB or smaller." }, - "data": { + "callback_url": { "type": "string", - "description": "Text or SSML to synthesize (max 2000 characters)" + "format": "uri", + "description": "POST destination for the detection result." }, - "project_uuid": { - "type": "string", - "description": "Optional project UUID to store the clip" + "wait_for_intelligence": { + "type": "boolean", + "description": "Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time." }, - "precision": { - "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaPrecision", - "description": "Audio precision" + "visualize": { + "type": "boolean", + "description": "Generate visualization artifacts" }, - "sample_rate": { - "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaSampleRate", - "description": "Audio sample rate in Hz" + "frame_length": { + "type": "integer", + "default": 2, + "description": "Window size in seconds (audio/video)" }, - "use_hd": { + "start_region": { + "type": "number", + "format": "double", + "description": "Start of segment to analyze (seconds)" + }, + "end_region": { + "type": "number", + "format": "double", + "description": "End of segment to analyze (seconds)" + }, + "max_video_secs": { + "type": "number", + "format": "double", + "description": "Cap processed duration" + }, + "modality": { + "$ref": "#/components/schemas/DetectPostRequestBodyContentMultipartFormDataSchemaModality", + "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n" + }, + "face_only": { "type": "boolean", "default": false, - "description": "Enable HD synthesis with small latency trade-off" + "description": "Focus visual video detection on faces by masking non-face regions. Effective only for\nvideo inputs with `modality=all` or `modality=video`. Audio, image, and `modality=audio`\nvideo requests are accepted but use an effective value of `false`.\n" }, - "apply_custom_pronunciations": { + "intelligence": { "type": "boolean", "default": false, - "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." + "description": "Run multimodal intelligence analysis on the media" + }, + "infer_from_intelligence": { + "type": "boolean", + "default": false, + "description": "Opt in to let a strong intelligence finding escalate an otherwise non-fake verdict to \"Likely Fake\". Has no effect unless `intelligence` is also true." + }, + "audio_source_tracing": { + "type": "boolean", + "default": false, + "description": "Enable audio source tracing to identify synthetic audio origin" + }, + "signal": { + "type": "boolean", + "default": false, + "description": "Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections." + }, + "use_reverse_search": { + "type": "boolean", + "default": false, + "description": "Enable reverse image search to improve detection accuracy for image files. Only applies to image detections." + }, + "use_ood_detector": { + "type": "boolean", + "default": false, + "description": "Enable out-of-distribution detection" + }, + "zero_retention_mode": { + "type": "boolean", + "default": false, + "description": "Enable Zero Retention Mode to automatically delete submitted media after detection completes." } }, "required": [ - "voice_uuid", - "data" + "file" ] } } @@ -206,35 +185,36 @@ }, "servers": [ { - "url": "https://f.cluster.resemble.ai" + "url": "https://app.resemble.ai/api/v2" } ] }, - "/speech-to-text": { + "/detect/{uuid}": { "get": { - "operationId": "list-transcripts", - "summary": "List transcripts", - "description": "Retrieve paginated list of transcript jobs", + "operationId": "get-detection", + "summary": "Get deepfake detection result", + "description": "Get a deepfake detection result by UUID. The item status describes the Detect job only; Intelligence runs separately and can still be processing after Detect reaches completed.", "tags": [ - "speechToText" + "deepfakeDetection" ], "parameters": [ { - "name": "page", - "in": "query", + "name": "uuid", + "in": "path", + "description": "The UUID of the detect object", "required": true, "schema": { - "type": "integer", - "default": 1 + "type": "string" } }, { - "name": "per_page", + "name": "experts", "in": "query", + "description": "When true, return all successfully completed Intelligence results as an array, or an empty array when none have completed successfully. When omitted or false, return one completed result when available; otherwise, return the current processing or failed result.", "required": false, "schema": { - "type": "integer", - "default": 25 + "type": "boolean", + "default": false } }, { @@ -249,23 +229,40 @@ ], "responses": { "200": { - "description": "List of transcripts", + "description": "Detection result", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_listTranscripts_Response_200" + "$ref": "#/components/schemas/Deepfake Detection_getDetection_Response_200" + } + } + } + }, + "404": { + "description": "Detect not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } } } }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/detect/batch": { "post": { - "operationId": "create-transcript", - "summary": "Create transcript job", - "description": "Submit audio or video for transcription", + "operationId": "create-detect-batch", + "summary": "Create a batch deepfake detection job", + "description": "Submit up to 50 files in a single request and process them as a single logical\ngroup. Returns HTTP 202 with a batch UUID; each file is analyzed in the\nbackground and individual results are available via `GET /detect/{uuid}` for\neach entry in `detect_uuids`.\n\nTwo intake methods:\n\n- **Multiple media files** — repeated `files[]` form fields.\n- **Single zip archive** — a single `file` form field whose value is a `.zip`\n containing the media files. Non-media entries are skipped.\n\nProvide one of `files[]` or `file=<...>.zip` per request. Synchronous mode\n(`Prefer: wait`) is not supported and returns 400 if sent.\n\nConstraints:\n\n- Maximum 50 files per batch.\n- Maximum 500 MB total upload size across all files.\n- Allowed file types match `POST /detect`'s direct-upload allowlist.\n- All-or-nothing billing: if the team's wallet cannot cover the projected cost\n for every file, the request is rejected with 402 and no detects are created.\n", "tags": [ - "speechToText" + "deepfakeDetection" ], "parameters": [ { @@ -279,18 +276,18 @@ } ], "responses": { - "200": { - "description": "Transcript job created", + "202": { + "description": "Batch accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_createTranscript_Response_200" + "$ref": "#/components/schemas/Deepfake Detection_createDetectBatch_Response_202" } } } }, "400": { - "description": "Bad request (missing input, invalid callback_url, or zero retention requested without a callback_url)", + "description": "Invalid batch request (missing files, both file and files[] supplied, file count or size exceeded, unsupported file type, or `Prefer: wait` header sent)", "content": { "application/json": { "schema": { @@ -300,7 +297,17 @@ } }, "402": { - "description": "Zero retention is not included in the team's plan or subscription", + "description": "Insufficient balance for the projected batch cost. Response `details` includes per-file estimates.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Intelligence detect limit reached (Default plan).", "content": { "application/json": { "schema": { @@ -316,24 +323,81 @@ "schema": { "type": "object", "properties": { + "files[]": { + "type": "array", + "items": { + "type": "string", + "format": "binary" + }, + "description": "One or more media files. Repeat the `files[]` field for each file. Mutually exclusive with `file`." + }, "file": { "type": "string", "format": "binary", - "description": "Audio or video file (max 500 MB, 20 minutes)" - }, - "query": { - "type": "string", - "description": "Optional intelligence question to evaluate after transcription" + "description": "A single `.zip` archive containing media files. Mutually exclusive with `files[]`." }, "callback_url": { "type": "string", "format": "uri", - "description": "Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true." + "description": "POST destination invoked when the batch reaches a terminal state." + }, + "intelligence": { + "type": "boolean", + "default": false, + "description": "Run multimodal intelligence on every file in the batch." + }, + "infer_from_intelligence": { + "type": "boolean", + "default": false, + "description": "Opt in to let a strong intelligence finding escalate an otherwise non-fake verdict to \"Likely Fake\". Has no effect unless `intelligence` is also true." + }, + "search_identity": { + "type": "boolean", + "default": false, + "description": "Run identity search against the team's saved identities (audio/video only)." + }, + "visualize": { + "type": "boolean", + "default": true, + "description": "Generate visualization artifacts." + }, + "audio_source_tracing_enabled": { + "type": "boolean", + "default": false, + "description": "Enable audio source tracing on each audio file." + }, + "frame_length": { + "type": "integer", + "description": "Window size in seconds (audio/video)." + }, + "start_region": { + "type": "number", + "format": "double", + "description": "Start of segment to analyze (seconds)." + }, + "end_region": { + "type": "number", + "format": "double", + "description": "End of segment to analyze (seconds)." + }, + "max_video_secs": { + "type": "number", + "format": "double", + "description": "Cap processed video duration." + }, + "use_llm": { + "type": "boolean", + "description": "Use LLM-assisted video analysis." + }, + "face_only": { + "type": "boolean", + "default": false, + "description": "Focus detection on faces for video children by masking non-face regions. Audio and\nimage children use an effective value of `false`. Retrieve each child's effective value\nwith `GET /detect/{uuid}`; the aggregate batch response does not include this field.\n" }, "zero_retention_mode": { "type": "boolean", "default": false, - "description": "Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan." + "description": "Enable Zero Retention Mode for every file in the batch." } } } @@ -347,22 +411,22 @@ } ] }, - "/speech-to-text/{uuid}": { + "/detect/batch/{uuid}": { "get": { - "operationId": "get-transcript", - "summary": "Get transcript", - "description": "Retrieve transcript status, text, and timestamps", + "operationId": "get-detect-batch", + "summary": "Get batch status", + "description": "Retrieve the latest aggregate status for a batch. The response shape mirrors\nthe create response — `status`, `completed_count`, and `failed_count` update\nas child detects progress. Use the `detect_uuids` array to fetch per-file\nresults via `GET /detect/{uuid}`.\n", "tags": [ - "speechToText" + "deepfakeDetection" ], "parameters": [ { "name": "uuid", "in": "path", + "description": "Batch UUID returned by `POST /detect/batch`.", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -377,11 +441,21 @@ ], "responses": { "200": { - "description": "Transcript details", + "description": "Batch status", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_getTranscript_Response_200" + "$ref": "#/components/schemas/Deepfake Detection_getDetectBatch_Response_200" + } + } + } + }, + "404": { + "description": "Batch not found (or not accessible by the authenticated team).", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } @@ -394,24 +468,15 @@ } ] }, - "/speech-to-text/{uuid}/ask": { - "post": { - "operationId": "ask-transcript-question", - "summary": "Ask intelligence question", - "description": "Submit a question about a completed transcript", + "/agents": { + "get": { + "operationId": "list-detect-agents", + "summary": "List Detect Agents", + "description": "Return all six managed Detect Agents available to the authenticated team.\nUse an agent's `uuid` to run an investigation or retrieve its run history.\nThis endpoint does not accept pagination or filtering parameters.\n", "tags": [ - "speechToText" + "detectAgents" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -424,17 +489,17 @@ ], "responses": { "200": { - "description": "Question submitted", + "description": "All six Detect Agents", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_askTranscriptQuestion_Response_200" + "$ref": "#/components/schemas/Detect Agents_listDetectAgents_Response_200" } } } }, - "400": { - "description": "Missing query, transcript not yet processed, or the transcript was created with zero retention and its content has been purged", + "401": { + "description": "Missing or invalid API key", "content": { "application/json": { "schema": { @@ -442,22 +507,24 @@ } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "Question to ask about the transcript" - } - }, - "required": [ - "query" - ] + }, + "403": { + "description": "The account does not have Detect Agents access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "502": { + "description": "Detect Agents service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } @@ -469,40 +536,22 @@ } ] }, - "/speech-to-text/{uuid}/questions": { - "get": { - "operationId": "list-transcript-questions", - "summary": "List intelligence questions", - "description": "List all questions asked about a transcript", + "/agents/{uuid}/run": { + "post": { + "operationId": "run-detect-agent-investigation", + "summary": "Run investigation", + "description": "Run a managed Detect Agent against uploaded media or a public URL.\nThe response is a live Server-Sent Events stream. The first `run_started`\nevent contains the persisted run identifier.\n", "tags": [ - "speechToText" + "detectAgents" ], "parameters": [ { "name": "uuid", "in": "path", + "description": "Stable Detect Agent identifier returned by `GET /agents`.", "required": true, "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "per_page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 25 + "type": "string" } }, { @@ -517,185 +566,72 @@ ], "responses": { "200": { - "description": "List of questions", + "description": "Response with status 200", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_listTranscriptQuestions_Response_200" + "type": "object", + "properties": {} } } } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/speech-to-text/{uuid}/questions/{question_uuid}": { - "get": { - "operationId": "get-transcript-question", - "summary": "Get intelligence question status", - "description": "Check the status of a specific question", - "tags": [ - "speechToText" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "question_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Question details", + "401": { + "description": "Missing or invalid API key", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_getTranscriptQuestion_Response_200" + "$ref": "#/components/schemas/Error" } } } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/audio_enhancements": { - "get": { - "operationId": "list-audio-enhancements", - "summary": "List audio enhancements", - "description": "Returns a paginated list of all audio enhancements for your team, ordered by most recent first.", - "tags": [ - "audioEnhancement" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "description": "Page number (starting from 1).", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "page_size", - "in": "query", - "description": "Items per page (10 to 1000). Default 10.", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "List of enhancements", + "402": { + "description": "The investigation is blocked by billing or available credits", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio Enhancement_listAudioEnhancements_Response_200" + "$ref": "#/components/schemas/Error" } } } }, - "400": { - "description": "Bad request", + "403": { + "description": "The account does not have Detect Agents access", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListAudioEnhancementsRequestBadRequestError" + "$ref": "#/components/schemas/Error" } } } - } - } - }, - "post": { - "operationId": "create-audio-enhancement", - "summary": "Create audio enhancement", - "description": "Submit an audio file for enhancement. Processing happens asynchronously in the background.\nThe API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.\n", - "tags": [ - "audioEnhancement" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "202": { - "description": "Enhancement job created", + }, + "404": { + "description": "Detect Agent not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio Enhancement_createAudioEnhancement_Response_202" + "$ref": "#/components/schemas/Error" } } } }, - "400": { - "description": "Bad request", + "422": { + "description": "Neither `file` nor `url` was provided", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateAudioEnhancementRequestBadRequestError" + "$ref": "#/components/schemas/Error" } } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Detect Agents service unavailable before streaming begins", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateAudioEnhancementRequestForbiddenError" + "$ref": "#/components/schemas/Error" } } } @@ -707,49 +643,33 @@ "schema": { "type": "object", "properties": { - "audio_file": { + "file": { "type": "string", "format": "binary", - "description": "Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB." - }, - "enhancement_engine": { - "$ref": "#/components/schemas/AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine", - "description": "Enhancement engine to use. Default is v2." - }, - "remove_noise": { - "type": "boolean", - "default": true, - "description": "Remove background noise. Engine v2 only." - }, - "normalize": { - "type": "boolean", - "default": true, - "description": "Normalize audio levels. Engine v2 only." + "description": "Primary media to analyze. Required when `url` is omitted." }, - "studio_sound": { - "type": "boolean", - "default": true, - "description": "Apply studio-quality enhancement. Engine v2 only." + "url": { + "type": "string", + "format": "uri", + "description": "Public media URL to analyze. Required when `file` is omitted." }, - "enhancement_level": { - "type": "number", - "format": "double", - "description": "Enhancement intensity (0.0 to 1.0). Engine v1 only (legacy)." + "query": { + "type": "string", + "description": "Question or investigation objective." }, - "loudness_target_level": { - "type": "integer", - "default": -14, - "description": "Target loudness in LUFS. Engine v1 only (legacy)." + "evidence[]": { + "type": "array", + "items": { + "type": "string", + "format": "binary" + }, + "description": "Supporting evidence files. Repeat this field for multiple files." }, - "loudness_peak_limit": { - "type": "integer", - "default": -1, - "description": "Peak limit in dBTP. Engine v1 only (legacy)." + "check_urls": { + "type": "string", + "description": "Additional URLs for the Detect Agent to check." } - }, - "required": [ - "audio_file" - ] + } } } } @@ -761,19 +681,19 @@ } ] }, - "/audio_enhancements/{enhancement_uuid}": { + "/agents/{uuid}/runs": { "get": { - "operationId": "get-audio-enhancement", - "summary": "Get audio enhancement", - "description": "Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete.", + "operationId": "list-detect-agent-investigation-runs", + "summary": "List investigation runs", + "description": "Return up to 100 of a Detect Agent's most recent investigation runs in\nnewest-first order. An agent that the team has never run returns an empty list.\n", "tags": [ - "audioEnhancement" + "detectAgents" ], "parameters": [ { - "name": "enhancement_uuid", + "name": "uuid", "in": "path", - "description": "The UUID returned from the create endpoint.", + "description": "Stable Detect Agent identifier returned by `GET /agents`.", "required": true, "schema": { "type": "string" @@ -791,21 +711,51 @@ ], "responses": { "200": { - "description": "Enhancement details", + "description": "Recent investigation runs", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio Enhancement_getAudioEnhancement_Response_200" + "$ref": "#/components/schemas/Detect Agents_listDetectAgentInvestigationRuns_Response_200" + } + } + } + }, + "401": { + "description": "Missing or invalid API key", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "The account does not have Detect Agents access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } }, "404": { - "description": "Not found", + "description": "Detect Agent not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetAudioEnhancementRequestNotFoundError" + "$ref": "#/components/schemas/Error" + } + } + } + }, + "502": { + "description": "Detect Agents service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } @@ -818,32 +768,32 @@ } ] }, - "/agents": { + "/agents/{uuid}/runs/{run_id}": { "get": { - "operationId": "list-agents", - "summary": "List agents", - "description": "Retrieve all agents for the authenticated team", + "operationId": "get-detect-agent-investigation-run", + "summary": "Get investigation run", + "description": "Retrieve a persisted investigation run, including its replay transcript\nand the exact configuration and memory snapshots used by the investigation.\n", "tags": [ - "agents" + "detectAgents" ], "parameters": [ { - "name": "phone_number", - "in": "query", - "description": "Filter by associated phone number", - "required": false, + "name": "uuid", + "in": "path", + "description": "Stable Detect Agent identifier returned by `GET /agents`.", + "required": true, "schema": { "type": "string" } }, { - "name": "advanced", - "in": "query", - "description": "Include detailed configuration", - "required": false, + "name": "run_id", + "in": "path", + "description": "Run UUID returned by a `run_started` event or run-list response.", + "required": true, "schema": { - "type": "boolean", - "default": false + "type": "string", + "format": "uuid" } }, { @@ -858,48 +808,37 @@ ], "responses": { "200": { - "description": "List of agents", + "description": "Investigation run details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_listAgents_Response_200" + "$ref": "#/components/schemas/Detect Agents_getDetectAgentInvestigationRun_Response_200" } } } - } - } - }, - "post": { - "operationId": "create-agent", - "summary": "Create agent", - "description": "Create a new voice agent", - "tags": [ - "agents" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" + }, + "401": { + "description": "Missing or invalid API key", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } - } - ], - "responses": { - "200": { - "description": "Agent created successfully", + }, + "403": { + "description": "The account does not have Detect Agents access", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_createAgent_Response_200" + "$ref": "#/components/schemas/Error" } } } }, - "400": { - "description": "Validation error", + "404": { + "description": "Detect Agent or investigation run not found", "content": { "application/json": { "schema": { @@ -907,67 +846,14 @@ } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "voice_uuid": { - "type": "string" - }, - "phone_number_id": { - "type": "integer" - }, - "languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "dynamic_variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables" - } - }, - "asr": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaAsr" - }, - "turn": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaTurn" - }, - "llm": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaLlm" - }, - "search_mode": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode", - "description": "RAG search strategy - speed (faster) or accuracy (more thorough)" - }, - "max_chunks_per_query": { - "type": "integer", - "default": 8, - "description": "Number of relevant chunks to retrieve per query for RAG" - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems" - } - }, - "system_tools": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools" - } - }, - "required": [ - "name", - "voice_uuid" - ] + }, + "502": { + "description": "Detect Agents service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } @@ -979,33 +865,15 @@ } ] }, - "/agents/{uuid}": { - "get": { - "operationId": "get-agent", - "summary": "Get agent", - "description": "Retrieve a specific agent's details", + "/intelligence": { + "post": { + "operationId": "run-intelligence", + "summary": "Run intelligence", + "description": "Analyze audio, image, or video for comprehensive insights. Optionally reference an existing detect to associate.", "tags": [ - "agents" + "intelligence" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "advanced", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - }, { "name": "Authorization", "in": "header", @@ -1018,32 +886,83 @@ ], "responses": { "200": { - "description": "Agent details", + "description": "Intelligence analysis", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_getAgent_Response_200" + "$ref": "#/components/schemas/Intelligence_runIntelligence_Response_200" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "media_token": { + "type": "string", + "description": "Token for uploaded media file (from secure upload)" + }, + "url": { + "type": "string", + "format": "uri", + "description": "HTTPS URL to audio, image, or video file" + }, + "detect_id": { + "type": "string", + "format": "uuid", + "description": "UUID of an existing detect to associate" + }, + "media_type": { + "$ref": "#/components/schemas/IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType", + "description": "Explicit media type (auto-detected if not provided)" + }, + "callback_url": { + "type": "string", + "format": "uri", + "description": "URL that receives the final intelligence payload via HTTP POST. When present, the request runs asynchronously and returns 202 Accepted." + } } } } } } }, - "delete": { - "operationId": "delete-agent", - "summary": "Delete agent", - "description": "Delete an agent and all its configurations", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/intelligences": { + "get": { + "operationId": "list-intelligences", + "summary": "List intelligences", + "description": "Retrieve a paginated list of all intelligence reports for the authenticated user's team", "tags": [ - "agents" + "intelligence" ], "parameters": [ { - "name": "uuid", - "in": "path", + "name": "page", + "in": "query", + "description": "Page number (must be >= 1)", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "integer" + } + }, + { + "name": "page_size", + "in": "query", + "description": "Number of items per page (10-1000)", + "required": false, + "schema": { + "type": "integer", + "default": 10 } }, { @@ -1058,32 +977,39 @@ ], "responses": { "200": { - "description": "Agent deleted successfully", + "description": "List of intelligence reports", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_deleteAgent_Response_200" + "$ref": "#/components/schemas/Intelligence_listIntelligences_Response_200" } } } } } }, - "patch": { - "operationId": "update-agent", - "summary": "Update agent", - "description": "Update an existing agent's configuration", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/intelligences/{uuid}": { + "get": { + "operationId": "get-intelligence", + "summary": "Get intelligence", + "description": "Retrieve a single intelligence report by its UUID", "tags": [ - "agents" + "intelligence" ], "parameters": [ { "name": "uuid", "in": "path", + "description": "The UUID of the intelligence report", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -1098,66 +1024,21 @@ ], "responses": { "200": { - "description": "Agent updated successfully", + "description": "Intelligence report", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_updateAgent_Response_200" + "$ref": "#/components/schemas/Intelligence_getIntelligence_Response_200" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "voice_uuid": { - "type": "string" - }, - "phone_number_id": { - "type": "integer" - }, - "languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "dynamic_variables": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables" - }, - "asr": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr" - }, - "turn": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn" - }, - "llm": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm" - }, - "search_mode": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode", - "description": "RAG search strategy" - }, - "max_chunks_per_query": { - "type": "integer", - "description": "Number of chunks to retrieve per query for RAG" - }, - "webhooks": { - "type": "array", - "items": { - "description": "Any type" - } - }, - "system_tools": { - "$ref": "#/components/schemas/AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools" - } + }, + "404": { + "description": "Intelligence not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } @@ -1170,22 +1051,22 @@ } ] }, - "/agents/{uuid}/dispatch": { + "/detects/{uuid}/intelligence": { "post": { - "operationId": "dispatch-agent", - "summary": "Dispatch agent", - "description": "Make an outbound call with an agent", + "operationId": "ask-detect-intelligence-question", + "summary": "Ask a question about a detection", + "description": "Submit a natural-language question about a completed detection report. Returns 202 Accepted while the answer is generated in the background.", "tags": [ - "agents" + "detectIntelligence" ], "parameters": [ { "name": "uuid", "in": "path", + "description": "UUID of the completed detection report", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -1199,12 +1080,42 @@ } ], "responses": { - "200": { - "description": "Call dispatched", + "202": { + "description": "Question accepted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Detect Intelligence_askDetectIntelligenceQuestion_Response_202" + } + } + } + }, + "400": { + "description": "Bad request (missing query)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Detection not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Detection not completed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_dispatchAgent_Response_200" + "$ref": "#/components/schemas/Error" } } } @@ -1216,17 +1127,13 @@ "schema": { "type": "object", "properties": { - "phone_number": { + "query": { "type": "string", - "description": "Destination phone number" - }, - "dynamic_variables": { - "$ref": "#/components/schemas/AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables", - "description": "Runtime variable overrides" + "description": "The natural-language question to ask about the detection" } }, "required": [ - "phone_number" + "query" ] } } @@ -1239,53 +1146,33 @@ } ] }, - "/agents/capabilities": { + "/detects/{uuid}/intelligence/{question_uuid}": { "get": { - "operationId": "get-agent-capabilities", - "summary": "Get capabilities", - "description": "List supported ASR and LLM providers and models", + "operationId": "get-detect-intelligence-question", + "summary": "Get answer to a detection question", + "description": "Retrieve the status and answer for a previously submitted question. Poll until status is completed or failed.", "tags": [ - "agents" + "detectIntelligence" ], "parameters": [ { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", + "name": "uuid", + "in": "path", + "description": "UUID of the detection report", "required": true, "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Agent capabilities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Agents_getAgentCapabilities_Response_200" - } - } + }, + { + "name": "question_uuid", + "in": "path", + "description": "UUID of the question", + "required": true, + "schema": { + "type": "string" } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/agents/system-tools": { - "get": { - "operationId": "get-system-tools", - "summary": "Get system tools", - "description": "List available system tools", - "tags": [ - "agents" - ], - "parameters": [ + }, { "name": "Authorization", "in": "header", @@ -1298,11 +1185,21 @@ ], "responses": { "200": { - "description": "System tools", + "description": "Question status and answer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Detect Intelligence_getDetectIntelligenceQuestion_Response_200" + } + } + } + }, + "404": { + "description": "Question not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agents_getSystemTools_Response_200" + "$ref": "#/components/schemas/Error" } } } @@ -1315,22 +1212,32 @@ } ] }, - "/agents/{agent_uuid}/tools": { + "/audio_source_tracings": { "get": { - "operationId": "list-agent-tools", - "summary": "List agent tools", - "description": "List all tools for an agent", + "operationId": "list-audio-source-tracings", + "summary": "List audio source tracings", + "description": "Retrieve a paginated list of all source tracing reports for the authenticated user's team", "tags": [ - "agentTools" + "audioSourceTracing" ], "parameters": [ { - "name": "agent_uuid", - "in": "path", + "name": "page", + "in": "query", + "description": "Page number (must be >= 1)", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "integer" + } + }, + { + "name": "page_size", + "in": "query", + "description": "Number of items per page (10-1000)", + "required": false, + "schema": { + "type": "integer", + "default": 10 } }, { @@ -1345,32 +1252,39 @@ ], "responses": { "200": { - "description": "List of tools", + "description": "List of source tracing reports", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Tools_listAgentTools_Response_200" + "$ref": "#/components/schemas/Audio Source Tracing_listAudioSourceTracings_Response_200" } } } } } }, - "post": { - "operationId": "create-agent-tool", - "summary": "Create agent tool", - "description": "Create a new tool for an agent", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/audio_source_tracings/{uuid}": { + "get": { + "operationId": "get-audio-source-tracing", + "summary": "Get audio source tracing", + "description": "Retrieve a single source tracing report by its UUID", "tags": [ - "agentTools" + "audioSourceTracing" ], "parameters": [ { - "name": "agent_uuid", + "name": "uuid", "in": "path", + "description": "The UUID of the source tracing report", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -1385,41 +1299,22 @@ ], "responses": { "200": { - "description": "Tool created", + "description": "Source tracing report", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Tools_createAgentTool_Response_200" + "$ref": "#/components/schemas/Audio Source Tracing_getAudioSourceTracing_Response_200" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tool_type": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType" - }, - "tool_config": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig" - } - }, - "required": [ - "name", - "description", - "tool_type", - "tool_config" - ] + }, + "404": { + "description": "Source tracing report not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } @@ -1431,31 +1326,40 @@ } ] }, - "/agents/{agent_uuid}/tools/{tool_uuid}": { + "/identity": { "get": { - "operationId": "get-agent-tool", - "summary": "Get agent tool", - "description": "Get details of a specific tool", + "operationId": "list-identities", + "summary": "List identities", + "description": "List the team's identities, newest first", "tags": [ - "agentTools" + "identity" ], "parameters": [ { - "name": "agent_uuid", - "in": "path", - "required": true, + "name": "page", + "in": "query", + "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "integer", + "default": 1 } }, { - "name": "tool_uuid", - "in": "path", - "required": true, + "name": "page_size", + "in": "query", + "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "integer", + "default": 10 + } + }, + { + "name": "search", + "in": "query", + "description": "Filter by identity name", + "required": false, + "schema": { + "type": "string" } }, { @@ -1470,43 +1374,25 @@ ], "responses": { "200": { - "description": "Tool details", + "description": "List of identities", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Tools_getAgentTool_Response_200" + "$ref": "#/components/schemas/Identity_listIdentities_Response_200" } } } } } }, - "delete": { - "operationId": "delete-agent-tool", - "summary": "Delete agent tool", - "description": "Delete a tool", + "post": { + "operationId": "create-identity", + "summary": "Create identity", + "description": "Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility).\n", "tags": [ - "agentTools" + "identity" ], "parameters": [ - { - "name": "agent_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "tool_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -1519,60 +1405,21 @@ ], "responses": { "200": { - "description": "Tool deleted", + "description": "Identity created (simple form)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Tools_deleteAgentTool_Response_200" + "$ref": "#/components/schemas/Identity_createIdentity_Response_200" } } } - } - } - }, - "patch": { - "operationId": "update-agent-tool", - "summary": "Update agent tool", - "description": "Update an existing tool", - "tags": [ - "agentTools" - ], - "parameters": [ - { - "name": "agent_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "tool_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Tool updated", + "422": { + "description": "Validation failed or no audio source supplied", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Tools_updateAgentTool_Response_200" + "$ref": "#/components/schemas/Error" } } } @@ -1582,18 +1429,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tool_config": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig" - } - } + "$ref": "#/components/schemas/Identity_createIdentity_Request" } } } @@ -1605,22 +1441,21 @@ } ] }, - "/agents/{agent_uuid}/webhooks": { - "get": { - "operationId": "list-agent-webhooks", - "summary": "List agent webhooks", - "description": "List all webhooks for an agent", + "/identity/{uuid}": { + "delete": { + "operationId": "delete-identity", + "summary": "Delete identity", + "description": "Delete an identity and withdraw its enrollment from matching", "tags": [ - "agentWebhooks" + "identity" ], "parameters": [ { - "name": "agent_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -1635,32 +1470,48 @@ ], "responses": { "200": { - "description": "List of webhooks", + "description": "Identity deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity_deleteIdentity_Response_200" + } + } + } + }, + "403": { + "description": "The identity belongs to another team", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Webhooks_listAgentWebhooks_Response_200" + "$ref": "#/components/schemas/Error" } } } } } }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/identity/{uuid}/attachments": { "post": { - "operationId": "create-agent-webhook", - "summary": "Create agent webhook", - "description": "Create a new webhook for an agent", + "operationId": "create-identity-attachment", + "summary": "Add reference media", + "description": "Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready.\n", "tags": [ - "agentWebhooks" + "identity" ], "parameters": [ { - "name": "agent_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { @@ -1674,12 +1525,42 @@ } ], "responses": { - "200": { - "description": "Webhook created", + "201": { + "description": "Media attached; returns the updated identity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity" + } + } + } + }, + "400": { + "description": "Missing or invalid modality, or missing file", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Identity not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Face photo limit reached (a person identity accepts at most 5 face photos)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Webhooks_createAgentWebhook_Response_200" + "$ref": "#/components/schemas/Error" } } } @@ -1687,20 +1568,22 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "webhook_type": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType" + "modality": { + "$ref": "#/components/schemas/IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" }, - "webhook_config": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig" + "file": { + "type": "string", + "format": "binary", + "description": "The media file to attach" } }, "required": [ - "webhook_type", - "webhook_config" + "modality", + "file" ] } } @@ -1713,31 +1596,30 @@ } ] }, - "/agents/{agent_uuid}/webhooks/{webhook_uuid}": { - "get": { - "operationId": "get-agent-webhook", - "summary": "Get agent webhook", - "description": "Get details of a specific webhook", + "/identity/{uuid}/attachments/{attachment_id}": { + "delete": { + "operationId": "delete-identity-attachment", + "summary": "Remove reference media", + "description": "Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed file.\n", "tags": [ - "agentWebhooks" + "identity" ], "parameters": [ { - "name": "agent_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "name": "webhook_uuid", + "name": "attachment_id", "in": "path", + "description": "The id of an entry in the identity's voice_samples, face_photos, or reference_videos array", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "integer" } }, { @@ -1751,44 +1633,43 @@ } ], "responses": { - "200": { - "description": "Webhook details", + "204": { + "description": "Media removed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity_deleteIdentityAttachment_Response_204" + } + } + } + }, + "404": { + "description": "Identity or attachment not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Webhooks_getAgentWebhook_Response_200" + "$ref": "#/components/schemas/Error" } } } } } }, - "delete": { - "operationId": "delete-agent-webhook", - "summary": "Delete agent webhook", - "description": "Delete a webhook", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/identity/search": { + "post": { + "operationId": "search-identities", + "summary": "Search identities", + "description": "Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search.\n", "tags": [ - "agentWebhooks" + "identity" ], "parameters": [ - { - "name": "agent_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "webhook_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -1801,60 +1682,31 @@ ], "responses": { "200": { - "description": "Webhook deleted", + "description": "Search results", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Webhooks_deleteAgentWebhook_Response_200" + "$ref": "#/components/schemas/Identity_searchIdentities_Response_200" } } } - } - } - }, - "patch": { - "operationId": "update-agent-webhook", - "summary": "Update agent webhook", - "description": "Update an existing webhook", - "tags": [ - "agentWebhooks" - ], - "parameters": [ - { - "name": "agent_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } }, - { - "name": "webhook_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" + "400": { + "description": "Search failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } } }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Webhook updated", + "422": { + "description": "Missing media or unsupported modality", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Webhooks_updateAgentWebhook_Response_200" + "$ref": "#/components/schemas/Error" } } } @@ -1866,8 +1718,22 @@ "schema": { "type": "object", "properties": { - "webhook_config": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig" + "url": { + "type": "string", + "format": "uri", + "description": "URL to the media sample (one of url, file, signed_id is required)" + }, + "signed_id": { + "type": "string", + "description": "Signed ID from a secure upload" + }, + "modality": { + "$ref": "#/components/schemas/IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality", + "description": "Inferred from the media's content type when omitted (defaults to audio)" + }, + "top_k": { + "type": "integer", + "default": 1 } } } @@ -1881,13 +1747,13 @@ } ] }, - "/phone_numbers": { - "get": { - "operationId": "list-phone-numbers", - "summary": "List agent phone numbers", - "description": "List all agent phone numbers", + "/watermark/apply": { + "post": { + "operationId": "apply-watermark", + "summary": "Apply watermark", + "description": "Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.", "tags": [ - "agentPhoneNumbers" + "watermark" ], "parameters": [ { @@ -1898,46 +1764,24 @@ "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "List of phone numbers", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Agent Phone Numbers_listPhoneNumbers_Response_200" - } - } - } - } - } - }, - "post": { - "operationId": "create-phone-number", - "summary": "Create agent phone number", - "description": "Create a new agent phone number", - "tags": [ - "agentPhoneNumbers" - ], - "parameters": [ + }, { - "name": "Authorization", + "name": "Prefer", "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, + "description": "When set to \"wait\", the API processes synchronously and returns the completed result.", + "required": false, "schema": { - "type": "string" + "$ref": "#/components/schemas/WatermarkApplyPostParametersPrefer" } } ], "responses": { "200": { - "description": "Phone number created", + "description": "Watermark job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Phone Numbers_createPhoneNumber_Response_200" + "$ref": "#/components/schemas/WatermarkApplyResponse" } } } @@ -1947,43 +1791,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "phone_number": { - "type": "string", - "description": "E.164 formatted phone number" - }, - "label": { - "type": "string" - }, - "supports_inbound": { - "type": "boolean", - "default": false - }, - "supports_outbound": { - "type": "boolean", - "default": false - }, - "provider": { - "$ref": "#/components/schemas/PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider" - }, - "twilio_account_sid": { - "type": "string" - }, - "twilio_auth_token": { - "type": "string" - }, - "outbound_trunk": { - "$ref": "#/components/schemas/PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk" - }, - "inbound_trunk": { - "$ref": "#/components/schemas/PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk" - } - }, - "required": [ - "phone_number", - "label" - ] + "$ref": "#/components/schemas/WatermarkApplyRequest" } } } @@ -1995,21 +1803,21 @@ } ] }, - "/phone_numbers/{id}": { + "/watermark/apply/{uuid}/result": { "get": { - "operationId": "get-phone-number", - "summary": "Get agent phone number", - "description": "Get agent phone number details", + "operationId": "get-watermark-apply-result", + "summary": "Get watermark apply result", + "description": "Retrieve the result of a watermark apply job.", "tags": [ - "agentPhoneNumbers" + "watermark" ], "parameters": [ { - "name": "id", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } }, { @@ -2024,33 +1832,32 @@ ], "responses": { "200": { - "description": "Phone number details", + "description": "Apply result", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Phone Numbers_getPhoneNumber_Response_200" + "$ref": "#/components/schemas/WatermarkApplyResponse" } } } } } }, - "delete": { - "operationId": "delete-phone-number", - "summary": "Delete agent phone number", - "description": "Delete an agent phone number", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/watermark/detect": { + "post": { + "operationId": "detect-watermark", + "summary": "Detect watermark", + "description": "Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.", "tags": [ - "agentPhoneNumbers" + "watermark" ], "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, { "name": "Authorization", "in": "header", @@ -2059,19 +1866,37 @@ "schema": { "type": "string" } - } - ], - "responses": { + }, + { + "name": "Prefer", + "in": "header", + "description": "When set to \"wait\", the API processes synchronously and returns the completed result with metrics.", + "required": false, + "schema": { + "$ref": "#/components/schemas/WatermarkDetectPostParametersPrefer" + } + } + ], + "responses": { "200": { - "description": "Phone number deleted", + "description": "Detection job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Phone Numbers_deletePhoneNumber_Response_200" + "$ref": "#/components/schemas/WatermarkDetectResponse" } } } } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WatermarkDetectRequest" + } + } + } } }, "servers": [ @@ -2080,21 +1905,21 @@ } ] }, - "/phone_numbers/{id}/force": { - "delete": { - "operationId": "force-delete-phone-number", - "summary": "Force delete agent phone number", - "description": "Force delete an agent phone number even if linked to agent", + "/watermark/detect/{uuid}/result": { + "get": { + "operationId": "get-watermark-detection-result", + "summary": "Get watermark detection result", + "description": "Retrieve the result of a watermark detection.", "tags": [ - "agentPhoneNumbers" + "watermark" ], "parameters": [ { - "name": "id", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } }, { @@ -2109,11 +1934,11 @@ ], "responses": { "200": { - "description": "Phone number force deleted", + "description": "Detection result", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Phone Numbers_forceDeletePhoneNumber_Response_200" + "$ref": "#/components/schemas/WatermarkDetectResponse" } } } @@ -2126,53 +1951,15 @@ } ] }, - "/knowledge_items": { - "get": { - "operationId": "list-knowledge-items", - "summary": "List knowledge items", - "description": "List all knowledge items belonging to the authenticated user's team", + "/secure_uploads": { + "post": { + "operationId": "create-secure-upload", + "summary": "Upload media securely", + "description": "Upload a media file and receive a short-lived token that can be passed to\ndownstream endpoints (such as `/detect` and `/intelligence`) in place of a\npublic URL. The returned token is a JWT that expires 1 hour after issuance.\n\nKeeping uploads private avoids exposing source media on the open internet and\nmeans you do not need to host files yourself for jobs that only need the API\nto read them once.\n", "tags": [ - "agentKnowledgeBase" + "secureUploads" ], "parameters": [ - { - "name": "status", - "in": "query", - "description": "Filter by status", - "required": false, - "schema": { - "$ref": "#/components/schemas/KnowledgeItemsGetParametersStatus" - } - }, - { - "name": "source_type", - "in": "query", - "description": "Filter by source type", - "required": false, - "schema": { - "$ref": "#/components/schemas/KnowledgeItemsGetParametersSourceType" - } - }, - { - "name": "page", - "in": "query", - "description": "Page number", - "required": false, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "per_page", - "in": "query", - "description": "Items per page", - "required": false, - "schema": { - "type": "integer", - "default": 20 - } - }, { "name": "Authorization", "in": "header", @@ -2185,48 +1972,27 @@ ], "responses": { "200": { - "description": "List of knowledge items", + "description": "Upload accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_listKnowledgeItems_Response_200" + "$ref": "#/components/schemas/Secure Uploads_createSecureUpload_Response_200" } } } - } - } - }, - "post": { - "operationId": "create-knowledge-item", - "summary": "Create knowledge item", - "description": "Creates a new knowledge item and queues it for ingestion processing", - "tags": [ - "agentKnowledgeBase" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Knowledge item created successfully", + }, + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_createKnowledgeItem_Response_201" + "$ref": "#/components/schemas/Error" } } } }, - "422": { - "description": "Validation error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2238,35 +2004,18 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "Title of the knowledge item" - }, - "description": { - "type": "string", - "description": "Description of the knowledge item" - }, - "source_type": { - "$ref": "#/components/schemas/KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType", - "description": "Type of knowledge source" - }, - "url": { - "type": "string", - "description": "Required when source_type is url" - }, - "raw_text": { + "file": { "type": "string", - "description": "Required when source_type is text" + "format": "binary", + "description": "The media file to upload (audio, image, or video)." } }, "required": [ - "title", - "description", - "source_type" + "file" ] } } @@ -2279,25 +2028,15 @@ } ] }, - "/knowledge_items/{uuid}": { - "get": { - "operationId": "get-knowledge-item", - "summary": "Get knowledge item", - "description": "Retrieves a single knowledge item with detailed information including attached agents", + "/synthesize": { + "post": { + "operationId": "synthesize", + "summary": "Synchronous text-to-speech synthesis", + "description": "Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically.", "tags": [ - "agentKnowledgeBase" + "textToSpeech" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "description": "The UUID of the knowledge item", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -2310,17 +2049,17 @@ ], "responses": { "200": { - "description": "Knowledge item details", + "description": "Successful synthesis", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_getKnowledgeItem_Response_200" + "$ref": "#/components/schemas/Text-to-Speech_synthesize_Response_200" } } } }, - "404": { - "description": "Knowledge item not found", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { @@ -2328,55 +2067,67 @@ } } } - } - } - }, - "delete": { - "operationId": "delete-knowledge-item", - "summary": "Delete knowledge item", - "description": "Deletes a knowledge item and cleans up associated data", - "tags": [ - "agentKnowledgeBase" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "description": "The UUID of the knowledge item", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Knowledge item deleted successfully", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_deleteKnowledgeItem_Response_200" + "$ref": "#/components/schemas/Error" } } } - }, - "404": { - "description": "Knowledge item not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voice_uuid": { + "type": "string", + "description": "Voice UUID to use for synthesis" + }, + "project_uuid": { + "type": "string", + "description": "Optional project UUID to store the clip" + }, + "title": { + "type": "string", + "description": "Optional title for the generated clip" + }, + "data": { + "type": "string", + "description": "Text or SSML to synthesize (max 3,000 characters)" + }, + "precision": { + "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision", + "description": "Audio precision for WAV output" + }, + "output_format": { + "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat", + "description": "Audio output format" + }, + "sample_rate": { + "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate", + "description": "Audio sample rate in Hz" + }, + "use_hd": { + "type": "boolean", + "default": false, + "description": "Enable HD synthesis with small latency trade-off" + }, + "apply_custom_pronunciations": { + "type": "boolean", + "default": false, + "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." + } + }, + "required": [ + "voice_uuid", + "data" + ] } } } @@ -2384,29 +2135,19 @@ }, "servers": [ { - "url": "https://app.resemble.ai/api/v2" + "url": "https://f.cluster.resemble.ai" } ] }, - "/knowledge_items/{uuid}/reingest": { + "/stream": { "post": { - "operationId": "reingest-knowledge-item", - "summary": "Re-ingest knowledge item", - "description": "Re-runs the ingestion pipeline for an existing knowledge item", + "operationId": "stream-synthesize", + "summary": "Streaming text-to-speech synthesis (HTTP)", + "description": "Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically.", "tags": [ - "agentKnowledgeBase" + "textToSpeech" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "description": "The UUID of the knowledge item", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -2419,17 +2160,18 @@ ], "responses": { "200": { - "description": "Re-ingestion queued successfully", + "description": "Streaming audio response (chunked WAV)", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_reingestKnowledgeItem_Response_200" + "type": "string", + "format": "binary" } } } }, - "422": { - "description": "Cannot reingest (already processing or rate limited)", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { @@ -2438,31 +2180,84 @@ } } } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "voice_uuid": { + "type": "string", + "description": "Voice UUID to use for synthesis" + }, + "data": { + "type": "string", + "description": "Text or SSML to synthesize (max 2000 characters)" + }, + "project_uuid": { + "type": "string", + "description": "Optional project UUID to store the clip" + }, + "precision": { + "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaPrecision", + "description": "Audio precision" + }, + "sample_rate": { + "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaSampleRate", + "description": "Audio sample rate in Hz" + }, + "use_hd": { + "type": "boolean", + "default": false, + "description": "Enable HD synthesis with small latency trade-off" + }, + "apply_custom_pronunciations": { + "type": "boolean", + "default": false, + "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." + } + }, + "required": [ + "voice_uuid", + "data" + ] + } + } + } + } + }, + "servers": [ + { + "url": "https://f.cluster.resemble.ai" } ] }, - "/agents/{agent_uuid}/knowledge_items": { + "/speech-to-text": { "get": { - "operationId": "list-agent-knowledge-items", - "summary": "List agent's knowledge items", - "description": "Lists all knowledge items attached to a specific agent", + "operationId": "list-transcripts", + "summary": "List transcripts", + "description": "Retrieve paginated list of transcript jobs", "tags": [ - "agentKnowledgeBase" + "speechToText" ], "parameters": [ { - "name": "agent_uuid", - "in": "path", - "description": "The UUID of the agent", + "name": "page", + "in": "query", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "integer", + "default": 1 + } + }, + { + "name": "per_page", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 25 } }, { @@ -2477,21 +2272,11 @@ ], "responses": { "200": { - "description": "List of knowledge items attached to agent", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_listAgentKnowledgeItems_Response_200" - } - } - } - }, - "404": { - "description": "Agent not found", + "description": "List of transcripts", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Speech-to-Text_listTranscripts_Response_200" } } } @@ -2499,23 +2284,13 @@ } }, "post": { - "operationId": "attach-knowledge-item-to-agent", - "summary": "Attach knowledge item to agent", - "description": "Attaches an existing knowledge item to an agent", + "operationId": "create-transcript", + "summary": "Create transcript job", + "description": "Submit audio or video for transcription", "tags": [ - "agentKnowledgeBase" + "speechToText" ], "parameters": [ - { - "name": "agent_uuid", - "in": "path", - "description": "The UUID of the agent", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -2527,18 +2302,28 @@ } ], "responses": { - "201": { - "description": "Knowledge item attached successfully", + "200": { + "description": "Transcript job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_attachKnowledgeItemToAgent_Response_201" + "$ref": "#/components/schemas/Speech-to-Text_createTranscript_Response_200" } } } }, - "422": { - "description": "Validation error (not ready, already attached, etc.)", + "400": { + "description": "Bad request (missing input, invalid callback_url, or zero retention requested without a callback_url)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "402": { + "description": "Zero retention is not included in the team's plan or subscription", "content": { "application/json": { "schema": { @@ -2550,19 +2335,30 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "knowledge_item_uuid": { + "file": { "type": "string", - "format": "uuid", - "description": "The UUID of the knowledge item to attach" + "format": "binary", + "description": "Audio or video file (max 500 MB, 20 minutes)" + }, + "query": { + "type": "string", + "description": "Optional intelligence question to evaluate after transcription" + }, + "callback_url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true." + }, + "zero_retention_mode": { + "type": "boolean", + "default": false, + "description": "Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan." } - }, - "required": [ - "knowledge_item_uuid" - ] + } } } } @@ -2574,29 +2370,18 @@ } ] }, - "/agents/{agent_uuid}/knowledge_items/{knowledge_item_uuid}": { - "delete": { - "operationId": "detach-knowledge-item-from-agent", - "summary": "Detach knowledge item from agent", - "description": "Removes a knowledge item from an agent", + "/speech-to-text/{uuid}": { + "get": { + "operationId": "get-transcript", + "summary": "Get transcript", + "description": "Retrieve transcript status, text, and timestamps", "tags": [ - "agentKnowledgeBase" + "speechToText" ], "parameters": [ { - "name": "agent_uuid", - "in": "path", - "description": "The UUID of the agent", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "knowledge_item_uuid", + "name": "uuid", "in": "path", - "description": "The UUID of the knowledge item to detach", "required": true, "schema": { "type": "string", @@ -2615,31 +2400,11 @@ ], "responses": { "200": { - "description": "Knowledge item detached successfully", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Agent Knowledge Base_detachKnowledgeItemFromAgent_Response_200" - } - } - } - }, - "404": { - "description": "Agent or knowledge item not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "422": { - "description": "Knowledge item not attached to agent", + "description": "Transcript details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Speech-to-Text_getTranscript_Response_200" } } } @@ -2652,15 +2417,24 @@ } ] }, - "/secure_uploads": { + "/speech-to-text/{uuid}/ask": { "post": { - "operationId": "create-secure-upload", - "summary": "Upload media securely", - "description": "Upload a media file and receive a short-lived token that can be passed to\ndownstream endpoints (such as `/detect` and `/intelligence`) in place of a\npublic URL. The returned token is a JWT that expires 1 hour after issuance.\n\nKeeping uploads private avoids exposing source media on the open internet and\nmeans you do not need to host files yourself for jobs that only need the API\nto read them once.\n", + "operationId": "ask-transcript-question", + "summary": "Ask intelligence question", + "description": "Submit a question about a completed transcript", "tags": [ - "secureUploads" + "speechToText" ], "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, { "name": "Authorization", "in": "header", @@ -2673,27 +2447,17 @@ ], "responses": { "200": { - "description": "Upload accepted", + "description": "Question submitted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Secure Uploads_createSecureUpload_Response_200" + "$ref": "#/components/schemas/Speech-to-Text_askTranscriptQuestion_Response_200" } } } }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Missing query, transcript not yet processed, or the transcript was created with zero retention and its content has been purged", "content": { "application/json": { "schema": { @@ -2705,18 +2469,17 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { "type": "object", "properties": { - "file": { + "query": { "type": "string", - "format": "binary", - "description": "The media file to upload (audio, image, or video)." + "description": "Question to ask about the transcript" } }, "required": [ - "file" + "query" ] } } @@ -2729,32 +2492,40 @@ } ] }, - "/detect": { + "/speech-to-text/{uuid}/questions": { "get": { - "operationId": "list-detections", - "summary": "List all detects", - "description": "Retrieve a paginated list of all detect objects for the authenticated user's team", + "operationId": "list-transcript-questions", + "summary": "List intelligence questions", + "description": "List all questions asked about a transcript", "tags": [ - "deepfakeDetection" + "speechToText" ], "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, { "name": "page", "in": "query", - "description": "Page number (must be >= 1)", "required": true, "schema": { - "type": "integer" + "type": "integer", + "default": 1 } }, { - "name": "page_size", + "name": "per_page", "in": "query", - "description": "Number of items per page (10-1000)", "required": false, "schema": { "type": "integer", - "default": 10 + "default": 25 } }, { @@ -2769,26 +2540,51 @@ ], "responses": { "200": { - "description": "List of detects", + "description": "List of questions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Deepfake Detection_listDetections_Response_200" + "$ref": "#/components/schemas/Speech-to-Text_listTranscriptQuestions_Response_200" } } } } } }, - "post": { - "operationId": "create-detection", - "summary": "Create deepfake detection", - "description": "Analyze audio, image, and video for deepfake detection.\n\nSupply media via one of three intake methods:\n\n- **Direct file upload** — `multipart/form-data` with the file attached as `file`. Files must be 150 MB or smaller and use one of the supported audio/video/image extensions. For larger files, use the secure upload flow.\n- **Public URL** — `application/json` with a `url` field. The API fetches the URL itself.\n- **Secure upload token** — `application/json` with a `media_token` field obtained from `POST /secure_uploads`.\n\nExactly one of `file`, `url`, or `media_token` must be provided per request.\n", - "tags": [ - "deepfakeDetection" - ], - "parameters": [ - { + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/speech-to-text/{uuid}/questions/{question_uuid}": { + "get": { + "operationId": "get-transcript-question", + "summary": "Get intelligence question status", + "description": "Check the status of a specific question", + "tags": [ + "speechToText" + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "question_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { "name": "Authorization", "in": "header", "description": "API token from https://app.resemble.ai/account/api", @@ -2800,111 +2596,15 @@ ], "responses": { "200": { - "description": "Detection job created", + "description": "Question details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Deepfake Detection_createDetection_Response_200" + "$ref": "#/components/schemas/Speech-to-Text_getTranscriptQuestion_Response_200" } } } } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary", - "description": "The media file to analyze (audio, video, or image). Must be 150 MB or smaller." - }, - "callback_url": { - "type": "string", - "format": "uri", - "description": "POST destination for the detection result." - }, - "wait_for_intelligence": { - "type": "boolean", - "description": "Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time." - }, - "visualize": { - "type": "boolean", - "description": "Generate visualization artifacts" - }, - "frame_length": { - "type": "integer", - "default": 2, - "description": "Window size in seconds (audio/video)" - }, - "start_region": { - "type": "number", - "format": "double", - "description": "Start of segment to analyze (seconds)" - }, - "end_region": { - "type": "number", - "format": "double", - "description": "End of segment to analyze (seconds)" - }, - "max_video_secs": { - "type": "number", - "format": "double", - "description": "Cap processed duration" - }, - "modality": { - "$ref": "#/components/schemas/DetectPostRequestBodyContentMultipartFormDataSchemaModality", - "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n" - }, - "face_only": { - "type": "boolean", - "default": false, - "description": "Focus visual video detection on faces by masking non-face regions. Effective only for\nvideo inputs with `modality=all` or `modality=video`. Audio, image, and `modality=audio`\nvideo requests are accepted but use an effective value of `false`.\n" - }, - "intelligence": { - "type": "boolean", - "default": false, - "description": "Run multimodal intelligence analysis on the media" - }, - "infer_from_intelligence": { - "type": "boolean", - "default": false, - "description": "Opt in to let a strong intelligence finding escalate an otherwise non-fake verdict to \"Likely Fake\". Has no effect unless `intelligence` is also true." - }, - "audio_source_tracing": { - "type": "boolean", - "default": false, - "description": "Enable audio source tracing to identify synthetic audio origin" - }, - "signal": { - "type": "boolean", - "default": false, - "description": "Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections." - }, - "use_reverse_search": { - "type": "boolean", - "default": false, - "description": "Enable reverse image search to improve detection accuracy for image files. Only applies to image detections." - }, - "use_ood_detector": { - "type": "boolean", - "default": false, - "description": "Enable out-of-distribution detection" - }, - "zero_retention_mode": { - "type": "boolean", - "default": false, - "description": "Enable Zero Retention Mode to automatically delete submitted media after detection completes." - } - }, - "required": [ - "file" - ] - } - } - } } }, "servers": [ @@ -2913,32 +2613,32 @@ } ] }, - "/detect/{uuid}": { + "/audio_enhancements": { "get": { - "operationId": "get-detection", - "summary": "Get deepfake detection result", - "description": "Get a deepfake detection result by UUID. The item status describes the Detect job only; Intelligence runs separately and can still be processing after Detect reaches completed.", + "operationId": "list-audio-enhancements", + "summary": "List audio enhancements", + "description": "Returns a paginated list of all audio enhancements for your team, ordered by most recent first.", "tags": [ - "deepfakeDetection" + "audioEnhancement" ], "parameters": [ { - "name": "uuid", - "in": "path", - "description": "The UUID of the detect object", + "name": "page", + "in": "query", + "description": "Page number (starting from 1).", "required": true, "schema": { - "type": "string" + "type": "integer" } }, { - "name": "experts", + "name": "page_size", "in": "query", - "description": "When true, return all successfully completed Intelligence results as an array, or an empty array when none have completed successfully. When omitted or false, return one completed result when available; otherwise, return the current processing or failed result.", + "description": "Items per page (10 to 1000). Default 10.", "required": false, "schema": { - "type": "boolean", - "default": false + "type": "integer", + "default": 10 } }, { @@ -2953,40 +2653,33 @@ ], "responses": { "200": { - "description": "Detection result", + "description": "List of enhancements", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Deepfake Detection_getDetection_Response_200" + "$ref": "#/components/schemas/Audio Enhancement_listAudioEnhancements_Response_200" } } } }, - "404": { - "description": "Detect not found", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/ListAudioEnhancementsRequestBadRequestError" } } } } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/detect/batch": { "post": { - "operationId": "create-detect-batch", - "summary": "Create a batch deepfake detection job", - "description": "Submit up to 50 files in a single request and process them as a single logical\ngroup. Returns HTTP 202 with a batch UUID; each file is analyzed in the\nbackground and individual results are available via `GET /detect/{uuid}` for\neach entry in `detect_uuids`.\n\nTwo intake methods:\n\n- **Multiple media files** — repeated `files[]` form fields.\n- **Single zip archive** — a single `file` form field whose value is a `.zip`\n containing the media files. Non-media entries are skipped.\n\nProvide one of `files[]` or `file=<...>.zip` per request. Synchronous mode\n(`Prefer: wait`) is not supported and returns 400 if sent.\n\nConstraints:\n\n- Maximum 50 files per batch.\n- Maximum 500 MB total upload size across all files.\n- Allowed file types match `POST /detect`'s direct-upload allowlist.\n- All-or-nothing billing: if the team's wallet cannot cover the projected cost\n for every file, the request is rejected with 402 and no detects are created.\n", + "operationId": "create-audio-enhancement", + "summary": "Create audio enhancement", + "description": "Submit an audio file for enhancement. Processing happens asynchronously in the background.\nThe API defaults to the v2 enhancement engine. The v1 engine is legacy and will be sunset in a future release.\n", "tags": [ - "deepfakeDetection" + "audioEnhancement" ], "parameters": [ { @@ -3001,41 +2694,31 @@ ], "responses": { "202": { - "description": "Batch accepted", + "description": "Enhancement job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Deepfake Detection_createDetectBatch_Response_202" + "$ref": "#/components/schemas/Audio Enhancement_createAudioEnhancement_Response_202" } } } }, "400": { - "description": "Invalid batch request (missing files, both file and files[] supplied, file count or size exceeded, unsupported file type, or `Prefer: wait` header sent)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "402": { - "description": "Insufficient balance for the projected batch cost. Response `details` includes per-file estimates.", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/CreateAudioEnhancementRequestBadRequestError" } } } }, "403": { - "description": "Intelligence detect limit reached (Default plan).", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/CreateAudioEnhancementRequestForbiddenError" } } } @@ -3047,83 +2730,49 @@ "schema": { "type": "object", "properties": { - "files[]": { - "type": "array", - "items": { - "type": "string", - "format": "binary" - }, - "description": "One or more media files. Repeat the `files[]` field for each file. Mutually exclusive with `file`." - }, - "file": { + "audio_file": { "type": "string", "format": "binary", - "description": "A single `.zip` archive containing media files. Mutually exclusive with `files[]`." - }, - "callback_url": { - "type": "string", - "format": "uri", - "description": "POST destination invoked when the batch reaches a terminal state." + "description": "Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB." }, - "intelligence": { - "type": "boolean", - "default": false, - "description": "Run multimodal intelligence on every file in the batch." + "enhancement_engine": { + "$ref": "#/components/schemas/AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine", + "description": "Enhancement engine to use. Default is v2." }, - "infer_from_intelligence": { + "remove_noise": { "type": "boolean", - "default": false, - "description": "Opt in to let a strong intelligence finding escalate an otherwise non-fake verdict to \"Likely Fake\". Has no effect unless `intelligence` is also true." + "default": true, + "description": "Remove background noise. Engine v2 only." }, - "search_identity": { + "normalize": { "type": "boolean", - "default": false, - "description": "Run identity search against the team's saved identities (audio/video only)." + "default": true, + "description": "Normalize audio levels. Engine v2 only." }, - "visualize": { + "studio_sound": { "type": "boolean", "default": true, - "description": "Generate visualization artifacts." + "description": "Apply studio-quality enhancement. Engine v2 only." }, - "audio_source_tracing_enabled": { - "type": "boolean", - "default": false, - "description": "Enable audio source tracing on each audio file." + "enhancement_level": { + "type": "number", + "format": "double", + "description": "Enhancement intensity (0.0 to 1.0). Engine v1 only (legacy)." }, - "frame_length": { + "loudness_target_level": { "type": "integer", - "description": "Window size in seconds (audio/video)." - }, - "start_region": { - "type": "number", - "format": "double", - "description": "Start of segment to analyze (seconds)." - }, - "end_region": { - "type": "number", - "format": "double", - "description": "End of segment to analyze (seconds)." - }, - "max_video_secs": { - "type": "number", - "format": "double", - "description": "Cap processed video duration." - }, - "use_llm": { - "type": "boolean", - "description": "Use LLM-assisted video analysis." - }, - "face_only": { - "type": "boolean", - "default": false, - "description": "Focus detection on faces for video children by masking non-face regions. Audio and\nimage children use an effective value of `false`. Retrieve each child's effective value\nwith `GET /detect/{uuid}`; the aggregate batch response does not include this field.\n" + "default": -14, + "description": "Target loudness in LUFS. Engine v1 only (legacy)." }, - "zero_retention_mode": { - "type": "boolean", - "default": false, - "description": "Enable Zero Retention Mode for every file in the batch." + "loudness_peak_limit": { + "type": "integer", + "default": -1, + "description": "Peak limit in dBTP. Engine v1 only (legacy)." } - } + }, + "required": [ + "audio_file" + ] } } } @@ -3135,19 +2784,19 @@ } ] }, - "/detect/batch/{uuid}": { + "/audio_enhancements/{enhancement_uuid}": { "get": { - "operationId": "get-detect-batch", - "summary": "Get batch status", - "description": "Retrieve the latest aggregate status for a batch. The response shape mirrors\nthe create response — `status`, `completed_count`, and `failed_count` update\nas child detects progress. Use the `detect_uuids` array to fetch per-file\nresults via `GET /detect/{uuid}`.\n", + "operationId": "get-audio-enhancement", + "summary": "Get audio enhancement", + "description": "Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete.", "tags": [ - "deepfakeDetection" + "audioEnhancement" ], "parameters": [ { - "name": "uuid", + "name": "enhancement_uuid", "in": "path", - "description": "Batch UUID returned by `POST /detect/batch`.", + "description": "The UUID returned from the create endpoint.", "required": true, "schema": { "type": "string" @@ -3165,21 +2814,21 @@ ], "responses": { "200": { - "description": "Batch status", + "description": "Enhancement details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Deepfake Detection_getDetectBatch_Response_200" + "$ref": "#/components/schemas/Audio Enhancement_getAudioEnhancement_Response_200" } } } }, "404": { - "description": "Batch not found (or not accessible by the authenticated team).", + "description": "Not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/GetAudioEnhancementRequestNotFoundError" } } } @@ -3192,13 +2841,71 @@ } ] }, - "/intelligence": { + "/voices": { + "get": { + "operationId": "list-voices", + "summary": "List voices", + "description": "Retrieve voice metadata", + "tags": [ + "voices" + ], + "parameters": [ + { + "name": "page", + "in": "query", + "required": true, + "schema": { + "type": "integer", + "default": 1 + } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 10 + } + }, + { + "name": "advanced", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "List of voices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Voices_listVoices_Response_200" + } + } + } + } + } + }, "post": { - "operationId": "run-intelligence", - "summary": "Run intelligence", - "description": "Analyze audio, image, or video for comprehensive insights. Optionally reference an existing detect to associate.", + "operationId": "create-voice", + "summary": "Create voice", + "description": "Create a new voice", "tags": [ - "intelligence" + "voices" ], "parameters": [ { @@ -3213,11 +2920,11 @@ ], "responses": { "200": { - "description": "Intelligence analysis", + "description": "Voice created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Intelligence_runIntelligence_Response_200" + "$ref": "#/components/schemas/Voices_createVoice_Response_200" } } } @@ -3229,30 +2936,25 @@ "schema": { "type": "object", "properties": { - "media_token": { - "type": "string", - "description": "Token for uploaded media file (from secure upload)" + "name": { + "type": "string" }, - "url": { + "dataset_url": { "type": "string", - "format": "uri", - "description": "HTTPS URL to audio, image, or video file" + "format": "uri" }, - "detect_id": { + "callback_uri": { "type": "string", - "format": "uuid", - "description": "UUID of an existing detect to associate" - }, - "media_type": { - "$ref": "#/components/schemas/IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType", - "description": "Explicit media type (auto-detected if not provided)" + "format": "uri" }, - "callback_url": { + "language": { "type": "string", - "format": "uri", - "description": "URL that receives the final intelligence payload via HTTP POST. When present, the request runs asynchronously and returns 202 Accepted." + "default": "en-US" } - } + }, + "required": [ + "name" + ] } } } @@ -3264,32 +2966,21 @@ } ] }, - "/intelligences": { + "/voices/{voice_uuid}": { "get": { - "operationId": "list-intelligences", - "summary": "List intelligences", - "description": "Retrieve a paginated list of all intelligence reports for the authenticated user's team", + "operationId": "get-voice", + "summary": "Get voice", + "description": "Get voice details", "tags": [ - "intelligence" + "voices" ], "parameters": [ { - "name": "page", - "in": "query", - "description": "Page number (must be >= 1)", + "name": "voice_uuid", + "in": "path", "required": true, "schema": { - "type": "integer" - } - }, - { - "name": "page_size", - "in": "query", - "description": "Number of items per page (10-1000)", - "required": false, - "schema": { - "type": "integer", - "default": 10 + "type": "string" } }, { @@ -3304,36 +2995,28 @@ ], "responses": { "200": { - "description": "List of intelligence reports", + "description": "Voice details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Intelligence_listIntelligences_Response_200" + "$ref": "#/components/schemas/Voices_getVoice_Response_200" } } } } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/intelligences/{uuid}": { - "get": { - "operationId": "get-intelligence", - "summary": "Get intelligence", - "description": "Retrieve a single intelligence report by its UUID", + "delete": { + "operationId": "delete-voice", + "summary": "Delete voice", + "description": "Delete a voice", "tags": [ - "intelligence" + "voices" ], "parameters": [ { - "name": "uuid", + "name": "voice_uuid", "in": "path", - "description": "The UUID of the intelligence report", "required": true, "schema": { "type": "string" @@ -3351,21 +3034,11 @@ ], "responses": { "200": { - "description": "Intelligence report", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Intelligence_getIntelligence_Response_200" - } - } - } - }, - "404": { - "description": "Intelligence not found", + "description": "Voice deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Voices_deleteVoice_Response_200" } } } @@ -3378,19 +3051,18 @@ } ] }, - "/detects/{uuid}/intelligence": { + "/voices/{voice_uuid}/build": { "post": { - "operationId": "ask-detect-intelligence-question", - "summary": "Ask a question about a detection", - "description": "Submit a natural-language question about a completed detection report. Returns 202 Accepted while the answer is generated in the background.", + "operationId": "build-voice", + "summary": "Build voice", + "description": "Start voice training", "tags": [ - "detectIntelligence" + "voices" ], "parameters": [ { - "name": "uuid", + "name": "voice_uuid", "in": "path", - "description": "UUID of the completed detection report", "required": true, "schema": { "type": "string" @@ -3407,42 +3079,65 @@ } ], "responses": { - "202": { - "description": "Question accepted", + "200": { + "description": "Build started", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Detect Intelligence_askDetectIntelligenceQuestion_Response_202" + "$ref": "#/components/schemas/Voices_buildVoice_Response_200" } } } - }, - "400": { - "description": "Bad request (missing query)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Detection not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "fill": { + "type": "boolean", + "default": false + } } } } - }, - "422": { - "description": "Detection not completed", + } + } + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/voice-design": { + "post": { + "operationId": "generate-voice-design", + "summary": "Generate voice candidates", + "description": "Generate three voice candidates from a text prompt", + "tags": [ + "voiceDesign" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Voice candidates generated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Voice Design_generateVoiceDesign_Response_200" } } } @@ -3450,17 +3145,17 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "query": { + "user_prompt": { "type": "string", - "description": "The natural-language question to ask about the detection" + "description": "Description of desired voice" } }, "required": [ - "query" + "user_prompt" ] } } @@ -3473,33 +3168,15 @@ } ] }, - "/detects/{uuid}/intelligence/{question_uuid}": { - "get": { - "operationId": "get-detect-intelligence-question", - "summary": "Get answer to a detection question", - "description": "Retrieve the status and answer for a previously submitted question. Poll until status is completed or failed.", + "/voice-design/create": { + "post": { + "operationId": "create-voice-from-candidate", + "summary": "Create voice from candidate", + "description": "Create a voice from a voice design candidate", "tags": [ - "detectIntelligence" + "voiceDesign" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "description": "UUID of the detection report", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "question_uuid", - "in": "path", - "description": "UUID of the question", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "Authorization", "in": "header", @@ -3512,22 +3189,37 @@ ], "responses": { "200": { - "description": "Question status and answer", + "description": "Voice created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Detect Intelligence_getDetectIntelligenceQuestion_Response_200" + "$ref": "#/components/schemas/Voice Design_createVoiceFromCandidate_Response_200" } } } - }, - "404": { - "description": "Question not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "voice_sample_index": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "required": [ + "uuid", + "voice_sample_index", + "name" + ] } } } @@ -3539,28 +3231,35 @@ } ] }, - "/audio_source_tracings": { + "/voices/{voice_uuid}/recordings": { "get": { - "operationId": "list-audio-source-tracings", - "summary": "List audio source tracings", - "description": "Retrieve a paginated list of all source tracing reports for the authenticated user's team", + "operationId": "list-recordings", + "summary": "List recordings", + "description": "List all recordings for a voice", "tags": [ - "audioSourceTracing" + "recordings" ], "parameters": [ + { + "name": "voice_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "page", "in": "query", - "description": "Page number (must be >= 1)", "required": true, "schema": { - "type": "integer" + "type": "integer", + "default": 1 } }, { "name": "page_size", "in": "query", - "description": "Number of items per page (10-1000)", "required": false, "schema": { "type": "integer", @@ -3579,36 +3278,28 @@ ], "responses": { "200": { - "description": "List of source tracing reports", + "description": "List of recordings", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio Source Tracing_listAudioSourceTracings_Response_200" + "$ref": "#/components/schemas/Recordings_listRecordings_Response_200" } } } } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/audio_source_tracings/{uuid}": { - "get": { - "operationId": "get-audio-source-tracing", - "summary": "Get audio source tracing", - "description": "Retrieve a single source tracing report by its UUID", + "post": { + "operationId": "create-recording", + "summary": "Create recording", + "description": "Upload a new recording for voice training", "tags": [ - "audioSourceTracing" + "recordings" ], "parameters": [ { - "name": "uuid", + "name": "voice_uuid", "in": "path", - "description": "The UUID of the source tracing report", "required": true, "schema": { "type": "string" @@ -3626,22 +3317,55 @@ ], "responses": { "200": { - "description": "Source tracing report", + "description": "Recording created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio Source Tracing_getAudioSourceTracing_Response_200" + "$ref": "#/components/schemas/Recordings_createRecording_Response_200" } } } - }, - "404": { - "description": "Source tracing report not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } + } + }, + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary", + "description": "Audio file (WAV recommended, 1-12 seconds)" + }, + "name": { + "type": "string", + "description": "Display name" + }, + "text": { + "type": "string", + "description": "Transcript of the clip" + }, + "emotion": { + "type": "string", + "description": "Emotion label" + }, + "is_active": { + "type": "boolean", + "description": "Include in training" + }, + "fill": { + "type": "boolean", + "description": "Include for Resemble Fill" + } + }, + "required": [ + "file", + "name", + "text", + "emotion", + "is_active" + ] } } } @@ -3653,38 +3377,27 @@ } ] }, - "/identity": { + "/voices/{voice_uuid}/recordings/{recording_id}": { "get": { - "operationId": "list-identities", - "summary": "List identities", - "description": "List the team's identities, newest first", + "operationId": "get-recording", + "summary": "Get recording", + "description": "Get recording details", "tags": [ - "identity" + "recordings" ], "parameters": [ { - "name": "page", - "in": "query", - "required": false, + "name": "voice_uuid", + "in": "path", + "required": true, "schema": { - "type": "integer", - "default": 1 + "type": "string" } }, { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, - { - "name": "search", - "in": "query", - "description": "Filter by identity name", - "required": false, + "name": "recording_id", + "in": "path", + "required": true, "schema": { "type": "string" } @@ -3701,25 +3414,41 @@ ], "responses": { "200": { - "description": "List of identities", + "description": "Recording details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Identity_listIdentities_Response_200" + "$ref": "#/components/schemas/Recordings_getRecording_Response_200" } } } } } }, - "post": { - "operationId": "create-identity", - "summary": "Create identity", - "description": "Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility).\n", + "delete": { + "operationId": "delete-recording", + "summary": "Delete recording", + "description": "Delete a recording", "tags": [ - "identity" + "recordings" ], "parameters": [ + { + "name": "voice_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "recording_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "in": "header", @@ -3732,53 +3461,35 @@ ], "responses": { "200": { - "description": "Identity created (simple form)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Identity_createIdentity_Response_200" - } - } - } - }, - "422": { - "description": "Validation failed or no audio source supplied", + "description": "Recording deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Recordings_deleteRecording_Response_200" } } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Identity_createIdentity_Request" - } - } - } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/identity/{uuid}": { - "delete": { - "operationId": "delete-identity", - "summary": "Delete identity", - "description": "Delete an identity and withdraw its enrollment from matching", + "patch": { + "operationId": "update-recording", + "summary": "Update recording", + "description": "Update a recording", "tags": [ - "identity" + "recordings" ], "parameters": [ { - "name": "uuid", + "name": "voice_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "recording_id", "in": "path", "required": true, "schema": { @@ -3797,21 +3508,34 @@ ], "responses": { "200": { - "description": "Identity deleted", + "description": "Recording updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Identity_deleteIdentity_Response_200" + "$ref": "#/components/schemas/Recordings_updateRecording_Response_200" } } } - }, - "403": { - "description": "The identity belongs to another team", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "text": { + "type": "string" + }, + "emotion": { + "type": "string" + }, + "is_active": { + "type": "boolean" + } } } } @@ -3824,21 +3548,31 @@ } ] }, - "/identity/{uuid}/attachments": { - "post": { - "operationId": "create-identity-attachment", - "summary": "Add reference media", - "description": "Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready.\n", + "/term_substitutions": { + "get": { + "operationId": "list-term-substitutions", + "summary": "List term substitutions", + "description": "List all term substitutions", "tags": [ - "identity" + "termSubstitutions" ], "parameters": [ { - "name": "uuid", - "in": "path", + "name": "page", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "integer", + "default": 1 + } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 10 } }, { @@ -3852,42 +3586,43 @@ } ], "responses": { - "201": { - "description": "Media attached; returns the updated identity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Identity" - } - } - } - }, - "400": { - "description": "Missing or invalid modality, or missing file", + "200": { + "description": "List of term substitutions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Term Substitutions_listTermSubstitutions_Response_200" } } } - }, - "404": { - "description": "Identity not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } + } + } + }, + "post": { + "operationId": "create-term-substitution", + "summary": "Create term substitution", + "description": "Create a new pronunciation substitution", + "tags": [ + "termSubstitutions" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" } - }, - "422": { - "description": "Face photo limit reached (a person identity accepts at most 5 face photos)", + } + ], + "responses": { + "200": { + "description": "Term substitution created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Term Substitutions_createTermSubstitution_Response_200" } } } @@ -3895,22 +3630,22 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { "type": "object", "properties": { - "modality": { - "$ref": "#/components/schemas/IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" + "original_text": { + "type": "string", + "description": "Original text to substitute" }, - "file": { + "replacement_text": { "type": "string", - "format": "binary", - "description": "The media file to attach" + "description": "Replacement pronunciation" } }, "required": [ - "modality", - "file" + "original_text", + "replacement_text" ] } } @@ -3923,27 +3658,18 @@ } ] }, - "/identity/{uuid}/attachments/{attachment_id}": { - "delete": { - "operationId": "delete-identity-attachment", - "summary": "Remove reference media", - "description": "Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed file.\n", + "/term_substitutions/{id}": { + "get": { + "operationId": "get-term-substitution", + "summary": "Get term substitution", + "description": "Get term substitution details", "tags": [ - "identity" + "termSubstitutions" ], "parameters": [ { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "attachment_id", + "name": "id", "in": "path", - "description": "The id of an entry in the identity's voice_samples, face_photos, or reference_videos array", "required": true, "schema": { "type": "integer" @@ -3960,22 +3686,51 @@ } ], "responses": { - "204": { - "description": "Media removed", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Identity_deleteIdentityAttachment_Response_204" - } - } - } - }, - "404": { - "description": "Identity or attachment not found", + "200": { + "description": "Term substitution details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Term Substitutions_getTermSubstitution_Response_200" + } + } + } + } + } + }, + "delete": { + "operationId": "delete-term-substitution", + "summary": "Delete term substitution", + "description": "Delete a term substitution", + "tags": [ + "termSubstitutions" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Term substitution deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Term Substitutions_deleteTermSubstitution_Response_200" } } } @@ -3988,15 +3743,51 @@ } ] }, - "/identity/search": { - "post": { - "operationId": "search-identities", - "summary": "Search identities", - "description": "Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search.\n", + "/pronunciations": { + "get": { + "operationId": "list-pronunciations", + "summary": "List custom pronunciations", + "description": "Retrieve all custom pronunciations for your team, with optional filters.", "tags": [ - "identity" + "customPronunciations" ], "parameters": [ + { + "name": "language", + "in": "query", + "description": "Filter by language (e.g., en-us)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "domain", + "in": "query", + "description": "Filter by domain (e.g., medical)", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Filter by processing status", + "required": false, + "schema": { + "$ref": "#/components/schemas/PronunciationsGetParametersStatus" + } + }, + { + "name": "active", + "in": "query", + "description": "Filter by active state", + "required": false, + "schema": { + "type": "boolean" + } + }, { "name": "Authorization", "in": "header", @@ -4009,27 +3800,48 @@ ], "responses": { "200": { - "description": "Search results", + "description": "List of custom pronunciations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Identity_searchIdentities_Response_200" + "$ref": "#/components/schemas/Custom Pronunciations_listPronunciations_Response_200" } } } - }, - "400": { - "description": "Search failed", + } + } + }, + "post": { + "operationId": "create-pronunciation", + "summary": "Create custom pronunciation", + "description": "Upload a single pronunciation with a reference audio file.", + "tags": [ + "customPronunciations" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Pronunciation created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Custom Pronunciations_createPronunciation_Response_201" } } } }, "422": { - "description": "Missing media or unsupported modality", + "description": "Validation error (e.g., duplicate word)", "content": { "application/json": { "schema": { @@ -4041,28 +3853,24 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "url": { + "word": { "type": "string", - "format": "uri", - "description": "URL to the media sample (one of url, file, signed_id is required)" + "description": "The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only." }, - "signed_id": { + "audio": { "type": "string", - "description": "Signed ID from a secure upload" - }, - "modality": { - "$ref": "#/components/schemas/IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality", - "description": "Inferred from the media's content type when omitted (defaults to audio)" - }, - "top_k": { - "type": "integer", - "default": 1 + "format": "binary", + "description": "Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB." } - } + }, + "required": [ + "word", + "audio" + ] } } } @@ -4074,13 +3882,13 @@ } ] }, - "/watermark/apply": { + "/pronunciations/bulk": { "post": { - "operationId": "apply-watermark", - "summary": "Apply watermark", - "description": "Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.", + "operationId": "bulk-create-pronunciations", + "summary": "Bulk create pronunciations from ZIP", + "description": "Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.", "tags": [ - "watermark" + "customPronunciations" ], "parameters": [ { @@ -4091,24 +3899,15 @@ "schema": { "type": "string" } - }, - { - "name": "Prefer", - "in": "header", - "description": "When set to \"wait\", the API processes synchronously and returns the completed result.", - "required": false, - "schema": { - "$ref": "#/components/schemas/WatermarkApplyPostParametersPrefer" - } } ], "responses": { - "200": { - "description": "Watermark job created", + "201": { + "description": "Bulk creation result", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WatermarkApplyResponse" + "$ref": "#/components/schemas/Custom Pronunciations_bulkCreatePronunciations_Response_201" } } } @@ -4116,9 +3915,19 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/WatermarkApplyRequest" + "type": "object", + "properties": { + "zip": { + "type": "string", + "format": "binary", + "description": "ZIP file containing audio files. Max 50 files, max 100MB total." + } + }, + "required": [ + "zip" + ] } } } @@ -4130,13 +3939,13 @@ } ] }, - "/watermark/apply/{uuid}/result": { + "/pronunciations/{uuid}": { "get": { - "operationId": "get-watermark-apply-result", - "summary": "Get watermark apply result", - "description": "Retrieve the result of a watermark apply job.", + "operationId": "get-pronunciation", + "summary": "Get custom pronunciation", + "description": "Retrieve a single custom pronunciation by UUID", "tags": [ - "watermark" + "customPronunciations" ], "parameters": [ { @@ -4144,7 +3953,8 @@ "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { @@ -4159,86 +3969,73 @@ ], "responses": { "200": { - "description": "Apply result", + "description": "Pronunciation details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WatermarkApplyResponse" + "$ref": "#/components/schemas/Custom Pronunciations_getPronunciation_Response_200" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" } } } } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/watermark/detect": { - "post": { - "operationId": "detect-watermark", - "summary": "Detect watermark", - "description": "Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.", + "delete": { + "operationId": "delete-pronunciation", + "summary": "Delete custom pronunciation", + "description": "Permanently remove a custom pronunciation. Takes effect immediately.", "tags": [ - "watermark" + "customPronunciations" ], "parameters": [ { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", + "name": "uuid", + "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { - "name": "Prefer", + "name": "Authorization", "in": "header", - "description": "When set to \"wait\", the API processes synchronously and returns the completed result with metrics.", - "required": false, + "description": "API token from https://app.resemble.ai/account/api", + "required": true, "schema": { - "$ref": "#/components/schemas/WatermarkDetectPostParametersPrefer" + "type": "string" } } ], "responses": { "200": { - "description": "Detection job created", + "description": "Pronunciation deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WatermarkDetectResponse" + "$ref": "#/components/schemas/Custom Pronunciations_deletePronunciation_Response_200" } } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WatermarkDetectRequest" - } - } - } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/watermark/detect/{uuid}/result": { - "get": { - "operationId": "get-watermark-detection-result", - "summary": "Get watermark detection result", - "description": "Retrieve the result of a watermark detection.", + "patch": { + "operationId": "update-pronunciation", + "summary": "Toggle pronunciation active status", + "description": "Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis.", "tags": [ - "watermark" + "customPronunciations" ], "parameters": [ { @@ -4246,7 +4043,8 @@ "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { @@ -4261,15 +4059,33 @@ ], "responses": { "200": { - "description": "Detection result", + "description": "Pronunciation updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WatermarkDetectResponse" + "$ref": "#/components/schemas/Custom Pronunciations_updatePronunciation_Response_200" } } } } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "description": "Set to false to disable, true to re-enable" + } + }, + "required": [ + "active" + ] + } + } + } } }, "servers": [ @@ -4278,42 +4094,15 @@ } ] }, - "/voices": { + "/voice_settings_presets": { "get": { - "operationId": "list-voices", - "summary": "List voices", - "description": "Retrieve voice metadata", + "operationId": "list-voice-settings-presets", + "summary": "List voice settings presets", + "description": "List all voice settings presets", "tags": [ - "voices" + "voiceSettingsPresets" ], "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, - { - "name": "advanced", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - }, { "name": "Authorization", "in": "header", @@ -4326,11 +4115,11 @@ ], "responses": { "200": { - "description": "List of voices", + "description": "List of presets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_listVoices_Response_200" + "$ref": "#/components/schemas/Voice Settings Presets_listVoiceSettingsPresets_Response_200" } } } @@ -4338,11 +4127,11 @@ } }, "post": { - "operationId": "create-voice", - "summary": "Create voice", - "description": "Create a new voice", + "operationId": "create-voice-settings-preset", + "summary": "Create voice settings preset", + "description": "Create a new voice settings preset (max 5 per user)", "tags": [ - "voices" + "voiceSettingsPresets" ], "parameters": [ { @@ -4356,12 +4145,12 @@ } ], "responses": { - "200": { - "description": "Voice created", + "201": { + "description": "Preset created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_createVoice_Response_200" + "$ref": "#/components/schemas/Voice Settings Presets_createVoiceSettingsPreset_Response_201" } } } @@ -4374,19 +4163,42 @@ "type": "object", "properties": { "name": { - "type": "string" - }, - "dataset_url": { "type": "string", - "format": "uri" + "description": "Preset name (unique, max 30 characters)" }, - "callback_uri": { - "type": "string", - "format": "uri" + "pace": { + "type": "number", + "format": "double", + "default": 1, + "description": "Speech pace/speed" }, - "language": { + "temperature": { + "type": "number", + "format": "double", + "default": 0.8, + "description": "Voice variation" + }, + "pitch": { + "type": "number", + "format": "double", + "default": 0, + "description": "Voice pitch adjustment" + }, + "useHd": { + "type": "boolean", + "default": false, + "description": "Use HD quality" + }, + "exaggeration": { + "type": "number", + "format": "double", + "default": 0.5, + "description": "Emotional exaggeration" + }, + "description": { "type": "string", - "default": "en-US" + "default": "", + "description": "Voice style prompt" } }, "required": [ @@ -4403,17 +4215,17 @@ } ] }, - "/voices/{voice_uuid}": { + "/voice_settings_presets/{uuid}": { "get": { - "operationId": "get-voice", - "summary": "Get voice", - "description": "Get voice details", + "operationId": "get-voice-settings-preset", + "summary": "Get voice settings preset", + "description": "Get preset details", "tags": [ - "voices" + "voiceSettingsPresets" ], "parameters": [ { - "name": "voice_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { @@ -4432,11 +4244,11 @@ ], "responses": { "200": { - "description": "Voice details", + "description": "Preset details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_getVoice_Response_200" + "$ref": "#/components/schemas/Voice Settings Presets_getVoiceSettingsPreset_Response_200" } } } @@ -4444,15 +4256,15 @@ } }, "delete": { - "operationId": "delete-voice", - "summary": "Delete voice", - "description": "Delete a voice", + "operationId": "delete-voice-settings-preset", + "summary": "Delete voice settings preset", + "description": "Delete a preset", "tags": [ - "voices" + "voiceSettingsPresets" ], "parameters": [ { - "name": "voice_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { @@ -4471,34 +4283,27 @@ ], "responses": { "200": { - "description": "Voice deleted", + "description": "Preset deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_deleteVoice_Response_200" + "$ref": "#/components/schemas/Voice Settings Presets_deleteVoiceSettingsPreset_Response_200" } } } } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/voices/{voice_uuid}/build": { - "post": { - "operationId": "build-voice", - "summary": "Build voice", - "description": "Start voice training", + "patch": { + "operationId": "update-voice-settings-preset", + "summary": "Update voice settings preset", + "description": "Update a preset", "tags": [ - "voices" + "voiceSettingsPresets" ], "parameters": [ { - "name": "voice_uuid", + "name": "uuid", "in": "path", "required": true, "schema": { @@ -4517,11 +4322,11 @@ ], "responses": { "200": { - "description": "Build started", + "description": "Preset updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_buildVoice_Response_200" + "$ref": "#/components/schemas/Voice Settings Presets_updateVoiceSettingsPreset_Response_200" } } } @@ -4533,9 +4338,30 @@ "schema": { "type": "object", "properties": { - "fill": { - "type": "boolean", - "default": false + "name": { + "type": "string" + }, + "pace": { + "type": "number", + "format": "double" + }, + "temperature": { + "type": "number", + "format": "double" + }, + "pitch": { + "type": "number", + "format": "double" + }, + "useHd": { + "type": "boolean" + }, + "exaggeration": { + "type": "number", + "format": "double" + }, + "description": { + "type": "string" } } } @@ -4549,15 +4375,33 @@ } ] }, - "/voice-design": { - "post": { - "operationId": "generate-voice-design", - "summary": "Generate voice candidates", - "description": "Generate three voice candidates from a text prompt", + "/projects": { + "get": { + "operationId": "list-projects", + "summary": "List projects", + "description": "List all projects", "tags": [ - "voiceDesign" + "projects" ], "parameters": [ + { + "name": "page", + "in": "query", + "required": true, + "schema": { + "type": "integer", + "default": 1 + } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 10 + } + }, { "name": "Authorization", "in": "header", @@ -4570,48 +4414,23 @@ ], "responses": { "200": { - "description": "Voice candidates generated", + "description": "List of projects", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voice Design_generateVoiceDesign_Response_200" + "$ref": "#/components/schemas/Projects_listProjects_Response_200" } } } } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "user_prompt": { - "type": "string", - "description": "Description of desired voice" - } - }, - "required": [ - "user_prompt" - ] - } - } - } } }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/voice-design/create": { "post": { - "operationId": "create-voice-from-candidate", - "summary": "Create voice from candidate", - "description": "Create a voice from a voice design candidate", + "operationId": "create-project", + "summary": "Create project", + "description": "Create a new project", "tags": [ - "voiceDesign" + "projects" ], "parameters": [ { @@ -4626,11 +4445,11 @@ ], "responses": { "200": { - "description": "Voice created", + "description": "Project created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voice Design_createVoiceFromCandidate_Response_200" + "$ref": "#/components/schemas/Projects_createProject_Response_200" } } } @@ -4642,20 +4461,24 @@ "schema": { "type": "object", "properties": { - "uuid": { + "name": { "type": "string" }, - "voice_sample_index": { - "type": "integer" - }, - "name": { + "description": { "type": "string" + }, + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { + "type": "boolean" } }, "required": [ - "uuid", - "voice_sample_index", - "name" + "name", + "description", + "is_collaborative", + "is_archived" ] } } @@ -4668,41 +4491,23 @@ } ] }, - "/voices/{voice_uuid}/recordings": { + "/projects/{project_uuid}": { "get": { - "operationId": "list-recordings", - "summary": "List recordings", - "description": "List all recordings for a voice", + "operationId": "get-project", + "summary": "Get project", + "description": "Get project details", "tags": [ - "recordings" + "projects" ], "parameters": [ { - "name": "voice_uuid", + "name": "project_uuid", "in": "path", "required": true, "schema": { "type": "string" } }, - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, { "name": "Authorization", "in": "header", @@ -4715,27 +4520,27 @@ ], "responses": { "200": { - "description": "List of recordings", + "description": "Project details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_listRecordings_Response_200" + "$ref": "#/components/schemas/Projects_getProject_Response_200" } } } } } }, - "post": { - "operationId": "create-recording", - "summary": "Create recording", - "description": "Upload a new recording for voice training", + "put": { + "operationId": "update-project", + "summary": "Update project", + "description": "Update a project", "tags": [ - "recordings" + "projects" ], "parameters": [ { - "name": "voice_uuid", + "name": "project_uuid", "in": "path", "required": true, "schema": { @@ -4754,11 +4559,11 @@ ], "responses": { "200": { - "description": "Recording created", + "description": "Project updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_createRecording_Response_200" + "$ref": "#/components/schemas/Projects_updateProject_Response_200" } } } @@ -4766,43 +4571,62 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { "type": "object", "properties": { - "file": { - "type": "string", - "format": "binary", - "description": "Audio file (WAV recommended, 1-12 seconds)" - }, "name": { - "type": "string", - "description": "Display name" - }, - "text": { - "type": "string", - "description": "Transcript of the clip" + "type": "string" }, - "emotion": { - "type": "string", - "description": "Emotion label" + "description": { + "type": "string" }, - "is_active": { - "type": "boolean", - "description": "Include in training" + "is_collaborative": { + "type": "boolean" }, - "fill": { - "type": "boolean", - "description": "Include for Resemble Fill" + "is_archived": { + "type": "boolean" } - }, - "required": [ - "file", - "name", - "text", - "emotion", - "is_active" - ] + } + } + } + } + } + }, + "delete": { + "operationId": "delete-project", + "summary": "Delete project", + "description": "Delete a project", + "tags": [ + "projects" + ], + "parameters": [ + { + "name": "project_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Project deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Projects_deleteProject_Response_200" + } } } } @@ -4814,17 +4638,17 @@ } ] }, - "/voices/{voice_uuid}/recordings/{recording_id}": { + "/projects/{project_uuid}/clips": { "get": { - "operationId": "get-recording", - "summary": "Get recording", - "description": "Get recording details", + "operationId": "list-clips", + "summary": "List clips", + "description": "List clips in a project", "tags": [ - "recordings" + "clips" ], "parameters": [ { - "name": "voice_uuid", + "name": "project_uuid", "in": "path", "required": true, "schema": { @@ -4832,11 +4656,21 @@ } }, { - "name": "recording_id", - "in": "path", + "name": "page", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "integer", + "default": 1 + } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 10 } }, { @@ -4851,27 +4685,34 @@ ], "responses": { "200": { - "description": "Recording details", + "description": "List of clips", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_getRecording_Response_200" + "$ref": "#/components/schemas/Clips_listClips_Response_200" } } } } } }, - "delete": { - "operationId": "delete-recording", - "summary": "Delete recording", - "description": "Delete a recording", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/projects/{project_uuid}/clips/{clip_uuid}": { + "get": { + "operationId": "get-clip", + "summary": "Get clip", + "description": "Get clip details", "tags": [ - "recordings" + "clips" ], "parameters": [ { - "name": "voice_uuid", + "name": "project_uuid", "in": "path", "required": true, "schema": { @@ -4879,7 +4720,7 @@ } }, { - "name": "recording_id", + "name": "clip_uuid", "in": "path", "required": true, "schema": { @@ -4898,27 +4739,27 @@ ], "responses": { "200": { - "description": "Recording deleted", + "description": "Clip details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_deleteRecording_Response_200" + "$ref": "#/components/schemas/Clips_getClip_Response_200" } } } } } }, - "patch": { - "operationId": "update-recording", - "summary": "Update recording", - "description": "Update a recording", + "delete": { + "operationId": "delete-clip", + "summary": "Delete clip", + "description": "Delete a clip", "tags": [ - "recordings" + "clips" ], "parameters": [ { - "name": "voice_uuid", + "name": "project_uuid", "in": "path", "required": true, "schema": { @@ -4926,7 +4767,7 @@ } }, { - "name": "recording_id", + "name": "clip_uuid", "in": "path", "required": true, "schema": { @@ -4945,11 +4786,58 @@ ], "responses": { "200": { - "description": "Recording updated", + "description": "Clip deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_updateRecording_Response_200" + "$ref": "#/components/schemas/Clips_deleteClip_Response_200" + } + } + } + } + } + }, + "patch": { + "operationId": "update-clip", + "summary": "Update clip", + "description": "Update a clip", + "tags": [ + "clips" + ], + "parameters": [ + { + "name": "project_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "clip_uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Clip updated", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Clips_updateClip_Response_200" } } } @@ -4961,16 +4849,13 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "text": { + "title": { "type": "string" }, - "emotion": { + "body": { "type": "string" }, - "is_active": { + "is_archived": { "type": "boolean" } } @@ -4985,33 +4870,15 @@ } ] }, - "/term_substitutions": { + "/duet_voices": { "get": { - "operationId": "list-term-substitutions", - "summary": "List term substitutions", - "description": "List all term substitutions", + "operationId": "list-duet-voices", + "summary": "List duet voices", + "description": "Returns default and custom duet voices", "tags": [ - "termSubstitutions" + "duets" ], "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, { "name": "Authorization", "in": "header", @@ -5024,11 +4891,11 @@ ], "responses": { "200": { - "description": "List of term substitutions", + "description": "List of duet voices", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term Substitutions_listTermSubstitutions_Response_200" + "$ref": "#/components/schemas/Duets_listDuetVoices_Response_200" } } } @@ -5036,11 +4903,11 @@ } }, "post": { - "operationId": "create-term-substitution", - "summary": "Create term substitution", - "description": "Create a new pronunciation substitution", + "operationId": "create-duet-voice", + "summary": "Create custom duet voice", + "description": "Create a custom voice for duet generation", "tags": [ - "termSubstitutions" + "duets" ], "parameters": [ { @@ -5055,11 +4922,11 @@ ], "responses": { "200": { - "description": "Term substitution created", + "description": "Duet voice created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term Substitutions_createTermSubstitution_Response_200" + "$ref": "#/components/schemas/Duets_createDuetVoice_Response_200" } } } @@ -5067,22 +4934,27 @@ }, "requestBody": { "content": { - "application/json": { + "multipart/form-data": { "schema": { "type": "object", "properties": { - "original_text": { + "name": { "type": "string", - "description": "Original text to substitute" + "description": "Voice name" }, - "replacement_text": { + "style_prompt": { "type": "string", - "description": "Replacement pronunciation" + "description": "Optional style prompt" + }, + "audio": { + "type": "string", + "format": "binary", + "description": "Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)" } }, "required": [ - "original_text", - "replacement_text" + "name", + "audio" ] } } @@ -5095,13 +4967,13 @@ } ] }, - "/term_substitutions/{id}": { - "get": { - "operationId": "get-term-substitution", - "summary": "Get term substitution", - "description": "Get term substitution details", + "/duet_voices/{id}": { + "put": { + "operationId": "update-duet-voice", + "summary": "Update duet voice", + "description": "Update a custom duet voice (default voices cannot be modified)", "tags": [ - "termSubstitutions" + "duets" ], "parameters": [ { @@ -5124,11 +4996,28 @@ ], "responses": { "200": { - "description": "Term substitution details", + "description": "Duet voice updated", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term Substitutions_getTermSubstitution_Response_200" + "$ref": "#/components/schemas/Duets_updateDuetVoice_Response_200" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "style_prompt": { + "type": "string" + } } } } @@ -5136,11 +5025,11 @@ } }, "delete": { - "operationId": "delete-term-substitution", - "summary": "Delete term substitution", - "description": "Delete a term substitution", + "operationId": "delete-duet-voice", + "summary": "Delete duet voice", + "description": "Delete a custom duet voice (default voices cannot be deleted)", "tags": [ - "termSubstitutions" + "duets" ], "parameters": [ { @@ -5163,11 +5052,11 @@ ], "responses": { "200": { - "description": "Term substitution deleted", + "description": "Duet voice deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term Substitutions_deleteTermSubstitution_Response_200" + "$ref": "#/components/schemas/Duets_deleteDuetVoice_Response_200" } } } @@ -5180,51 +5069,15 @@ } ] }, - "/pronunciations": { + "/duet_voice_pairs": { "get": { - "operationId": "list-pronunciations", - "summary": "List custom pronunciations", - "description": "Retrieve all custom pronunciations for your team, with optional filters.", + "operationId": "list-duet-voice-pairs", + "summary": "List duet voice pairs", + "description": "List all voice pairs for duet generation", "tags": [ - "customPronunciations" + "duets" ], "parameters": [ - { - "name": "language", - "in": "query", - "description": "Filter by language (e.g., en-us)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "domain", - "in": "query", - "description": "Filter by domain (e.g., medical)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "status", - "in": "query", - "description": "Filter by processing status", - "required": false, - "schema": { - "$ref": "#/components/schemas/PronunciationsGetParametersStatus" - } - }, - { - "name": "active", - "in": "query", - "description": "Filter by active state", - "required": false, - "schema": { - "type": "boolean" - } - }, { "name": "Authorization", "in": "header", @@ -5237,11 +5090,11 @@ ], "responses": { "200": { - "description": "List of custom pronunciations", + "description": "List of voice pairs", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_listPronunciations_Response_200" + "$ref": "#/components/schemas/Duets_listDuetVoicePairs_Response_200" } } } @@ -5249,11 +5102,11 @@ } }, "post": { - "operationId": "create-pronunciation", - "summary": "Create custom pronunciation", - "description": "Upload a single pronunciation with a reference audio file.", + "operationId": "create-duet-voice-pair", + "summary": "Create duet voice pair", + "description": "Create a voice pair for duet generation", "tags": [ - "customPronunciations" + "duets" ], "parameters": [ { @@ -5267,22 +5120,12 @@ } ], "responses": { - "201": { - "description": "Pronunciation created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_createPronunciation_Response_201" - } - } - } - }, - "422": { - "description": "Validation error (e.g., duplicate word)", + "200": { + "description": "Voice pair created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Duets_createDuetVoicePair_Response_200" } } } @@ -5290,23 +5133,26 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { "type": "object", "properties": { - "word": { - "type": "string", - "description": "The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only." + "voice_1_id": { + "type": "integer", + "description": "ID of first voice" }, - "audio": { + "voice_2_id": { + "type": "integer", + "description": "ID of second voice" + }, + "name": { "type": "string", - "format": "binary", - "description": "Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB." + "description": "Optional pair name" } }, "required": [ - "word", - "audio" + "voice_1_id", + "voice_2_id" ] } } @@ -5319,13 +5165,13 @@ } ] }, - "/pronunciations/bulk": { + "/duet": { "post": { - "operationId": "bulk-create-pronunciations", - "summary": "Bulk create pronunciations from ZIP", - "description": "Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.", + "operationId": "generate-duet", + "summary": "Generate duet", + "description": "Generate conversational audio with two speakers", "tags": [ - "customPronunciations" + "duets" ], "parameters": [ { @@ -5339,12 +5185,12 @@ } ], "responses": { - "201": { - "description": "Bulk creation result", + "200": { + "description": "Duet generation job created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_bulkCreatePronunciations_Response_201" + "$ref": "#/components/schemas/Duets_generateDuet_Response_200" } } } @@ -5352,18 +5198,33 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { "type": "object", "properties": { - "zip": { + "voice_pair_id": { + "type": "integer", + "description": "Voice pair ID to use" + }, + "script": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DuetPostRequestBodyContentApplicationJsonSchemaScriptItems" + } + }, + "title": { "type": "string", - "format": "binary", - "description": "ZIP file containing audio files. Max 50 files, max 100MB total." + "description": "Optional title for the duet" + }, + "callback_uri": { + "type": "string", + "format": "uri", + "description": "Webhook URL for completion notification" } }, "required": [ - "zip" + "voice_pair_id", + "script" ] } } @@ -5376,24 +5237,15 @@ } ] }, - "/pronunciations/{uuid}": { + "/account": { "get": { - "operationId": "get-pronunciation", - "summary": "Get custom pronunciation", - "description": "Retrieve a single custom pronunciation by UUID", + "operationId": "get-account", + "summary": "Get account", + "description": "Get account information", "tags": [ - "customPronunciations" + "account" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -5406,44 +5258,32 @@ ], "responses": { "200": { - "description": "Pronunciation details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_getPronunciation_Response_200" - } - } - } - }, - "404": { - "description": "Not found", + "description": "Account details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Account_getAccount_Response_200" } } } } } }, - "delete": { - "operationId": "delete-pronunciation", - "summary": "Delete custom pronunciation", - "description": "Permanently remove a custom pronunciation. Takes effect immediately.", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/account/teams": { + "get": { + "operationId": "get-teams", + "summary": "Get teams", + "description": "Get team information", "tags": [ - "customPronunciations" + "account" ], "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, { "name": "Authorization", "in": "header", @@ -5456,27 +5296,34 @@ ], "responses": { "200": { - "description": "Pronunciation deleted", + "description": "Team information", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_deletePronunciation_Response_200" + "$ref": "#/components/schemas/Account_getTeams_Response_200" } } } } } }, - "patch": { - "operationId": "update-pronunciation", - "summary": "Toggle pronunciation active status", - "description": "Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis.", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/account/teams/{team_uuid}": { + "get": { + "operationId": "get-team", + "summary": "Get team", + "description": "Get specific team information", "tags": [ - "customPronunciations" + "account" ], "parameters": [ { - "name": "uuid", + "name": "team_uuid", "in": "path", "required": true, "schema": { @@ -5496,33 +5343,15 @@ ], "responses": { "200": { - "description": "Pronunciation updated", + "description": "Team information", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom Pronunciations_updatePronunciation_Response_200" + "$ref": "#/components/schemas/Account_getTeam_Response_200" } } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "active": { - "type": "boolean", - "description": "Set to false to disable, true to re-enable" - } - }, - "required": [ - "active" - ] - } - } - } } }, "servers": [ @@ -5531,13 +5360,13 @@ } ] }, - "/voice_settings_presets": { + "/account/billing_usage": { "get": { - "operationId": "list-voice-settings-presets", - "summary": "List voice settings presets", - "description": "List all voice settings presets", + "operationId": "get-billing-usage", + "summary": "Get billing usage", + "description": "Get billing and usage information", "tags": [ - "voiceSettingsPresets" + "account" ], "parameters": [ { @@ -5552,98 +5381,15 @@ ], "responses": { "200": { - "description": "List of presets", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice Settings Presets_listVoiceSettingsPresets_Response_200" - } - } - } - } - } - }, - "post": { - "operationId": "create-voice-settings-preset", - "summary": "Create voice settings preset", - "description": "Create a new voice settings preset (max 5 per user)", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Preset created", + "description": "Billing information", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voice Settings Presets_createVoiceSettingsPreset_Response_201" + "$ref": "#/components/schemas/Account_getBillingUsage_Response_200" } } } } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Preset name (unique, max 30 characters)" - }, - "pace": { - "type": "number", - "format": "double", - "default": 1, - "description": "Speech pace/speed" - }, - "temperature": { - "type": "number", - "format": "double", - "default": 0.8, - "description": "Voice variation" - }, - "pitch": { - "type": "number", - "format": "double", - "default": 0, - "description": "Voice pitch adjustment" - }, - "useHd": { - "type": "boolean", - "default": false, - "description": "Use HD quality" - }, - "exaggeration": { - "type": "number", - "format": "double", - "default": 0.5, - "description": "Emotional exaggeration" - }, - "description": { - "type": "string", - "default": "", - "description": "Voice style prompt" - } - }, - "required": [ - "name" - ] - } - } - } } }, "servers": [ @@ -5651,2846 +5397,1118 @@ "url": "https://app.resemble.ai/api/v2" } ] + } + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2", + "description": "production" }, - "/voice_settings_presets/{uuid}": { - "get": { - "operationId": "get-voice-settings-preset", - "summary": "Get voice settings preset", - "description": "Get preset details", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice Settings Presets_getVoiceSettingsPreset_Response_200" - } - } - } - } - } - }, - "delete": { - "operationId": "delete-voice-settings-preset", - "summary": "Delete voice settings preset", - "description": "Delete a preset", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice Settings Presets_deleteVoiceSettingsPreset_Response_200" - } - } - } - } - } - }, - "patch": { - "operationId": "update-voice-settings-preset", - "summary": "Update voice settings preset", - "description": "Update a preset", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice Settings Presets_updateVoiceSettingsPreset_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pace": { - "type": "number", - "format": "double" - }, - "temperature": { - "type": "number", - "format": "double" - }, - "pitch": { - "type": "number", - "format": "double" - }, - "useHd": { - "type": "boolean" - }, - "exaggeration": { - "type": "number", - "format": "double" - }, - "description": { - "type": "string" - } - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/projects": { - "get": { - "operationId": "list-projects", - "summary": "List projects", - "description": "List all projects", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "List of projects", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_listProjects_Response_200" - } - } - } - } - } - }, - "post": { - "operationId": "create-project", - "summary": "Create project", - "description": "Create a new project", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_createProject_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - }, - "required": [ - "name", - "description", - "is_collaborative", - "is_archived" - ] - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/projects/{project_uuid}": { - "get": { - "operationId": "get-project", - "summary": "Get project", - "description": "Get project details", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_getProject_Response_200" - } - } - } - } - } - }, - "put": { - "operationId": "update-project", - "summary": "Update project", - "description": "Update a project", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_updateProject_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - } - } - } - } - } - }, - "delete": { - "operationId": "delete-project", - "summary": "Delete project", - "description": "Delete a project", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_deleteProject_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/projects/{project_uuid}/clips": { - "get": { - "operationId": "list-clips", - "summary": "List clips", - "description": "List clips in a project", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "List of clips", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_listClips_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/projects/{project_uuid}/clips/{clip_uuid}": { - "get": { - "operationId": "get-clip", - "summary": "Get clip", - "description": "Get clip details", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_getClip_Response_200" - } - } - } - } - } - }, - "delete": { - "operationId": "delete-clip", - "summary": "Delete clip", - "description": "Delete a clip", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_deleteClip_Response_200" - } - } - } - } - } - }, - "patch": { - "operationId": "update-clip", - "summary": "Update clip", - "description": "Update a clip", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_updateClip_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "body": { - "type": "string" - }, - "is_archived": { - "type": "boolean" - } - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account": { - "get": { - "operationId": "get-account", - "summary": "Get account", - "description": "Get account information", - "tags": [ - "account" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Account details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getAccount_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account/teams": { - "get": { - "operationId": "get-teams", - "summary": "Get teams", - "description": "Get team information", - "tags": [ - "account" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Team information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getTeams_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account/teams/{team_uuid}": { - "get": { - "operationId": "get-team", - "summary": "Get team", - "description": "Get specific team information", - "tags": [ - "account" - ], - "parameters": [ - { - "name": "team_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Team information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getTeam_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account/billing_usage": { - "get": { - "operationId": "get-billing-usage", - "summary": "Get billing usage", - "description": "Get billing and usage information", - "tags": [ - "account" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Billing information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getBillingUsage_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet_voices": { - "get": { - "operationId": "list-duet-voices", - "summary": "List duet voices", - "description": "Returns default and custom duet voices", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "List of duet voices", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_listDuetVoices_Response_200" - } - } - } - } - } - }, - "post": { - "operationId": "create-duet-voice", - "summary": "Create custom duet voice", - "description": "Create a custom voice for duet generation", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Duet voice created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_createDuetVoice_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Voice name" - }, - "style_prompt": { - "type": "string", - "description": "Optional style prompt" - }, - "audio": { - "type": "string", - "format": "binary", - "description": "Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)" - } - }, - "required": [ - "name", - "audio" - ] - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet_voices/{id}": { - "put": { - "operationId": "update-duet-voice", - "summary": "Update duet voice", - "description": "Update a custom duet voice (default voices cannot be modified)", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Duet voice updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_updateDuetVoice_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "style_prompt": { - "type": "string" - } - } - } - } - } - } - }, - "delete": { - "operationId": "delete-duet-voice", - "summary": "Delete duet voice", - "description": "Delete a custom duet voice (default voices cannot be deleted)", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Duet voice deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_deleteDuetVoice_Response_200" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet_voice_pairs": { - "get": { - "operationId": "list-duet-voice-pairs", - "summary": "List duet voice pairs", - "description": "List all voice pairs for duet generation", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "List of voice pairs", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_listDuetVoicePairs_Response_200" - } - } - } - } - } - }, - "post": { - "operationId": "create-duet-voice-pair", - "summary": "Create duet voice pair", - "description": "Create a voice pair for duet generation", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Voice pair created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_createDuetVoicePair_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_1_id": { - "type": "integer", - "description": "ID of first voice" - }, - "voice_2_id": { - "type": "integer", - "description": "ID of second voice" - }, - "name": { - "type": "string", - "description": "Optional pair name" - } - }, - "required": [ - "voice_1_id", - "voice_2_id" - ] - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet": { - "post": { - "operationId": "generate-duet", - "summary": "Generate duet", - "description": "Generate conversational audio with two speakers", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "Authorization", - "in": "header", - "description": "API token from https://app.resemble.ai/account/api", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Duet generation job created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_generateDuet_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_pair_id": { - "type": "integer", - "description": "Voice pair ID to use" - }, - "script": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DuetPostRequestBodyContentApplicationJsonSchemaScriptItems" - } - }, - "title": { - "type": "string", - "description": "Optional title for the duet" - }, - "callback_uri": { - "type": "string", - "format": "uri", - "description": "Webhook URL for completion notification" - } - }, - "required": [ - "voice_pair_id", - "script" - ] - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - } - }, - "servers": [ - { - "url": "https://f.cluster.resemble.ai", - "description": "synthesis" - }, - { - "url": "https://app.resemble.ai/api/v2", - "description": "production" - } - ], - "components": { - "schemas": { - "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision": { - "type": "string", - "enum": [ - "MULAW", - "PCM_16", - "PCM_24", - "PCM_32" - ], - "default": "PCM_32", - "description": "Audio precision for WAV output", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision" - }, - "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat": { - "type": "string", - "enum": [ - "wav", - "mp3" - ], - "default": "wav", - "description": "Audio output format", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat" - }, - "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate": { - "type": "string", - "enum": [ - "8000", - "16000", - "22050", - "32000", - "44100", - "48000" - ], - "description": "Audio sample rate in Hz", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate" - }, - "AudioTimestamps": { - "type": "object", - "properties": { - "graph_chars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Grapheme characters" - }, - "graph_times": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "description": "Grapheme timestamps [start, end] in seconds" - }, - "phon_chars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Phoneme characters" - }, - "phon_times": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "description": "Phoneme timestamps [start, end] in seconds" - } - }, - "title": "AudioTimestamps" - }, - "Text-to-Speech_synthesize_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "audio_content": { - "type": "string", - "format": "byte", - "description": "Base64-encoded audio bytes" - }, - "audio_timestamps": { - "$ref": "#/components/schemas/AudioTimestamps" - }, - "duration": { - "type": "number", - "format": "double", - "description": "Audio duration in seconds" - }, - "synth_duration": { - "type": "number", - "format": "double", - "description": "Raw synthesis time" - }, - "output_format": { - "type": "string" - }, - "sample_rate": { - "type": "integer" - }, - "title": { - "type": "string" - }, - "issues": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "Text-to-Speech_synthesize_Response_200" - }, - "Error": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "error": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - }, - "title": "Error" - }, - "StreamPostRequestBodyContentApplicationJsonSchemaPrecision": { - "type": "string", - "enum": [ - "MULAW", - "PCM_16", - "PCM_24", - "PCM_32" - ], - "default": "PCM_32", - "description": "Audio precision", - "title": "StreamPostRequestBodyContentApplicationJsonSchemaPrecision" - }, - "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate": { - "type": "string", - "enum": [ - "8000", - "16000", - "22050", - "32000", - "44100", - "48000" - ], - "description": "Audio sample rate in Hz", - "title": "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate" - }, - "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "status": { - "type": "string" - }, - "duration_seconds": { - "type": "number", - "format": "double" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta": { - "type": "object", - "properties": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "total_pages": { - "type": "integer" - }, - "total_items": { - "type": "integer" - } - }, - "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" - }, - "Speech-to-Text_listTranscripts_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" - } - }, - "meta": { - "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" - } - }, - "title": "Speech-to-Text_listTranscripts_Response_200" - }, - "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" - }, - "SpeechToTextPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "status": { - "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" - }, - "privacy_mode": { - "type": "boolean", - "description": "Whether the transcript was created with zero retention" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItem" - }, - "Speech-to-Text_createTranscript_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Speech-to-Text_createTranscript_Response_200" - }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" - }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "start_time": { - "type": "number", - "format": "double" - }, - "end_time": { - "type": "number", - "format": "double" - }, - "speaker_id": { - "type": "string" - } - }, - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" - }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "status": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" - }, - "text": { - "type": "string", - "description": "Absent for zero-retention transcripts after the content purge" - }, - "words": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" - } - }, - "duration_seconds": { - "type": "number", - "format": "double" - }, - "file_url": { - "type": "string", - "format": "uri", - "description": "Absent once the media has been deleted (zero retention)" - }, - "query": { - "type": "string" - }, - "answer": { - "type": "string" - }, - "privacy_mode": { - "type": "boolean", - "description": "Whether the transcript was created with zero retention" - }, - "file_deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the uploaded media was permanently deleted (zero retention)" - }, - "content_deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the transcript content was permanently purged (zero retention)" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Speech-to-Text_getTranscript_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Speech-to-Text_getTranscript_Response_200" - }, - "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "transcript_uuid": { - "type": "string", - "format": "uuid" - }, - "query": { - "type": "string" - }, - "status": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" - }, - "Speech-to-Text_askTranscriptQuestion_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Speech-to-Text_askTranscriptQuestion_Response_200" - }, - "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "query": { - "type": "string" - }, - "answer": { - "type": "string" - }, - "status": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta": { - "type": "object", - "properties": {}, - "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" - }, - "Speech-to-Text_listTranscriptQuestions_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" - } - }, - "meta": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" - } - }, - "title": "Speech-to-Text_listTranscriptQuestions_Response_200" - }, - "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "transcript_uuid": { - "type": "string", - "format": "uuid" - }, - "query": { - "type": "string" - }, - "answer": { - "type": "string" - }, - "status": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Speech-to-Text_getTranscriptQuestion_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Speech-to-Text_getTranscriptQuestion_Response_200" + { + "url": "https://f.cluster.resemble.ai", + "description": "synthesis" + } + ], + "components": { + "schemas": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" }, - "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { "type": "string", "enum": [ - "pending", "processing", "completed", "failed" ], - "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" }, - "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality": { "type": "string", "enum": [ - "v1", - "v2" + "audio", + "video", + "all" ], - "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine" + "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects.", + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality" }, - "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems": { + "DetectAudioMetrics": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" - }, - "enhancement_engine": { - "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine" - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "remove_noise": { - "type": "boolean", - "description": "Engine v2 only." - }, - "normalize": { - "type": "boolean", - "description": "Engine v2 only." - }, - "studio_sound": { - "type": "boolean", - "description": "Engine v2 only." - }, - "loudness_target_level": { - "type": "integer", - "description": "Engine v1 only." + "label": { + "type": "string", + "description": "Detection label (fake or real)" }, - "loudness_peak_limit": { - "type": "integer", - "description": "Engine v1 only." + "score": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of prediction scores per chunk" }, - "enhancement_level": { - "type": "number", - "format": "double", - "description": "Engine v1 only." + "consistency": { + "type": "string", + "description": "Consistency metric across chunks" }, - "original_audio_url": { + "aggregated_score": { "type": "string", - "format": "uri" + "description": "Overall aggregated detection score" }, - "enhanced_audio_url": { + "image": { "type": "string", - "format": "uri" + "description": "URL to visualization heatmap image (if visualize=true)" } }, - "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "label", + "score", + "consistency", + "aggregated_score" + ], + "description": "Audio detection metrics (for audio and video media types)", + "title": "DetectAudioMetrics" }, - "Audio Enhancement_listAudioEnhancements_Response_200": { + "DetectImageMetricsChildrenItems": { + "type": "object", + "properties": {}, + "title": "DetectImageMetricsChildrenItems" + }, + "DetectImageMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "page": { - "type": "integer" + "type": { + "type": "string", + "description": "Type of image analysis performed" }, - "num_pages": { - "type": "integer" + "label": { + "type": "string", + "description": "Detection label (fake or real)" }, - "page_size": { - "type": "integer" + "image": { + "type": "string", + "description": "URL to visualization image" }, - "total_count": { - "type": "integer" + "score": { + "type": "number", + "format": "double", + "description": "Detection confidence score" }, - "items": { + "children": { "type": "array", "items": { - "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "$ref": "#/components/schemas/DetectImageMetricsChildrenItems" + }, + "description": "Nested analysis results (structure varies by pipeline)" } }, - "title": "Audio Enhancement_listAudioEnhancements_Response_200" + "required": [ + "type", + "label", + "image", + "score", + "children" + ], + "description": "Image detection metrics (for image media type)", + "title": "DetectImageMetrics" }, - "ListAudioEnhancementsRequestBadRequestError": { + "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "type": "string" }, - "message": { + "conclusion": { + "type": "string" + }, + "score": { + "type": "number", + "format": "double" + }, + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { "type": "string" } }, - "title": "ListAudioEnhancementsRequestBadRequestError" - }, - "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine": { - "type": "string", - "enum": [ - "v1", - "v2" - ], - "default": "v2", - "description": "Enhancement engine to use. Default is v2.", - "title": "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine" - }, - "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus": { - "type": "string", - "enum": [ - "pending" + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)" ], - "title": "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" + "title": "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" }, - "Audio Enhancement_createAudioEnhancement_Response_202": { + "DetectVideoMetricsChildrenItemsChildrenItems": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "type": "string" }, - "uuid": { + "conclusion": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" + "score": { + "type": "number", + "format": "double" + }, + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { + "type": "string" + }, + "timestamp": { + "type": "number", + "format": "double", + "description": "Timestamp in seconds" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" + }, + "description": "Segment-level detection results" } }, - "title": "Audio Enhancement_createAudioEnhancement_Response_202" + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)", + "timestamp", + "children" + ], + "title": "DetectVideoMetricsChildrenItemsChildrenItems" }, - "CreateAudioEnhancementRequestBadRequestError": { + "DetectVideoMetricsChildrenItems": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "type": "string" }, - "message": { + "conclusion": { + "type": "string" + }, + "score": { + "type": "number", + "format": "double" + }, + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { "type": "string" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItems" + }, + "description": "Frame-level detection results" } }, - "title": "CreateAudioEnhancementRequestBadRequestError" + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)", + "children" + ], + "title": "DetectVideoMetricsChildrenItems" }, - "CreateAudioEnhancementRequestForbiddenError": { + "DetectVideoMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" + "label": { + "type": "string", + "description": "Overall video detection label" }, - "message": { - "type": "string" + "score": { + "type": "number", + "format": "double", + "description": "Overall detection score" + }, + "certainty": { + "type": "number", + "format": "double", + "description": "Overall certainty score" + }, + "treeview": { + "type": "string", + "description": "Optional tree visualization data" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItems" + }, + "description": "Hierarchical detection results across frames" } }, - "title": "CreateAudioEnhancementRequestForbiddenError" + "required": [ + "label", + "score", + "certainty", + "children" + ], + "description": "Video detection metrics (for video media type)", + "title": "DetectVideoMetrics" }, - "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus": { + "DetectC2PaManifestValidationState": { "type": "string", "enum": [ - "pending", - "processing", - "completed", - "failed" + "Valid", + "NotPresent", + "Unavailable" ], - "title": "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" + "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete.", + "title": "DetectC2PaManifestValidationState" }, - "Audio Enhancement_getAudioEnhancement_Response_200": { + "DetectC2paManifest": { "type": "object", "properties": { - "success": { - "type": "boolean" + "validation_state": { + "$ref": "#/components/schemas/DetectC2PaManifestValidationState", + "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete." }, - "uuid": { - "type": "string" + "active_manifest": { + "type": [ + "string", + "null" + ], + "description": "Active C2PA manifest identifier when credentials are present" }, - "status": { - "$ref": "#/components/schemas/AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" + "manifests": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + }, + "description": "Raw manifest details returned by C2PA tooling" }, - "enhanced_audio_url": { + "validation_results": { "type": [ - "string", + "object", "null" ], - "format": "uri", - "description": "Download URL. Only present when status is completed. This is a temporary signed URL." + "additionalProperties": { + "description": "Any type" + }, + "description": "Detailed validation results returned by C2PA tooling" }, - "error_message": { + "message": { "type": [ "string", "null" ], - "description": "Human-readable error. Only present when status is failed." + "description": "Generic message when verification is unavailable" } }, - "title": "Audio Enhancement_getAudioEnhancement_Response_200" + "description": "Content Credentials (C2PA) verification result for audio, image, and video media. Returned when verification has completed. A fallback verification failure returns `validation_state: Unavailable` and does not fail the detection.", + "title": "DetectC2paManifest" }, - "GetAudioEnhancementRequestNotFoundError": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing": { "type": "object", "properties": { - "success": { - "type": "boolean" + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "message": { - "type": "string" + "error_message": { + "type": [ + "string", + "null" + ] } }, - "title": "GetAudioEnhancementRequestNotFoundError" + "description": "Source tracing results (only returned if audio is labeled fake)", + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" }, - "AgentsGetResponsesContentApplicationJsonSchemaItemsItems": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence": { "type": "object", "properties": {}, - "title": "AgentsGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" }, - "Agents_listAgents_Response_200": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams": { "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsGetResponsesContentApplicationJsonSchemaItemsItems" - } - }, - "count": { - "type": "integer" - } - }, - "title": "Agents_listAgents_Response_200" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - } - ], - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat": { - "type": "string", - "enum": [ - "pcm_8000", - "pcm_16000", - "pcm_22050", - "pcm_24000", - "pcm_44100", - "pcm_48000", - "ulaw_8000" - ], - "default": "pcm_16000", - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat" + "properties": {}, + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" }, - "AgentsPostRequestBodyContentApplicationJsonSchemaAsr": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "model": { + "uuid": { "type": "string" }, - "provider": { - "type": "string", - "default": "deepgram" + "media_type": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" }, - "user_input_audio_format": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat" + "status": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" }, - "keywords": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaAsr" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode": { - "type": "string", - "enum": [ - "silence" - ], - "default": "silence", - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaTurn": { - "type": "object", - "properties": { - "turn_timeout": { - "type": "integer", - "default": 7 + "modality": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality", + "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects." }, - "silence_end_call_timeout": { - "type": "integer", - "default": -1 + "face_only": { + "type": "boolean", + "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" }, - "mode": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode" - } - }, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaTurn" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools": { - "type": "object", - "properties": {}, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaLlm": { - "type": "object", - "properties": { - "prompt": { - "type": "string" + "metrics": { + "$ref": "#/components/schemas/DetectAudioMetrics" }, - "provider": { - "type": "string" + "image_metrics": { + "$ref": "#/components/schemas/DetectImageMetrics" }, - "model": { - "type": "string" + "video_metrics": { + "$ref": "#/components/schemas/DetectVideoMetrics" + }, + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" + }, + "audio_source_tracing": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" + }, + { + "type": "null" + } + ], + "description": "Source tracing results (only returned if audio is labeled fake)" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" + }, + { + "type": "null" + } + ] }, - "reasoning_effort": { + "url": { "type": [ "string", "null" - ] - }, - "temperature": { - "type": "number", - "format": "double" + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." }, - "timezone": { + "audio_url": { "type": [ "string", "null" - ] - }, - "built_in_tools": { - "$ref": "#/components/schemas/AgentsPostRequestBodyContentApplicationJsonSchemaLlmBuiltInTools" - } - }, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaLlm" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode": { - "type": "string", - "enum": [ - "speed", - "accuracy" - ], - "default": "accuracy", - "description": "RAG search strategy - speed (faster) or accuracy (more thorough)", - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems": { - "type": "object", - "properties": {}, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaWebhooksItems" - }, - "AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools": { - "type": "object", - "properties": {}, - "title": "AgentsPostRequestBodyContentApplicationJsonSchemaSystemTools" - }, - "AgentsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsPostResponsesContentApplicationJsonSchemaItem" - }, - "Agents_createAgent_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/AgentsPostResponsesContentApplicationJsonSchemaItem" + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." }, - "message": { - "type": "string" - } - }, - "title": "Agents_createAgent_Response_200" - }, - "AgentsUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Agents_getAgent_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "filename": { + "type": "string", + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" }, - "item": { - "$ref": "#/components/schemas/AgentsUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Agents_getAgent_Response_200" - }, - "Agents_deleteAgent_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "duration": { + "type": "number", + "format": "double" }, - "message": { - "type": "string" - } - }, - "title": "Agents_deleteAgent_Response_200" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaDynamicVariables" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaAsr" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaTurn" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaLlm" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode": { - "type": "string", - "enum": [ - "speed", - "accuracy" - ], - "description": "RAG search strategy", - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode" - }, - "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSystemTools" - }, - "AgentsUuidPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsUuidPatchResponsesContentApplicationJsonSchemaItem" - }, - "Agents_updateAgent_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode was enabled for this detect" }, - "item": { - "$ref": "#/components/schemas/AgentsUuidPatchResponsesContentApplicationJsonSchemaItem" + "file_deleted_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" }, - "message": { - "type": "string" - } - }, - "title": "Agents_updateAgent_Response_200" - }, - "AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables": { - "type": "object", - "properties": {}, - "description": "Runtime variable overrides", - "title": "AgentsUuidDispatchPostRequestBodyContentApplicationJsonSchemaDynamicVariables" - }, - "Agents_dispatchAgent_Response_200": { - "type": "object", - "properties": { - "success": { + "visualize": { "type": "boolean" }, - "call_id": { - "type": "string" - } - }, - "title": "Agents_dispatchAgent_Response_200" - }, - "AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems": { - "type": "object", - "properties": { - "provider": { - "type": "string", - "description": "ASR provider name (e.g., \"deepgram\")" + "audio_source_tracing_enabled": { + "type": "boolean" }, - "model": { - "type": "string", - "description": "Model identifier (e.g., \"nova-2\")" + "use_ood_detector": { + "type": "boolean" }, - "description": { - "type": "string", - "description": "Human-readable description of the capability" - } - }, - "title": "AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems" - }, - "AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems": { - "type": "object", - "properties": { - "provider": { - "type": "string", - "description": "LLM provider name (e.g., \"openai\", \"anthropic\")" + "pipeline": { + "type": [ + "string", + "null" + ], + "description": "Legacy field. May be present on older image/video detects. Ignored on create for new detections." + }, + "extra_params": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" + }, + "error_message": { + "type": [ + "string", + "null" + ] }, - "model": { + "created_at": { "type": "string", - "description": "Model identifier (e.g., \"gpt-4o\", \"claude-3-5-sonnet-20241022\")" + "format": "date-time" }, - "description": { + "updated_at": { "type": "string", - "description": "Human-readable description of the capability" + "format": "date-time" } }, - "title": "AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems" + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItems" }, - "Agents_getAgentCapabilities_Response_200": { + "Deepfake Detection_listDetections_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "asr_capabilities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaAsrCapabilitiesItems" - } + "page": { + "type": "integer" }, - "llm_capabilities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsCapabilitiesGetResponsesContentApplicationJsonSchemaLlmCapabilitiesItems" - } - } - }, - "title": "Agents_getAgentCapabilities_Response_200" - }, - "AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Agents_getSystemTools_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "num_pages": { + "type": "integer" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsSystemToolsGetResponsesContentApplicationJsonSchemaItemsItems" - } - } - }, - "title": "Agents_getSystemTools_Response_200" - }, - "AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Agent Tools_listAgentTools_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" }, "items": { "type": "array", "items": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItems" } } }, - "title": "Agent Tools_listAgentTools_Response_200" + "title": "Deepfake Detection_listDetections_Response_200" }, - "AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType": { + "DetectPostRequestBodyContentMultipartFormDataSchemaModality": { "type": "string", "enum": [ - "webhook", - "client" + "audio", + "video", + "all" ], - "title": "AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType" + "default": "all", + "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n", + "title": "DetectPostRequestBodyContentMultipartFormDataSchemaModality" }, - "AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolConfig" + "DetectPostResponsesContentApplicationJsonSchemaItemModality": { + "type": "string", + "enum": [ + "audio", + "video", + "all" + ], + "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n", + "title": "DetectPostResponsesContentApplicationJsonSchemaItemModality" }, - "AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem" + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" }, - "Agent Tools_createAgentTool_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" }, - "item": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsPostResponsesContentApplicationJsonSchemaItem" + "confidence": { + "type": "number", + "format": "double" }, - "message": { + "reasoning": { "type": "string" } }, - "title": "Agent Tools_createAgentTool_Response_200" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" }, - "AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem" + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment": { + "type": "string", + "enum": [ + "real_person", + "not_real_person", + "inconclusive" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" }, - "Agent Tools_getAgentTool_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness": { "type": "object", "properties": { - "success": { - "type": "boolean" + "assessment": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" }, - "item": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsToolUuidGetResponsesContentApplicationJsonSchemaItem" + "confidence": { + "type": "number", + "format": "double" + }, + "indicators": { + "type": "string" } }, - "title": "Agent Tools_getAgentTool_Response_200" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" }, - "Agent Tools_deleteAgentTool_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered": { "type": "object", "properties": { - "success": { + "detected": { "type": "boolean" }, - "message": { + "confidence": { + "type": "number", + "format": "double" + }, + "alterations": { "type": "string" } }, - "title": "Agent Tools_deleteAgentTool_Response_200" - }, - "AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsToolUuidPatchRequestBodyContentApplicationJsonSchemaToolConfig" - }, - "AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" }, - "Agent Tools_updateAgentTool_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1": { "type": "object", "properties": { - "success": { - "type": "boolean" + "speaker_info": { + "type": "string" }, - "item": { - "$ref": "#/components/schemas/AgentsAgentUuidToolsToolUuidPatchResponsesContentApplicationJsonSchemaItem" + "language": { + "type": "string" + }, + "dialect": { + "type": "string" + }, + "emotion": { + "type": "string" + }, + "speaking_style": { + "type": "string" + }, + "context": { + "type": "string" }, "message": { "type": "string" - } - }, - "title": "Agent Tools_updateAgentTool_Response_200" - }, - "AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Agent Webhooks_listAgentWebhooks_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksGetResponsesContentApplicationJsonSchemaItemsItems" - } + "abnormalities": { + "type": "string" + }, + "transcription": { + "type": "string" + }, + "translation": { + "type": [ + "string", + "null" + ] + }, + "misinformation": { + "type": "string" + }, + "fraud": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" + }, + "liveness": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" + }, + "digitally_altered": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" } }, - "title": "Agent Webhooks_listAgentWebhooks_Response_200" - }, - "AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType": { - "type": "string", - "enum": [ - "pre_call", - "post_call" - ], - "title": "AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType" - }, - "AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookConfig" - }, - "AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" }, - "Agent Webhooks_createAgentWebhook_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksPostResponsesContentApplicationJsonSchemaItem" - }, - "message": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription": { + "oneOf": [ + { "type": "string" + }, + { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" } - }, - "title": "Agent Webhooks_createAgentWebhook_Response_200" - }, - "AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" }, - "Agent Webhooks_getAgentWebhook_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence": { "type": "object", "properties": { - "success": { - "type": "boolean" + "uuid": { + "type": "string" }, - "item": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksWebhookUuidGetResponsesContentApplicationJsonSchemaItem" + "status": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" + }, + "error_message": { + "type": [ + "string", + "null" + ] + }, + "description": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { + "type": "string" } }, - "title": "Agent Webhooks_getAgentWebhook_Response_200" + "description": "Default Intelligence result when requested", + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" }, - "Agent Webhooks_deleteAgentWebhook_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "success": { - "type": "boolean" + "uuid": { + "type": "string" }, - "message": { + "status": { "type": "string" + }, + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode is enabled for this detect" + }, + "file_deleted_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" + }, + "url": { + "type": [ + "string", + "null" + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." + }, + "audio_url": { + "type": [ + "string", + "null" + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." + }, + "filename": { + "type": "string", + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" + }, + "modality": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemModality", + "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n" + }, + "face_only": { + "type": "boolean", + "description": "Effective face-only setting. `true` only for video inputs that include visual\nanalysis; `false` for audio, image, and audio-only video detects.\n" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" + }, + { + "type": "null" + } + ], + "description": "Default Intelligence result when requested" + }, + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" } }, - "title": "Agent Webhooks_deleteAgentWebhook_Response_200" - }, - "AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksWebhookUuidPatchRequestBodyContentApplicationJsonSchemaWebhookConfig" - }, - "AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem" + "title": "DetectPostResponsesContentApplicationJsonSchemaItem" }, - "Agent Webhooks_updateAgentWebhook_Response_200": { + "Deepfake Detection_createDetection_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/AgentsAgentUuidWebhooksWebhookUuidPatchResponsesContentApplicationJsonSchemaItem" - }, - "message": { - "type": "string" + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItem" } }, - "title": "Agent Webhooks_updateAgentWebhook_Response_200" + "title": "Deepfake Detection_createDetection_Response_200" }, - "PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems" + "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" + }, + "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" + ], + "description": "Status of the Deepfake Detection job only. A completed Detect has verdict and metrics available, but its Intelligence results may still be processing.", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus" }, - "Agent Phone Numbers_listPhoneNumbers_Response_200": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing": { "type": "object", "properties": { - "success": { - "type": "boolean" + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PhoneNumbersGetResponsesContentApplicationJsonSchemaItemsItems" - } + "error_message": { + "type": [ + "string", + "null" + ] } }, - "title": "Agent Phone Numbers_listPhoneNumbers_Response_200" + "description": "Source tracing results (only returned if audio is labeled fake)", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" }, - "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider": { + "DetectIntelligenceResultStatus": { "type": "string", "enum": [ - "twilio" + "processing", + "completed", + "failed" ], - "title": "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider" - }, - "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk": { - "type": "object", - "properties": {}, - "title": "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaOutboundTrunk" - }, - "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk": { - "type": "object", - "properties": {}, - "title": "PhoneNumbersPostRequestBodyContentApplicationJsonSchemaInboundTrunk" + "description": "Status of this Intelligence result, independent of the associated Detect job status.", + "title": "DetectIntelligenceResultStatus" }, - "PhoneNumbersPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "PhoneNumbersPostResponsesContentApplicationJsonSchemaItem" + "DetectIntelligenceResultDescriptionOneOf1FraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" + ], + "title": "DetectIntelligenceResultDescriptionOneOf1FraudType" }, - "Agent Phone Numbers_createPhoneNumber_Response_200": { + "DetectIntelligenceResultDescriptionOneOf1Fraud": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1FraudType" }, - "item": { - "$ref": "#/components/schemas/PhoneNumbersPostResponsesContentApplicationJsonSchemaItem" + "confidence": { + "type": "number", + "format": "double" }, - "message": { + "reasoning": { "type": "string" } }, - "title": "Agent Phone Numbers_createPhoneNumber_Response_200" + "title": "DetectIntelligenceResultDescriptionOneOf1Fraud" }, - "PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem" + "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment": { + "type": "string", + "enum": [ + "real_person", + "not_real_person", + "inconclusive" + ], + "title": "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" }, - "Agent Phone Numbers_getPhoneNumber_Response_200": { + "DetectIntelligenceResultDescriptionOneOf1Liveness": { "type": "object", "properties": { - "success": { - "type": "boolean" + "assessment": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" }, - "item": { - "$ref": "#/components/schemas/PhoneNumbersIdGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Agent Phone Numbers_getPhoneNumber_Response_200" - }, - "Agent Phone Numbers_deletePhoneNumber_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "confidence": { + "type": "number", + "format": "double" }, - "message": { + "indicators": { "type": "string" } }, - "title": "Agent Phone Numbers_deletePhoneNumber_Response_200" + "title": "DetectIntelligenceResultDescriptionOneOf1Liveness" }, - "Agent Phone Numbers_forceDeletePhoneNumber_Response_200": { + "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered": { "type": "object", "properties": { - "success": { + "detected": { "type": "boolean" }, - "message": { + "confidence": { + "type": "number", + "format": "double" + }, + "alterations": { "type": "string" } }, - "title": "Agent Phone Numbers_forceDeletePhoneNumber_Response_200" - }, - "KnowledgeItemsGetParametersStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "ready", - "failed" - ], - "title": "KnowledgeItemsGetParametersStatus" - }, - "KnowledgeItemsGetParametersSourceType": { - "type": "string", - "enum": [ - "document", - "url", - "text" - ], - "title": "KnowledgeItemsGetParametersSourceType" - }, - "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType": { - "type": "string", - "enum": [ - "document", - "url", - "text" - ], - "title": "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType" - }, - "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "ready", - "failed" - ], - "title": "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" + "title": "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" }, - "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems": { + "DetectIntelligenceResultDescription1": { "type": "object", "properties": { - "uuid": { - "type": "string", - "format": "uuid" + "speaker_info": { + "type": "string" }, - "title": { + "language": { "type": "string" }, - "description": { + "dialect": { "type": "string" }, - "source_type": { - "$ref": "#/components/schemas/KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType" + "emotion": { + "type": "string" }, - "status": { - "$ref": "#/components/schemas/KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" + "speaking_style": { + "type": "string" }, - "error_message": { - "type": [ - "string", - "null" - ] + "context": { + "type": "string" }, - "chunk_count": { - "type": [ - "integer", - "null" - ] + "message": { + "type": "string" }, - "url": { - "type": [ - "string", - "null" - ] + "abnormalities": { + "type": "string" }, - "document_url": { - "type": [ - "string", - "null" - ] + "transcription": { + "type": "string" }, - "document_filename": { + "translation": { "type": [ "string", "null" ] }, - "agent_count": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination": { - "type": "object", - "properties": { - "page": { - "type": "integer" + "misinformation": { + "type": "string" }, - "per_page": { - "type": "integer" + "fraud": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Fraud" }, - "total_count": { - "type": "integer" + "liveness": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Liveness" }, - "total_pages": { - "type": "integer" + "digitally_altered": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" } }, - "title": "KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination" + "title": "DetectIntelligenceResultDescription1" }, - "Agent Knowledge Base_listKnowledgeItems_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "DetectIntelligenceResultDescription": { + "oneOf": [ + { + "type": "string" }, - "pagination": { - "$ref": "#/components/schemas/KnowledgeItemsGetResponsesContentApplicationJsonSchemaPagination" + { + "$ref": "#/components/schemas/DetectIntelligenceResultDescription1" } - }, - "title": "Agent Knowledge Base_listKnowledgeItems_Response_200" - }, - "KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType": { - "type": "string", - "enum": [ - "document", - "url", - "text" ], - "description": "Type of knowledge source", - "title": "KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType" - }, - "KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem" + "title": "DetectIntelligenceResultDescription" }, - "Agent Knowledge Base_createKnowledgeItem_Response_201": { + "DetectIntelligenceResult": { "type": "object", "properties": { - "success": { - "type": "boolean" + "uuid": { + "type": "string" }, - "item": { - "$ref": "#/components/schemas/KnowledgeItemsPostResponsesContentApplicationJsonSchemaItem" + "status": { + "$ref": "#/components/schemas/DetectIntelligenceResultStatus", + "description": "Status of this Intelligence result, independent of the associated Detect job status." }, - "message": { + "error_message": { + "type": [ + "string", + "null" + ] + }, + "description": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectIntelligenceResultDescription" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { "type": "string" } }, - "title": "Agent Knowledge Base_createKnowledgeItem_Response_201" + "description": "One Detect Intelligence expert result", + "title": "DetectIntelligenceResult" + }, + "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectIntelligenceResult" + }, + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" }, - "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType": { - "type": "string", - "enum": [ - "document", - "url", - "text" + "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectIntelligenceResult" + }, + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" + } ], - "title": "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType" + "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully.", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" }, - "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality": { "type": "string", "enum": [ - "pending", - "processing", - "ready", - "failed" + "audio", + "video", + "all" ], - "title": "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality" }, - "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { - "type": "string", - "format": "uuid" - }, - "name": { "type": "string" - } - }, - "title": "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems" - }, - "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" }, - "title": { - "type": "string" + "media_type": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" }, - "description": { - "type": "string" + "status": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus", + "description": "Status of the Deepfake Detection job only. A completed Detect has verdict and metrics available, but its Intelligence results may still be processing." }, - "source_type": { - "$ref": "#/components/schemas/KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType" + "metrics": { + "$ref": "#/components/schemas/DetectAudioMetrics" }, - "status": { - "$ref": "#/components/schemas/KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "image_metrics": { + "$ref": "#/components/schemas/DetectImageMetrics" }, - "error_message": { - "type": [ - "string", - "null" - ] + "video_metrics": { + "$ref": "#/components/schemas/DetectVideoMetrics" }, - "chunk_count": { - "type": [ - "integer", - "null" - ] + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" + }, + "audio_source_tracing": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" + }, + { + "type": "null" + } + ], + "description": "Source tracing results (only returned if audio is labeled fake)" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" + }, + { + "type": "null" + } + ], + "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully." + }, + "modality": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemModality", + "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n" + }, + "face_only": { + "type": "boolean", + "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" }, "url": { "type": [ "string", "null" - ] + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." }, - "document_url": { + "audio_url": { "type": [ "string", "null" - ] + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." + }, + "filename": { + "type": "string", + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" }, - "document_filename": { + "duration": { + "type": "number", + "format": "double" + }, + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode is enabled for this detect" + }, + "file_deleted_at": { "type": [ "string", "null" - ] - }, - "agents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemAgentsItems" - } + ], + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" }, "created_at": { "type": "string", @@ -8501,597 +6519,737 @@ "format": "date-time" } }, - "title": "KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem" + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItem" }, - "Agent Knowledge Base_getKnowledgeItem_Response_200": { + "Deepfake Detection_getDetection_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "title": "Agent Knowledge Base_getKnowledgeItem_Response_200" + "title": "Deepfake Detection_getDetection_Response_200" }, - "Agent Knowledge Base_deleteKnowledgeItem_Response_200": { + "Error": { "type": "object", "properties": { "success": { "type": "boolean" }, + "error": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, "message": { "type": "string" } }, - "title": "Agent Knowledge Base_deleteKnowledgeItem_Response_200" + "title": "Error" + }, + "DetectBatchStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "partially_failed", + "failed" + ], + "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n", + "title": "DetectBatchStatus" }, - "KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem": { + "DetectBatch": { "type": "object", - "properties": {}, - "title": "KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem" + "properties": { + "uuid": { + "type": "string", + "description": "Batch UUID." + }, + "status": { + "$ref": "#/components/schemas/DetectBatchStatus", + "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n" + }, + "total_files": { + "type": "integer", + "description": "Number of files in the batch (1–50)." + }, + "completed_count": { + "type": "integer", + "description": "Number of child detects that have completed successfully." + }, + "failed_count": { + "type": "integer", + "description": "Number of child detects that have failed." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "UUIDs of the child detects. Use `GET /detect/{uuid}` to retrieve per-file results." + } + }, + "description": "Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.", + "title": "DetectBatch" }, - "Agent Knowledge Base_reingestKnowledgeItem_Response_200": { + "Deepfake Detection_createDetectBatch_Response_202": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/KnowledgeItemsUuidReingestPostResponsesContentApplicationJsonSchemaItem" - }, - "message": { - "type": "string" + "$ref": "#/components/schemas/DetectBatch" } }, - "title": "Agent Knowledge Base_reingestKnowledgeItem_Response_200" - }, - "AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "Deepfake Detection_createDetectBatch_Response_202" }, - "Agent Knowledge Base_listAgentKnowledgeItems_Response_200": { + "Deepfake Detection_getDetectBatch_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsAgentUuidKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItems" - } - }, - "count": { - "type": "integer" + "item": { + "$ref": "#/components/schemas/DetectBatch" } }, - "title": "Agent Knowledge Base_listAgentKnowledgeItems_Response_200" + "title": "Deepfake Detection_getDetectBatch_Response_200" }, - "AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems" + "DetectAgentTier": { + "type": "string", + "enum": [ + "triage", + "investigation", + "forensic" + ], + "description": "Managed investigation depth. Informational and read-only.", + "title": "DetectAgentTier" }, - "Agent Knowledge Base_attachKnowledgeItemToAgent_Response_201": { + "DetectAgentCapabilities": { "type": "object", "properties": { - "success": { + "media": { "type": "boolean" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsAgentUuidKnowledgeItemsPostResponsesContentApplicationJsonSchemaItemsItems" - } + "reverse_search": { + "type": "boolean" }, - "message": { - "type": "string" + "identity": { + "type": "boolean" + }, + "grounding": { + "type": "boolean" + }, + "structured": { + "type": "boolean" + }, + "tools": { + "type": "boolean" + }, + "knowledge": { + "type": "boolean" } }, - "title": "Agent Knowledge Base_attachKnowledgeItemToAgent_Response_201" - }, - "AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "media", + "reverse_search", + "identity", + "grounding", + "structured", + "tools", + "knowledge" + ], + "description": "Read-only feature flags for a managed Detect Agent.", + "title": "DetectAgentCapabilities" }, - "Agent Knowledge Base_detachKnowledgeItemFromAgent_Response_200": { + "DetectAgent": { "type": "object", "properties": { - "success": { - "type": "boolean" + "id": { + "type": "string", + "description": "Stable Detect Agent identifier. Currently the same as `uuid` and `preset_id`." }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentsAgentUuidKnowledgeItemsKnowledgeItemUuidDeleteResponsesContentApplicationJsonSchemaItemsItems" - } + "uuid": { + "type": "string", + "description": "Stable identifier used by the run and history endpoints." }, - "message": { + "preset_id": { + "type": "string", + "description": "Resemble-managed Detect Agent identifier." + }, + "name": { "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Verification workflow handled by the Detect Agent." + }, + "tier": { + "$ref": "#/components/schemas/DetectAgentTier", + "description": "Managed investigation depth. Informational and read-only." + }, + "memory_preview": { + "type": "string", + "description": "Read-only preview of patterns learned from previous investigations." + }, + "capabilities": { + "$ref": "#/components/schemas/DetectAgentCapabilities" + }, + "tagline": { + "type": [ + "string", + "null" + ], + "description": "Short description derived from the Detect Agent's managed instructions." + }, + "activated": { + "type": "boolean", + "description": "Whether this team has initialized backing state for the Detect Agent by running it." + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Team backing-state creation time, or null before the first investigation." + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Team backing-state update time, or null before the first investigation." } }, - "title": "Agent Knowledge Base_detachKnowledgeItemFromAgent_Response_200" + "required": [ + "id", + "uuid", + "preset_id", + "name", + "tier", + "memory_preview", + "capabilities", + "activated" + ], + "description": "A Resemble-managed Detect Agent available to the authenticated team.", + "title": "DetectAgent" }, - "Secure Uploads_createSecureUpload_Response_200": { + "Detect Agents_listDetectAgents_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "token": { - "type": "string", - "description": "JWT referencing the uploaded file. Valid for 1 hour. Pass this value as `media_token` on downstream requests." + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectAgent" + } + }, + "count": { + "type": "integer" } }, - "title": "Secure Uploads_createSecureUpload_Response_200" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" + "required": [ + "success", + "items", + "count" ], - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" + "title": "Detect Agents_listDetectAgents_Response_200" }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { + "DetectAgentRunSummaryStatus": { "type": "string", "enum": [ - "processing", + "running", "completed", - "failed" + "error" ], - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" + "title": "DetectAgentRunSummaryStatus" }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects.", - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality" + "DetectAgentRunResultVerdict": { + "type": "object", + "properties": { + "forced": { + "type": "boolean" + }, + "excerpt": { + "type": "string" + } + }, + "title": "DetectAgentRunResultVerdict" }, - "DetectAudioMetrics": { + "DetectAgentRunResult": { "type": "object", "properties": { + "verdict": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectAgentRunResultVerdict" + }, + { + "type": "null" + } + ] + }, + "recommended_action": { + "type": [ + "string", + "null" + ] + }, + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" + }, "label": { - "type": "string", - "description": "Detection label (fake or real)" + "type": [ + "string", + "null" + ] }, "score": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array of prediction scores per chunk" + "type": [ + "number", + "null" + ], + "format": "double" }, - "consistency": { - "type": "string", - "description": "Consistency metric across chunks" + "agent_ran": { + "type": [ + "boolean", + "null" + ] + } + }, + "description": "Compact result summary derived from the investigation transcript.", + "title": "DetectAgentRunResult" + }, + "DetectAgentRunSummaryInputs": { + "type": "object", + "properties": { + "query": { + "type": "string" }, - "aggregated_score": { + "url": { "type": "string", - "description": "Overall aggregated detection score" + "format": "uri" }, - "image": { - "type": "string", - "description": "URL to visualization heatmap image (if visualize=true)" + "filename": { + "type": "string" + }, + "check_urls": { + "type": "string" } }, - "required": [ - "label", - "score", - "consistency", - "aggregated_score" - ], - "description": "Audio detection metrics (for audio and video media types)", - "title": "DetectAudioMetrics" - }, - "DetectImageMetricsChildrenItems": { - "type": "object", - "properties": {}, - "title": "DetectImageMetricsChildrenItems" + "description": "Submitted investigation inputs. Null-valued fields are omitted.", + "title": "DetectAgentRunSummaryInputs" }, - "DetectImageMetrics": { + "DetectAgentRunSummary": { "type": "object", "properties": { - "type": { + "uuid": { "type": "string", - "description": "Type of image analysis performed" + "format": "uuid", + "description": "Investigation run identifier." }, - "label": { - "type": "string", - "description": "Detection label (fake or real)" + "status": { + "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" }, - "image": { - "type": "string", - "description": "URL to visualization image" + "result": { + "$ref": "#/components/schemas/DetectAgentRunResult" }, - "score": { - "type": "number", - "format": "double", - "description": "Detection confidence score" + "inputs": { + "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", + "description": "Submitted investigation inputs. Null-valued fields are omitted." }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectImageMetricsChildrenItems" - }, - "description": "Nested analysis results (structure varies by pipeline)" + "has_media": { + "type": "boolean", + "description": "Whether primary uploaded media is attached to this run." + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ - "type", - "label", - "image", - "score", - "children" + "uuid", + "status", + "result", + "inputs", + "has_media" ], - "description": "Image detection metrics (for image media type)", - "title": "DetectImageMetrics" + "title": "DetectAgentRunSummary" }, - "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems": { + "Detect Agents_listDetectAgentInvestigationRuns_Response_200": { "type": "object", "properties": { - "type": { - "type": "string" - }, - "conclusion": { - "type": "string" - }, - "score": { - "type": "number", - "format": "double" + "success": { + "type": "boolean" }, - "certainty": { - "type": "number", - "format": "double" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectAgentRunSummary" + } }, - "certainty (%)": { - "type": "string" + "count": { + "type": "integer" } }, "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)" + "success", + "items", + "count" ], - "title": "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" + "title": "Detect Agents_listDetectAgentInvestigationRuns_Response_200" }, - "DetectVideoMetricsChildrenItemsChildrenItems": { + "DetectAgentRun": { "type": "object", "properties": { - "type": { - "type": "string" + "uuid": { + "type": "string", + "format": "uuid", + "description": "Investigation run identifier." }, - "conclusion": { - "type": "string" + "status": { + "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" }, - "score": { - "type": "number", - "format": "double" + "result": { + "$ref": "#/components/schemas/DetectAgentRunResult" }, - "certainty": { - "type": "number", - "format": "double" + "inputs": { + "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", + "description": "Submitted investigation inputs. Null-valued fields are omitted." }, - "certainty (%)": { - "type": "string" + "has_media": { + "type": "boolean", + "description": "Whether primary uploaded media is attached to this run." }, - "timestamp": { - "type": "number", - "format": "double", - "description": "Timestamp in seconds" + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "children": { + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "transcript": { "type": "array", "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" + "type": "object", + "additionalProperties": { + "description": "Any type" + } }, - "description": "Segment-level detection results" + "description": "Public investigation events. Internal cost events are omitted." + }, + "config_snapshot": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Exact managed configuration used for the investigation." + }, + "memory_before": { + "type": "string" + }, + "memory_after": { + "type": "string" + }, + "error": { + "type": [ + "string", + "null" + ] + }, + "media_url": { + "type": [ + "string", + "null" + ], + "description": "Relative URL for uploaded primary media, or null when the run used a public URL." } }, "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)", - "timestamp", - "children" + "uuid", + "status", + "result", + "inputs", + "has_media" ], - "title": "DetectVideoMetricsChildrenItemsChildrenItems" + "title": "DetectAgentRun" }, - "DetectVideoMetricsChildrenItems": { + "Detect Agents_getDetectAgentInvestigationRun_Response_200": { "type": "object", "properties": { - "type": { - "type": "string" + "success": { + "type": "boolean" }, - "conclusion": { + "item": { + "$ref": "#/components/schemas/DetectAgentRun" + } + }, + "required": [ + "success", + "item" + ], + "title": "Detect Agents_getDetectAgentInvestigationRun_Response_200" + }, + "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "description": "Explicit media type (auto-detected if not provided)", + "title": "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType" + }, + "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "description": "Type of media analyzed", + "title": "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType" + }, + "IntelligencePostResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "uuid": { "type": "string" }, - "score": { - "type": "number", - "format": "double" + "created_at": { + "type": "string", + "format": "date-time" }, - "certainty": { - "type": "number", - "format": "double" + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" }, - "certainty (%)": { - "type": "string" + "media_type": { + "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType", + "description": "Type of media analyzed" + } + }, + "title": "IntelligencePostResponsesContentApplicationJsonSchemaItem" + }, + "Intelligence_runIntelligence_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItems" - }, - "description": "Frame-level detection results" + "item": { + "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItem" } }, - "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)", - "children" + "title": "Intelligence_runIntelligence_Response_200" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" ], - "title": "DetectVideoMetricsChildrenItems" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" }, - "DetectVideoMetrics": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud": { "type": "object", "properties": { - "label": { - "type": "string", - "description": "Overall video detection label" - }, - "score": { - "type": "number", - "format": "double", - "description": "Overall detection score" + "type": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" }, - "certainty": { + "confidence": { "type": "number", - "format": "double", - "description": "Overall certainty score" - }, - "treeview": { - "type": "string", - "description": "Optional tree visualization data" + "format": "double" }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItems" - }, - "description": "Hierarchical detection results across frames" + "reasoning": { + "type": "string" } }, - "required": [ - "label", - "score", - "certainty", - "children" - ], - "description": "Video detection metrics (for video media type)", - "title": "DetectVideoMetrics" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" }, - "DetectC2PaManifestValidationState": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment": { "type": "string", "enum": [ - "Valid", - "NotPresent", - "Unavailable" + "real_person", + "not_real_person", + "inconclusive" ], - "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete.", - "title": "DetectC2PaManifestValidationState" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" }, - "DetectC2paManifest": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness": { "type": "object", "properties": { - "validation_state": { - "$ref": "#/components/schemas/DetectC2PaManifestValidationState", - "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete." - }, - "active_manifest": { - "type": [ - "string", - "null" - ], - "description": "Active C2PA manifest identifier when credentials are present" - }, - "manifests": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "description": "Any type" - }, - "description": "Raw manifest details returned by C2PA tooling" + "assessment": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" }, - "validation_results": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "description": "Any type" - }, - "description": "Detailed validation results returned by C2PA tooling" + "confidence": { + "type": "number", + "format": "double" }, - "message": { - "type": [ - "string", - "null" - ], - "description": "Generic message when verification is unavailable" + "indicators": { + "type": "string" } }, - "description": "Content Credentials (C2PA) verification result for audio, image, and video media. Returned when verification has completed. A fallback verification failure returns `validation_state: Unavailable` and does not fail the detection.", - "title": "DetectC2paManifest" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered": { "type": "object", "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" + "detected": { + "type": "boolean" }, - "error_message": { - "type": [ - "string", - "null" - ] + "confidence": { + "type": "number", + "format": "double" + }, + "alterations": { + "type": "string" } }, - "description": "Source tracing results (only returned if audio is labeled fake)", - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence": { - "type": "object", - "properties": {}, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams": { - "type": "object", - "properties": {}, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItems": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription": { "type": "object", "properties": { - "uuid": { + "speaker_info": { "type": "string" }, - "media_type": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" - }, - "status": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" - }, - "modality": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality", - "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects." - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" - }, - "metrics": { - "$ref": "#/components/schemas/DetectAudioMetrics" - }, - "image_metrics": { - "$ref": "#/components/schemas/DetectImageMetrics" - }, - "video_metrics": { - "$ref": "#/components/schemas/DetectVideoMetrics" - }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" + "language": { + "type": "string" }, - "audio_source_tracing": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" - }, - { - "type": "null" - } - ], - "description": "Source tracing results (only returned if audio is labeled fake)" + "dialect": { + "type": "string" }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" - }, - { - "type": "null" - } - ] + "emotion": { + "type": "string" }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." + "speaking_style": { + "type": "string" }, - "audio_url": { - "type": [ - "string", - "null" - ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." + "context": { + "type": "string" }, - "filename": { - "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" + "message": { + "type": "string" }, - "duration": { - "type": "number", - "format": "double" + "abnormalities": { + "type": "string" }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode was enabled for this detect" + "transcription": { + "type": "string" }, - "file_deleted_at": { + "translation": { "type": [ "string", "null" - ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" - }, - "visualize": { - "type": "boolean" + ] }, - "audio_source_tracing_enabled": { - "type": "boolean" + "misinformation": { + "type": "string" }, - "use_ood_detector": { - "type": "boolean" + "fraud": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" }, - "pipeline": { - "type": [ - "string", - "null" - ], - "description": "Legacy field. May be present on older image/video detects. Ignored on create for new detections." + "liveness": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" }, - "extra_params": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" + "digitally_altered": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + } + }, + "description": "Structured intelligence analysis", + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "description": "Type of media analyzed", + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems": { + "type": "object", + "properties": { + "uuid": { + "type": "string" }, - "error_message": { - "type": [ - "string", - "null" - ] + "description": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription", + "description": "Structured intelligence analysis" }, "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { + "detect_uuid": { "type": "string", - "format": "date-time" + "description": "UUID of the associated detect object" + }, + "media_type": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType", + "description": "Type of media analyzed" } }, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" }, - "Deepfake Detection_listDetections_Response_200": { + "Intelligence_listIntelligences_Response_200": { "type": "object", "properties": { "success": { @@ -9112,43 +7270,13 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" } } }, - "title": "Deepfake Detection_listDetections_Response_200" - }, - "DetectPostRequestBodyContentMultipartFormDataSchemaModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "default": "all", - "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n", - "title": "DetectPostRequestBodyContentMultipartFormDataSchemaModality" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n", - "title": "DetectPostResponsesContentApplicationJsonSchemaItemModality" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" + "title": "Intelligence_listIntelligences_Response_200" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType": { "type": "string", "enum": [ "none", @@ -9164,13 +7292,13 @@ "employment_fraud", "other" ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud": { "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" }, "confidence": { "type": "number", @@ -9180,22 +7308,22 @@ "type": "string" } }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment": { "type": "string", "enum": [ "real_person", "not_real_person", "inconclusive" ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness": { "type": "object", "properties": { "assessment": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" }, "confidence": { "type": "number", @@ -9205,9 +7333,9 @@ "type": "string" } }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered": { "type": "object", "properties": { "detected": { @@ -9221,9 +7349,9 @@ "type": "string" } }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription": { "type": "object", "properties": { "speaker_info": { @@ -9263,153 +7391,200 @@ "type": "string" }, "fraud": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" }, "liveness": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" }, "digitally_altered": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" } }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" + "description": "Structured intelligence analysis", + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription": { - "oneOf": [ - { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" + ], + "description": "Type of media analyzed", + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "uuid": { "type": "string" }, - { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" + "description": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription", + "description": "Structured intelligence analysis" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" + }, + "media_type": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType", + "description": "Type of media analyzed" + } + }, + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" + }, + "Intelligence_getIntelligence_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" } + }, + "title": "Intelligence_getIntelligence_Response_200" + }, + "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" + "description": "Current status of the question", + "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus" }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence": { + "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { - "type": "string" + "type": "string", + "description": "UUID of the question" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detection report" + }, + "query": { + "type": "string", + "description": "The submitted question" + }, + "answer": { + "type": [ + "string", + "null" + ], + "description": "The generated answer (null until completed)" }, "status": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" + "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus", + "description": "Current status of the question" }, "error_message": { "type": [ "string", "null" - ] - }, - "description": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" + ], + "description": "Error details when status is failed" }, "created_at": { "type": "string", "format": "date-time" }, - "detect_uuid": { - "type": "string" + "updated_at": { + "type": "string", + "format": "date-time" } }, - "description": "Default Intelligence result when requested", - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" + "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" }, - "DetectPostResponsesContentApplicationJsonSchemaItem": { + "Detect Intelligence_askDetectIntelligenceQuestion_Response_202": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Detect Intelligence_askDetectIntelligenceQuestion_Response_202" + }, + "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "description": "Current status of the question", + "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus" + }, + "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { - "type": "string" + "type": "string", + "description": "UUID of the question" }, - "status": { - "type": "string" + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detection report" }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode is enabled for this detect" + "query": { + "type": "string", + "description": "The submitted question" }, - "file_deleted_at": { + "answer": { "type": [ "string", "null" ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" + "description": "The generated answer (null until completed)" }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." + "status": { + "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus", + "description": "Current status of the question" }, - "audio_url": { + "error_message": { "type": [ "string", "null" ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." + "description": "Error details when status is failed" }, - "filename": { + "created_at": { "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" - }, - "modality": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemModality", - "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n" - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting. `true` only for video inputs that include visual\nanalysis; `false` for audio, image, and audio-only video detects.\n" - }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" - }, - { - "type": "null" - } - ], - "description": "Default Intelligence result when requested" + "format": "date-time" }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" + "updated_at": { + "type": "string", + "format": "date-time" } }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItem" + "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" }, - "Deepfake Detection_createDetection_Response_200": { + "Detect Intelligence_getDetectIntelligenceQuestion_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "title": "Deepfake Detection_createDetection_Response_200" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" - ], - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Status of the Deepfake Detection job only. A completed Detect has verdict and metrics available, but its Intelligence results may still be processing.", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "title": "Detect Intelligence_getDetectIntelligenceQuestion_Response_200" }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing": { + "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults": { "type": "object", "properties": { "label": { @@ -9423,824 +7598,723 @@ ] } }, - "description": "Source tracing results (only returned if audio is labeled fake)", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" - }, - "DetectIntelligenceResultStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Status of this Intelligence result, independent of the associated Detect job status.", - "title": "DetectIntelligenceResultStatus" - }, - "DetectIntelligenceResultDescriptionOneOf1FraudType": { - "type": "string", - "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" - ], - "title": "DetectIntelligenceResultDescriptionOneOf1FraudType" + "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" }, - "DetectIntelligenceResultDescriptionOneOf1Fraud": { + "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1FraudType" - }, - "confidence": { - "type": "number", - "format": "double" - }, - "reasoning": { + "uuid": { "type": "string" - } - }, - "title": "DetectIntelligenceResultDescriptionOneOf1Fraud" - }, - "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment": { - "type": "string", - "enum": [ - "real_person", - "not_real_person", - "inconclusive" - ], - "title": "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" - }, - "DetectIntelligenceResultDescriptionOneOf1Liveness": { - "type": "object", - "properties": { - "assessment": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" }, - "confidence": { - "type": "number", - "format": "double" + "results": { + "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" }, - "indicators": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" } }, - "title": "DetectIntelligenceResultDescriptionOneOf1Liveness" + "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" }, - "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered": { + "Audio Source Tracing_listAudioSourceTracings_Response_200": { "type": "object", "properties": { - "detected": { + "success": { "type": "boolean" }, - "confidence": { - "type": "number", - "format": "double" + "page": { + "type": "integer" }, - "alterations": { - "type": "string" + "num_pages": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" + } } }, - "title": "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" + "title": "Audio Source Tracing_listAudioSourceTracings_Response_200" }, - "DetectIntelligenceResultDescription1": { + "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults": { "type": "object", "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { - "type": "string" - }, - "context": { - "type": "string" - }, - "message": { - "type": "string" - }, - "abnormalities": { - "type": "string" - }, - "transcription": { - "type": "string" + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "translation": { + "error_message": { "type": [ "string", "null" ] - }, - "misinformation": { - "type": "string" - }, - "fraud": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Fraud" - }, - "liveness": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Liveness" - }, - "digitally_altered": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" } }, - "title": "DetectIntelligenceResultDescription1" - }, - "DetectIntelligenceResultDescription": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/DetectIntelligenceResultDescription1" - } - ], - "title": "DetectIntelligenceResultDescription" + "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" }, - "DetectIntelligenceResult": { + "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/DetectIntelligenceResultStatus", - "description": "Status of this Intelligence result, independent of the associated Detect job status." - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "description": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectIntelligenceResultDescription" - }, - { - "type": "null" - } - ] + "results": { + "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" }, "created_at": { "type": "string", "format": "date-time" - }, - "detect_uuid": { - "type": "string" - } - }, - "description": "One Detect Intelligence expert result", - "title": "DetectIntelligenceResult" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectIntelligenceResult" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" + } }, - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" + "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectIntelligenceResult" + "Audio Source Tracing_getAudioSourceTracing_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" + "item": { + "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" } + }, + "title": "Audio Source Tracing_getAudioSourceTracing_Response_200" + }, + "IdentitySummaryVisibility": { + "type": "string", + "enum": [ + "team", + "global" ], - "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully.", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" + "title": "IdentitySummaryVisibility" }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality": { + "IdentitySummaryIdentityType": { "type": "string", "enum": [ - "audio", - "video", - "all" + "person", + "brand" ], - "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality" + "title": "IdentitySummaryIdentityType" }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItem": { + "IdentitySummary": { "type": "object", "properties": { "uuid": { "type": "string" }, - "media_type": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" - }, - "status": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus", - "description": "Status of the Deepfake Detection job only. A completed Detect has verdict and metrics available, but its Intelligence results may still be processing." - }, - "metrics": { - "$ref": "#/components/schemas/DetectAudioMetrics" - }, - "image_metrics": { - "$ref": "#/components/schemas/DetectImageMetrics" - }, - "video_metrics": { - "$ref": "#/components/schemas/DetectVideoMetrics" - }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" - }, - "audio_source_tracing": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" - }, - { - "type": "null" - } - ], - "description": "Source tracing results (only returned if audio is labeled fake)" - }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" - }, - { - "type": "null" - } - ], - "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully." - }, - "modality": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemModality", - "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n" - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" + "name": { + "type": "string" }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." + "created_at": { + "type": "string", + "format": "date-time" }, "audio_url": { "type": [ "string", "null" ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." - }, - "filename": { - "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" + "format": "uri", + "description": "URL of the first voice sample, if any" }, - "duration": { - "type": "number", - "format": "double" + "visibility": { + "$ref": "#/components/schemas/IdentitySummaryVisibility" }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode is enabled for this detect" + "identity_type": { + "$ref": "#/components/schemas/IdentitySummaryIdentityType" }, - "file_deleted_at": { + "notes": { "type": [ "string", "null" - ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" + ] }, - "created_at": { - "type": "string", - "format": "date-time" + "voice_profile_id": { + "type": [ + "string", + "null" + ] }, "updated_at": { "type": "string", "format": "date-time" + }, + "project_count": { + "type": "integer" } }, - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItem" + "description": "Identity summary returned by the list and simple-create endpoints", + "title": "IdentitySummary" }, - "Deepfake Detection_getDetection_Response_200": { + "Identity_listIdentities_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItem" + "page": { + "type": "integer" + }, + "num_pages": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentitySummary" + } } }, - "title": "Deepfake Detection_getDetection_Response_200" + "title": "Identity_listIdentities_Response_200" }, - "DetectBatchStatus": { + "IdentityCreateIdentityRequest0": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Speaker name/identifier" + }, + "url": { + "type": "string", + "format": "uri", + "description": "URL to an audio sample (one of url, audio, signed_id is required)" + }, + "signed_id": { + "type": "string", + "description": "Signed ID from a secure upload" + } + }, + "required": [ + "name" + ], + "title": "IdentityCreateIdentityRequest0" + }, + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType": { "type": "string", "enum": [ - "processing", - "completed", - "partially_failed", - "failed" + "person", + "brand" ], - "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n", - "title": "DetectBatchStatus" + "default": "person", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" }, - "DetectBatch": { + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility": { + "type": "string", + "enum": [ + "team", + "global" + ], + "default": "team", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + }, + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity": { "type": "object", "properties": { - "uuid": { - "type": "string", - "description": "Batch UUID." - }, - "status": { - "$ref": "#/components/schemas/DetectBatchStatus", - "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n" + "name": { + "type": "string" }, - "total_files": { - "type": "integer", - "description": "Number of files in the batch (1–50)." + "identity_type": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" }, - "completed_count": { - "type": "integer", - "description": "Number of child detects that have completed successfully." + "visibility": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" }, - "failed_count": { - "type": "integer", - "description": "Number of child detects that have failed." + "notes": { + "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" + "voice_profile_id": { + "type": "string" + } + }, + "required": [ + "name" + ], + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + }, + "IdentityCreateIdentityRequest1": { + "type": "object", + "properties": { + "identity": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + } + }, + "required": [ + "identity" + ], + "title": "IdentityCreateIdentityRequest1" + }, + "Identity_createIdentity_Request": { + "oneOf": [ + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest0" }, - "detect_uuids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "UUIDs of the child detects. Use `GET /detect/{uuid}` to retrieve per-file results." + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest1" } - }, - "description": "Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.", - "title": "DetectBatch" + ], + "title": "Identity_createIdentity_Request" }, - "Deepfake Detection_createDetectBatch_Response_202": { + "Identity_createIdentity_Response_200": { "type": "object", "properties": { "success": { - "type": "boolean" + "type": "boolean", + "description": "Whether the voice was enrolled for matching immediately" }, "item": { - "$ref": "#/components/schemas/DetectBatch" + "$ref": "#/components/schemas/IdentitySummary" } }, - "title": "Deepfake Detection_createDetectBatch_Response_202" + "title": "Identity_createIdentity_Response_200" }, - "Deepfake Detection_getDetectBatch_Response_200": { + "Identity_deleteIdentity_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectBatch" } }, - "title": "Deepfake Detection_getDetectBatch_Response_200" + "title": "Identity_deleteIdentity_Response_200" }, - "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType": { + "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality": { "type": "string", "enum": [ - "audio", - "video", - "image" + "voice", + "face", + "video" ], - "description": "Explicit media type (auto-detected if not provided)", - "title": "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType" + "title": "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" }, - "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType": { + "IdentityIdentityType": { "type": "string", "enum": [ - "audio", - "video", - "image" + "person", + "brand" ], - "description": "Type of media analyzed", - "title": "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType" - }, - "IntelligencePostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" - }, - "media_type": { - "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType", - "description": "Type of media analyzed" - } - }, - "title": "IntelligencePostResponsesContentApplicationJsonSchemaItem" - }, - "Intelligence_runIntelligence_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Intelligence_runIntelligence_Response_200" + "title": "IdentityIdentityType" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType": { + "IdentityVisibility": { "type": "string", "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" + "team", + "global" ], - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" + "title": "IdentityVisibility" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud": { + "IdentityAttachment": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" + "id": { + "type": "integer" }, - "confidence": { - "type": "number", - "format": "double" + "filename": { + "type": "string" }, - "reasoning": { + "byte_size": { + "type": "integer" + }, + "content_type": { "type": "string" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + "description": "A reference media file attached to an identity", + "title": "IdentityAttachment" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment": { + "IdentityEmbeddingsItemsModality": { "type": "string", "enum": [ - "real_person", - "not_real_person", - "inconclusive" + "voice", + "face", + "video" ], - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" + "title": "IdentityEmbeddingsItemsModality" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness": { + "IdentityEmbeddingsItems": { "type": "object", "properties": { - "assessment": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" - }, - "confidence": { - "type": "number", - "format": "double" + "modality": { + "$ref": "#/components/schemas/IdentityEmbeddingsItemsModality" }, - "indicators": { + "status": { "type": "string" + }, + "attachment_count": { + "type": "integer" + }, + "computed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" + "title": "IdentityEmbeddingsItems" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered": { + "IdentityProjectsItems": { "type": "object", "properties": { - "detected": { - "type": "boolean" - }, - "confidence": { - "type": "number", - "format": "double" + "uuid": { + "type": "string" }, - "alterations": { + "name": { "type": "string" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + "title": "IdentityProjectsItems" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription": { + "Identity": { "type": "object", "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { + "uuid": { "type": "string" }, - "context": { + "name": { "type": "string" }, - "message": { - "type": "string" + "identity_type": { + "$ref": "#/components/schemas/IdentityIdentityType" }, - "abnormalities": { - "type": "string" + "visibility": { + "$ref": "#/components/schemas/IdentityVisibility" }, - "transcription": { - "type": "string" + "notes": { + "type": [ + "string", + "null" + ] }, - "translation": { + "voice_profile_id": { "type": [ "string", "null" ] }, - "misinformation": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time" }, - "fraud": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + "updated_at": { + "type": "string", + "format": "date-time" }, - "liveness": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" + "project_count": { + "type": "integer" }, - "digitally_altered": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + "voice_samples": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "face_photos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "reference_videos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "embeddings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityEmbeddingsItems" + }, + "description": "Per-modality embedding processing status" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProjectsItems" + } } }, - "description": "Structured intelligence analysis", - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription" + "description": "A multimodal identity profile", + "title": "Identity" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { + "Identity_deleteIdentityAttachment_Response_204": { + "type": "object", + "properties": {}, + "description": "Empty response body", + "title": "Identity_deleteIdentityAttachment_Response_204" + }, + "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { "type": "string", "enum": [ "audio", - "video", "image" ], - "description": "Type of media analyzed", - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" + "description": "Inferred from the media's content type when omitted (defaults to audio)", + "title": "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems": { + "IdentitySearchPostResponsesContentApplicationJsonSchemaModality": { + "type": "string", + "enum": [ + "audio", + "image" + ], + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + }, + "IdentitySearchPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "uuid": { + "name": { "type": "string" }, - "description": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription", - "description": "Structured intelligence analysis" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" + "distance": { + "type": "number", + "format": "double" }, - "media_type": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType", - "description": "Type of media analyzed" + "score_type": { + "type": "string" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaItem" }, - "Intelligence_listIntelligences_Response_200": { + "Identity_searchIdentities_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "page": { - "type": "integer" - }, - "num_pages": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "total_count": { - "type": "integer" + "modality": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaModality" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" - } + "item": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaItem" + }, + "description": "Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type \"cosine\".\n" } }, - "title": "Intelligence_listIntelligences_Response_200" + "title": "Identity_searchIdentities_Response_200" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType": { + "WatermarkApplyPostParametersPrefer": { "type": "string", "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" + "wait" ], - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" + "title": "WatermarkApplyPostParametersPrefer" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud": { + "WatermarkApplyRequest": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" + "url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." }, - "confidence": { + "strength": { "type": "number", - "format": "double" + "format": "double", + "default": 0.2, + "description": "Watermark strength for image/video. Ignored for audio." }, - "reasoning": { - "type": "string" + "custom_message": { + "type": "string", + "default": "resembleai", + "description": "Message to embed in image/video. Ignored for audio." } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" + "required": [ + "url" + ], + "title": "WatermarkApplyRequest" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment": { + "WatermarkApplyItemMediaType": { "type": "string", "enum": [ - "real_person", - "not_real_person", - "inconclusive" + "audio", + "image", + "video" ], - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" + "description": "Detected media type of the source file.", + "title": "WatermarkApplyItemMediaType" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness": { - "type": "object", - "properties": { - "assessment": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" - }, - "confidence": { - "type": "number", - "format": "double" - }, - "indicators": { - "type": "string" - } - }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" + "WatermarkApplyItemOperationType": { + "type": "string", + "enum": [ + "apply" + ], + "title": "WatermarkApplyItemOperationType" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered": { + "WatermarkApplyItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "title": "WatermarkApplyItemStatus" + }, + "WatermarkApplyItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkApplyItemModelVersion" + }, + "WatermarkApplyMetrics": { "type": "object", "properties": { - "detected": { - "type": "boolean" - }, - "confidence": { + "strength": { "type": "number", "format": "double" }, - "alterations": { + "custom_message": { "type": "string" + }, + "message_bits_length": { + "type": [ + "integer", + "null" + ] } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" + "description": "Apply metadata for image/video. Audio apply metrics are null.", + "title": "WatermarkApplyMetrics" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription": { + "WatermarkApplyItem": { "type": "object", "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { - "type": "string" - }, - "context": { - "type": "string" - }, - "message": { - "type": "string" - }, - "abnormalities": { + "uuid": { "type": "string" }, - "transcription": { - "type": "string" + "media_type": { + "$ref": "#/components/schemas/WatermarkApplyItemMediaType", + "description": "Detected media type of the source file." }, - "translation": { - "type": [ - "string", - "null" - ] + "operation_type": { + "$ref": "#/components/schemas/WatermarkApplyItemOperationType" }, - "misinformation": { - "type": "string" + "status": { + "$ref": "#/components/schemas/WatermarkApplyItemStatus" }, - "fraud": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" + "model_version": { + "$ref": "#/components/schemas/WatermarkApplyItemModelVersion" }, - "liveness": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" + "source_media_url": { + "type": "string", + "format": "uri" }, - "digitally_altered": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" - } - }, - "description": "Structured intelligence analysis", - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription" - }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" - ], - "description": "Type of media analyzed", - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType" - }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" + "watermarked_media": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "Signed output URL when processing is complete." }, - "description": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription", - "description": "Structured intelligence analysis" + "metrics": { + "$ref": "#/components/schemas/WatermarkApplyMetrics" }, "created_at": { "type": "string", "format": "date-time" }, - "detect_uuid": { + "updated_at": { "type": "string", - "description": "UUID of the associated detect object" - }, - "media_type": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType", - "description": "Type of media analyzed" + "format": "date-time" } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "model_version", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkApplyItem" }, - "Intelligence_getIntelligence_Response_200": { + "WatermarkApplyResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/WatermarkApplyItem" } }, - "title": "Intelligence_getIntelligence_Response_200" + "required": [ + "success", + "item" + ], + "title": "WatermarkApplyResponse" }, - "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus": { + "WatermarkDetectPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "WatermarkDetectPostParametersPrefer" + }, + "WatermarkDetectRequest": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." + }, + "custom_message": { + "type": "string", + "default": "resembleai", + "description": "Message used when applying the image/video watermark. Ignored for audio." + } + }, + "required": [ + "url" + ], + "title": "WatermarkDetectRequest" + }, + "WatermarkDetectItemMediaType": { + "type": "string", + "enum": [ + "audio", + "image", + "video" + ], + "title": "WatermarkDetectItemMediaType" + }, + "WatermarkDetectItemOperationType": { + "type": "string", + "enum": [ + "detect" + ], + "title": "WatermarkDetectItemOperationType" + }, + "WatermarkDetectItemStatus": { "type": "string", "enum": [ "pending", @@ -10248,558 +8322,693 @@ "completed", "failed" ], - "description": "Current status of the question", - "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus" + "title": "WatermarkDetectItemStatus" }, - "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem": { + "WatermarkDetectItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "description": "Present for image/video. Audio versions are reported in metrics.model_results.", + "title": "WatermarkDetectItemModelVersion" + }, + "WatermarkAudioDetectionMetricsOverallStatus": { + "type": "string", + "enum": [ + "present", + "absent", + "inconclusive" + ], + "title": "WatermarkAudioDetectionMetricsOverallStatus" + }, + "WatermarkAudioDetectionMetricsDetectedModelVersionsItems": { + "type": "string", + "enum": [ + "perth_v1", + "perth_v2" + ], + "title": "WatermarkAudioDetectionMetricsDetectedModelVersionsItems" + }, + "WatermarkAudioModelResultModelVersion": { + "type": "string", + "enum": [ + "perth_v1", + "perth_v2" + ], + "title": "WatermarkAudioModelResultModelVersion" + }, + "WatermarkAudioModelResultStatus": { + "type": "string", + "enum": [ + "succeeded", + "failed" + ], + "title": "WatermarkAudioModelResultStatus" + }, + "WatermarkAudioModelResult": { "type": "object", "properties": { - "uuid": { - "type": "string", - "description": "UUID of the question" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detection report" + "model_version": { + "$ref": "#/components/schemas/WatermarkAudioModelResultModelVersion" }, - "query": { - "type": "string", - "description": "The submitted question" + "status": { + "$ref": "#/components/schemas/WatermarkAudioModelResultStatus" }, - "answer": { + "detected": { "type": [ - "string", + "boolean", "null" ], - "description": "The generated answer (null until completed)" + "description": "Null when this detector was unavailable." }, - "status": { - "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus", - "description": "Current status of the question" + "has_watermark": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "description": "Successful per-channel detection results." }, - "error_message": { + "confidence": { "type": [ - "string", + "number", "null" ], - "description": "Error details when status is failed" + "format": "double" }, - "created_at": { + "error": { "type": "string", - "format": "date-time" + "description": "Safe error message when status is failed." + } + }, + "required": [ + "model_version", + "status", + "detected" + ], + "title": "WatermarkAudioModelResult" + }, + "WatermarkAudioDetectionMetrics": { + "type": "object", + "properties": { + "overall_status": { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsOverallStatus" }, - "updated_at": { - "type": "string", - "format": "date-time" + "detected_model_versions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Only model versions that positively detected a watermark." + }, + "coverage_complete": { + "type": "boolean", + "description": "True only when both audio detectors completed successfully." + }, + "has_watermark": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "description": "Per-channel aggregate across successful audio detectors." + }, + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkAudioModelResult" + } } }, - "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" + "required": [ + "overall_status", + "detected_model_versions", + "coverage_complete", + "has_watermark", + "model_results" + ], + "title": "WatermarkAudioDetectionMetrics" + }, + "WatermarkVisionDetectionMetricsOverallStatus": { + "type": "string", + "enum": [ + "present", + "degraded", + "absent", + "inconclusive" + ], + "title": "WatermarkVisionDetectionMetricsOverallStatus" + }, + "WatermarkVisionDetectionMetricsDetectedModelVersionsItems": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkVisionDetectionMetricsDetectedModelVersionsItems" + }, + "WatermarkVisionModelResultModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkVisionModelResultModelVersion" + }, + "WatermarkVisionModelResultStatus": { + "type": "string", + "enum": [ + "succeeded" + ], + "title": "WatermarkVisionModelResultStatus" }, - "Detect Intelligence_askDetectIntelligenceQuestion_Response_202": { + "WatermarkVisionModelResult": { "type": "object", "properties": { - "success": { + "model_version": { + "$ref": "#/components/schemas/WatermarkVisionModelResultModelVersion" + }, + "status": { + "$ref": "#/components/schemas/WatermarkVisionModelResultStatus" + }, + "detected": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" } }, - "title": "Detect Intelligence_askDetectIntelligenceQuestion_Response_202" + "required": [ + "model_version", + "status", + "detected" + ], + "title": "WatermarkVisionModelResult" }, - "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "WatermarkVisionDetectionMetricsVerdict": { "type": "string", "enum": [ - "pending", - "processing", - "completed", - "failed" + "verified", + "degraded", + "not_watermarked" ], - "description": "Current status of the question", - "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "description": "Backward-compatible image/video verdict.", + "title": "WatermarkVisionDetectionMetricsVerdict" }, - "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { + "WatermarkVisionDetectionMetrics": { "type": "object", "properties": { - "uuid": { - "type": "string", - "description": "UUID of the question" + "overall_status": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsOverallStatus" }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detection report" + "detected_model_versions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Contains perth_v2 only when watermark signal is detected." }, - "query": { - "type": "string", - "description": "The submitted question" + "has_watermark": { + "type": "boolean" }, - "answer": { + "detection_score": { "type": [ - "string", + "number", "null" ], - "description": "The generated answer (null until completed)" + "format": "double" }, - "status": { - "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus", - "description": "Current status of the question" + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionModelResult" + } }, - "error_message": { - "type": [ - "string", - "null" + "verdict": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsVerdict" + }, + { + "type": "null" + } ], - "description": "Error details when status is failed" - }, - "created_at": { - "type": "string", - "format": "date-time" + "description": "Backward-compatible image/video verdict." }, - "updated_at": { - "type": "string", - "format": "date-time" + "synthid": { + "type": "boolean", + "description": "Optional auxiliary SynthID signal for images." } }, - "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "overall_status", + "detected_model_versions", + "has_watermark", + "detection_score", + "model_results" + ], + "title": "WatermarkVisionDetectionMetrics" }, - "Detect Intelligence_getDetectIntelligenceQuestion_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "WatermarkDetectItemMetrics": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" }, - "item": { - "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" } - }, - "title": "Detect Intelligence_getDetectIntelligenceQuestion_Response_200" + ], + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape.", + "title": "WatermarkDetectItemMetrics" }, - "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults": { + "WatermarkDetectItem": { "type": "object", "properties": { - "label": { + "uuid": { + "type": "string" + }, + "media_type": { + "$ref": "#/components/schemas/WatermarkDetectItemMediaType" + }, + "operation_type": { + "$ref": "#/components/schemas/WatermarkDetectItemOperationType" + }, + "status": { + "$ref": "#/components/schemas/WatermarkDetectItemStatus" + }, + "model_version": { + "$ref": "#/components/schemas/WatermarkDetectItemModelVersion", + "description": "Present for image/video. Audio versions are reported in metrics.model_results." + }, + "source_media_url": { "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" + "format": "uri" }, - "error_message": { + "metrics": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkDetectItemMetrics" + }, + { + "type": "null" + } + ], + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape." + }, + "watermarked_media": { "type": [ "string", "null" - ] - } - }, - "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" - }, - "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "results": { - "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" + ], + "format": "uri", + "description": "Detection does not produce output media." }, "created_at": { "type": "string", "format": "date-time" }, - "detect_uuid": { + "updated_at": { "type": "string", - "description": "UUID of the associated detect object" + "format": "date-time" } }, - "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkDetectItem" }, - "Audio Source Tracing_listAudioSourceTracings_Response_200": { + "WatermarkDetectResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, - "page": { - "type": "integer" - }, - "num_pages": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "total_count": { - "type": "integer" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" - } - } - }, - "title": "Audio Source Tracing_listAudioSourceTracings_Response_200" - }, - "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" - }, - "error_message": { - "type": [ - "string", - "null" - ] - } - }, - "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" - }, - "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "results": { - "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" + "item": { + "$ref": "#/components/schemas/WatermarkDetectItem" } }, - "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "success", + "item" + ], + "title": "WatermarkDetectResponse" }, - "Audio Source Tracing_getAudioSourceTracing_Response_200": { + "Secure Uploads_createSecureUpload_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" + "token": { + "type": "string", + "description": "JWT referencing the uploaded file. Valid for 1 hour. Pass this value as `media_token` on downstream requests." } }, - "title": "Audio Source Tracing_getAudioSourceTracing_Response_200" + "title": "Secure Uploads_createSecureUpload_Response_200" }, - "IdentitySummaryVisibility": { + "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision": { "type": "string", "enum": [ - "team", - "global" + "MULAW", + "PCM_16", + "PCM_24", + "PCM_32" ], - "title": "IdentitySummaryVisibility" + "default": "PCM_32", + "description": "Audio precision for WAV output", + "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision" }, - "IdentitySummaryIdentityType": { + "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat": { "type": "string", "enum": [ - "person", - "brand" + "wav", + "mp3" ], - "title": "IdentitySummaryIdentityType" + "default": "wav", + "description": "Audio output format", + "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat" }, - "IdentitySummary": { + "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate": { + "type": "string", + "enum": [ + "8000", + "16000", + "22050", + "32000", + "44100", + "48000" + ], + "description": "Audio sample rate in Hz", + "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate" + }, + "AudioTimestamps": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "audio_url": { - "type": [ - "string", - "null" - ], - "format": "uri", - "description": "URL of the first voice sample, if any" - }, - "visibility": { - "$ref": "#/components/schemas/IdentitySummaryVisibility" - }, - "identity_type": { - "$ref": "#/components/schemas/IdentitySummaryIdentityType" - }, - "notes": { - "type": [ - "string", - "null" - ] + "graph_chars": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Grapheme characters" }, - "voice_profile_id": { - "type": [ - "string", - "null" - ] + "graph_times": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "description": "Grapheme timestamps [start, end] in seconds" }, - "updated_at": { - "type": "string", - "format": "date-time" + "phon_chars": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Phoneme characters" }, - "project_count": { - "type": "integer" + "phon_times": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + "description": "Phoneme timestamps [start, end] in seconds" } }, - "description": "Identity summary returned by the list and simple-create endpoints", - "title": "IdentitySummary" + "title": "AudioTimestamps" }, - "Identity_listIdentities_Response_200": { + "Text-to-Speech_synthesize_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "page": { - "type": "integer" + "audio_content": { + "type": "string", + "format": "byte", + "description": "Base64-encoded audio bytes" }, - "num_pages": { - "type": "integer" + "audio_timestamps": { + "$ref": "#/components/schemas/AudioTimestamps" }, - "page_size": { - "type": "integer" + "duration": { + "type": "number", + "format": "double", + "description": "Audio duration in seconds" }, - "total_count": { + "synth_duration": { + "type": "number", + "format": "double", + "description": "Raw synthesis time" + }, + "output_format": { + "type": "string" + }, + "sample_rate": { "type": "integer" }, - "items": { + "title": { + "type": "string" + }, + "issues": { "type": "array", "items": { - "$ref": "#/components/schemas/IdentitySummary" + "type": "string" } } }, - "title": "Identity_listIdentities_Response_200" - }, - "IdentityCreateIdentityRequest0": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Speaker name/identifier" - }, - "url": { - "type": "string", - "format": "uri", - "description": "URL to an audio sample (one of url, audio, signed_id is required)" - }, - "signed_id": { - "type": "string", - "description": "Signed ID from a secure upload" - } - }, - "required": [ - "name" - ], - "title": "IdentityCreateIdentityRequest0" + "title": "Text-to-Speech_synthesize_Response_200" }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType": { + "StreamPostRequestBodyContentApplicationJsonSchemaPrecision": { "type": "string", "enum": [ - "person", - "brand" + "MULAW", + "PCM_16", + "PCM_24", + "PCM_32" ], - "default": "person", - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" + "default": "PCM_32", + "description": "Audio precision", + "title": "StreamPostRequestBodyContentApplicationJsonSchemaPrecision" }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility": { + "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate": { "type": "string", "enum": [ - "team", - "global" + "8000", + "16000", + "22050", + "32000", + "44100", + "48000" ], - "default": "team", - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + "description": "Audio sample rate in Hz", + "title": "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate" }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity": { + "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "identity_type": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" - }, - "visibility": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + "uuid": { + "type": "string", + "format": "uuid" }, - "notes": { + "status": { "type": "string" }, - "voice_profile_id": { - "type": "string" - } - }, - "required": [ - "name" - ], - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" - }, - "IdentityCreateIdentityRequest1": { - "type": "object", - "properties": { - "identity": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" - } - }, - "required": [ - "identity" - ], - "title": "IdentityCreateIdentityRequest1" - }, - "Identity_createIdentity_Request": { - "oneOf": [ - { - "$ref": "#/components/schemas/IdentityCreateIdentityRequest0" + "duration_seconds": { + "type": "number", + "format": "double" }, - { - "$ref": "#/components/schemas/IdentityCreateIdentityRequest1" + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } - ], - "title": "Identity_createIdentity_Request" + }, + "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" }, - "Identity_createIdentity_Response_200": { + "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta": { "type": "object", "properties": { - "success": { - "type": "boolean", - "description": "Whether the voice was enrolled for matching immediately" + "page": { + "type": "integer" }, - "item": { - "$ref": "#/components/schemas/IdentitySummary" + "per_page": { + "type": "integer" + }, + "total_pages": { + "type": "integer" + }, + "total_items": { + "type": "integer" } }, - "title": "Identity_createIdentity_Response_200" + "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" }, - "Identity_deleteIdentity_Response_200": { + "Speech-to-Text_listTranscripts_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" + } + }, + "meta": { + "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" } }, - "title": "Identity_deleteIdentity_Response_200" - }, - "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality": { - "type": "string", - "enum": [ - "voice", - "face", - "video" - ], - "title": "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" - }, - "IdentityIdentityType": { - "type": "string", - "enum": [ - "person", - "brand" - ], - "title": "IdentityIdentityType" + "title": "Speech-to-Text_listTranscripts_Response_200" }, - "IdentityVisibility": { + "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus": { "type": "string", "enum": [ - "team", - "global" + "pending", + "processing", + "completed", + "failed" ], - "title": "IdentityVisibility" + "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" }, - "IdentityAttachment": { + "SpeechToTextPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "id": { - "type": "integer" + "uuid": { + "type": "string", + "format": "uuid" }, - "filename": { - "type": "string" + "status": { + "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" }, - "byte_size": { - "type": "integer" + "privacy_mode": { + "type": "boolean", + "description": "Whether the transcript was created with zero retention" }, - "content_type": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } }, - "description": "A reference media file attached to an identity", - "title": "IdentityAttachment" - }, - "IdentityEmbeddingsItemsModality": { - "type": "string", - "enum": [ - "voice", - "face", - "video" - ], - "title": "IdentityEmbeddingsItemsModality" + "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItem" }, - "IdentityEmbeddingsItems": { + "Speech-to-Text_createTranscript_Response_200": { "type": "object", "properties": { - "modality": { - "$ref": "#/components/schemas/IdentityEmbeddingsItemsModality" - }, - "status": { - "type": "string" - }, - "attachment_count": { - "type": "integer" + "success": { + "type": "boolean" }, - "computed_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" + "item": { + "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItem" } }, - "title": "IdentityEmbeddingsItems" + "title": "Speech-to-Text_createTranscript_Response_200" }, - "IdentityProjectsItems": { + "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" + }, + "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems": { "type": "object", "properties": { - "uuid": { + "text": { "type": "string" }, - "name": { + "start_time": { + "type": "number", + "format": "double" + }, + "end_time": { + "type": "number", + "format": "double" + }, + "speaker_id": { "type": "string" } }, - "title": "IdentityProjectsItems" + "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" }, - "Identity": { + "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { - "type": "string" + "type": "string", + "format": "uuid" }, - "name": { + "status": { + "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" + }, + "text": { + "type": "string", + "description": "Absent for zero-retention transcripts after the content purge" + }, + "words": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" + } + }, + "duration_seconds": { + "type": "number", + "format": "double" + }, + "file_url": { + "type": "string", + "format": "uri", + "description": "Absent once the media has been deleted (zero retention)" + }, + "query": { "type": "string" }, - "identity_type": { - "$ref": "#/components/schemas/IdentityIdentityType" + "answer": { + "type": "string" }, - "visibility": { - "$ref": "#/components/schemas/IdentityVisibility" + "privacy_mode": { + "type": "boolean", + "description": "Whether the transcript was created with zero retention" }, - "notes": { - "type": [ - "string", - "null" - ] + "file_deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the uploaded media was permanently deleted (zero retention)" }, - "voice_profile_id": { - "type": [ - "string", - "null" - ] + "content_deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the transcript content was permanently purged (zero retention)" }, "created_at": { "type": "string", @@ -10808,222 +9017,123 @@ "updated_at": { "type": "string", "format": "date-time" - }, - "project_count": { - "type": "integer" - }, - "voice_samples": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "face_photos": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "reference_videos": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "embeddings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityEmbeddingsItems" - }, - "description": "Per-modality embedding processing status" - }, - "projects": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityProjectsItems" - } } }, - "description": "A multimodal identity profile", - "title": "Identity" - }, - "Identity_deleteIdentityAttachment_Response_204": { - "type": "object", - "properties": {}, - "description": "Empty response body", - "title": "Identity_deleteIdentityAttachment_Response_204" - }, - "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { - "type": "string", - "enum": [ - "audio", - "image" - ], - "description": "Inferred from the media's content type when omitted (defaults to audio)", - "title": "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality" + "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" }, - "IdentitySearchPostResponsesContentApplicationJsonSchemaModality": { - "type": "string", - "enum": [ - "audio", - "image" - ], - "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + "Speech-to-Text_getTranscript_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Speech-to-Text_getTranscript_Response_200" }, - "IdentitySearchPostResponsesContentApplicationJsonSchemaItem": { + "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "name": { - "type": "string" + "uuid": { + "type": "string", + "format": "uuid" }, - "distance": { - "type": "number", - "format": "double" + "transcript_uuid": { + "type": "string", + "format": "uuid" }, - "score_type": { + "query": { + "type": "string" + }, + "status": { "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" } }, - "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaItem" + "title": "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" }, - "Identity_searchIdentities_Response_200": { + "Speech-to-Text_askTranscriptQuestion_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "modality": { - "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaModality" - }, "item": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaItem" - }, - "description": "Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type \"cosine\".\n" + "$ref": "#/components/schemas/SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" } }, - "title": "Identity_searchIdentities_Response_200" - }, - "WatermarkApplyPostParametersPrefer": { - "type": "string", - "enum": [ - "wait" - ], - "title": "WatermarkApplyPostParametersPrefer" + "title": "Speech-to-Text_askTranscriptQuestion_Response_200" }, - "WatermarkApplyRequest": { + "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "url": { + "uuid": { "type": "string", - "format": "uri", - "description": "Public HTTPS URL to the audio, image, or video source." + "format": "uuid" }, - "strength": { - "type": "number", - "format": "double", - "default": 0.2, - "description": "Watermark strength for image/video. Ignored for audio." + "query": { + "type": "string" }, - "custom_message": { + "answer": { + "type": "string" + }, + "status": { + "type": "string" + }, + "created_at": { "type": "string", - "default": "resembleai", - "description": "Message to embed in image/video. Ignored for audio." + "format": "date-time" } }, - "required": [ - "url" - ], - "title": "WatermarkApplyRequest" - }, - "WatermarkApplyItemMediaType": { - "type": "string", - "enum": [ - "audio", - "image", - "video" - ], - "description": "Detected media type of the source file.", - "title": "WatermarkApplyItemMediaType" - }, - "WatermarkApplyItemOperationType": { - "type": "string", - "enum": [ - "apply" - ], - "title": "WatermarkApplyItemOperationType" - }, - "WatermarkApplyItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "title": "WatermarkApplyItemStatus" + "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" }, - "WatermarkApplyItemModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkApplyItemModelVersion" + "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta": { + "type": "object", + "properties": {}, + "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" }, - "WatermarkApplyMetrics": { + "Speech-to-Text_listTranscriptQuestions_Response_200": { "type": "object", "properties": { - "strength": { - "type": "number", - "format": "double" + "success": { + "type": "boolean" }, - "custom_message": { - "type": "string" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" + } }, - "message_bits_length": { - "type": [ - "integer", - "null" - ] + "meta": { + "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" } }, - "description": "Apply metadata for image/video. Audio apply metrics are null.", - "title": "WatermarkApplyMetrics" + "title": "Speech-to-Text_listTranscriptQuestions_Response_200" }, - "WatermarkApplyItem": { + "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/WatermarkApplyItemMediaType", - "description": "Detected media type of the source file." - }, - "operation_type": { - "$ref": "#/components/schemas/WatermarkApplyItemOperationType" - }, - "status": { - "$ref": "#/components/schemas/WatermarkApplyItemStatus" - }, - "model_version": { - "$ref": "#/components/schemas/WatermarkApplyItemModelVersion" + "type": "string", + "format": "uuid" }, - "source_media_url": { + "transcript_uuid": { "type": "string", - "format": "uri" + "format": "uuid" }, - "watermarked_media": { - "type": [ - "string", - "null" - ], - "format": "uri", - "description": "Signed output URL when processing is complete." + "query": { + "type": "string" }, - "metrics": { - "$ref": "#/components/schemas/WatermarkApplyMetrics" + "answer": { + "type": "string" + }, + "status": { + "type": "string" }, "created_at": { "type": "string", @@ -11034,77 +9144,21 @@ "format": "date-time" } }, - "required": [ - "uuid", - "media_type", - "operation_type", - "status", - "model_version", - "source_media_url", - "created_at", - "updated_at" - ], - "title": "WatermarkApplyItem" + "title": "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" }, - "WatermarkApplyResponse": { + "Speech-to-Text_getTranscriptQuestion_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/WatermarkApplyItem" - } - }, - "required": [ - "success", - "item" - ], - "title": "WatermarkApplyResponse" - }, - "WatermarkDetectPostParametersPrefer": { - "type": "string", - "enum": [ - "wait" - ], - "title": "WatermarkDetectPostParametersPrefer" - }, - "WatermarkDetectRequest": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri", - "description": "Public HTTPS URL to the audio, image, or video source." - }, - "custom_message": { - "type": "string", - "default": "resembleai", - "description": "Message used when applying the image/video watermark. Ignored for audio." + "$ref": "#/components/schemas/SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "required": [ - "url" - ], - "title": "WatermarkDetectRequest" - }, - "WatermarkDetectItemMediaType": { - "type": "string", - "enum": [ - "audio", - "image", - "video" - ], - "title": "WatermarkDetectItemMediaType" - }, - "WatermarkDetectItemOperationType": { - "type": "string", - "enum": [ - "detect" - ], - "title": "WatermarkDetectItemOperationType" + "title": "Speech-to-Text_getTranscriptQuestion_Response_200" }, - "WatermarkDetectItemStatus": { + "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { "type": "string", "enum": [ "pending", @@ -11112,349 +9166,216 @@ "completed", "failed" ], - "title": "WatermarkDetectItemStatus" - }, - "WatermarkDetectItemModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "description": "Present for image/video. Audio versions are reported in metrics.model_results.", - "title": "WatermarkDetectItemModelVersion" - }, - "WatermarkAudioDetectionMetricsOverallStatus": { - "type": "string", - "enum": [ - "present", - "absent", - "inconclusive" - ], - "title": "WatermarkAudioDetectionMetricsOverallStatus" - }, - "WatermarkAudioDetectionMetricsDetectedModelVersionsItems": { - "type": "string", - "enum": [ - "perth_v1", - "perth_v2" - ], - "title": "WatermarkAudioDetectionMetricsDetectedModelVersionsItems" - }, - "WatermarkAudioModelResultModelVersion": { - "type": "string", - "enum": [ - "perth_v1", - "perth_v2" - ], - "title": "WatermarkAudioModelResultModelVersion" + "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" }, - "WatermarkAudioModelResultStatus": { + "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine": { "type": "string", "enum": [ - "succeeded", - "failed" + "v1", + "v2" ], - "title": "WatermarkAudioModelResultStatus" + "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine" }, - "WatermarkAudioModelResult": { + "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "model_version": { - "$ref": "#/components/schemas/WatermarkAudioModelResultModelVersion" + "uuid": { + "type": "string" }, "status": { - "$ref": "#/components/schemas/WatermarkAudioModelResultStatus" + "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" }, - "detected": { + "enhancement_engine": { + "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine" + }, + "error_message": { "type": [ - "boolean", + "string", "null" - ], - "description": "Null when this detector was unavailable." + ] }, - "has_watermark": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, - "description": "Successful per-channel detection results." + "remove_noise": { + "type": "boolean", + "description": "Engine v2 only." }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" + "normalize": { + "type": "boolean", + "description": "Engine v2 only." }, - "error": { + "studio_sound": { + "type": "boolean", + "description": "Engine v2 only." + }, + "loudness_target_level": { + "type": "integer", + "description": "Engine v1 only." + }, + "loudness_peak_limit": { + "type": "integer", + "description": "Engine v1 only." + }, + "enhancement_level": { + "type": "number", + "format": "double", + "description": "Engine v1 only." + }, + "original_audio_url": { "type": "string", - "description": "Safe error message when status is failed." + "format": "uri" + }, + "enhanced_audio_url": { + "type": "string", + "format": "uri" } }, - "required": [ - "model_version", - "status", - "detected" - ], - "title": "WatermarkAudioModelResult" + "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" }, - "WatermarkAudioDetectionMetrics": { + "Audio Enhancement_listAudioEnhancements_Response_200": { "type": "object", "properties": { - "overall_status": { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsOverallStatus" + "success": { + "type": "boolean" }, - "detected_model_versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsDetectedModelVersionsItems" - }, - "description": "Only model versions that positively detected a watermark." + "page": { + "type": "integer" }, - "coverage_complete": { - "type": "boolean", - "description": "True only when both audio detectors completed successfully." + "num_pages": { + "type": "integer" }, - "has_watermark": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, - "description": "Per-channel aggregate across successful audio detectors." + "page_size": { + "type": "integer" }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" + "total_count": { + "type": "integer" }, - "model_results": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/WatermarkAudioModelResult" + "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" } } }, - "required": [ - "overall_status", - "detected_model_versions", - "coverage_complete", - "has_watermark", - "model_results" - ], - "title": "WatermarkAudioDetectionMetrics" - }, - "WatermarkVisionDetectionMetricsOverallStatus": { - "type": "string", - "enum": [ - "present", - "degraded", - "absent", - "inconclusive" - ], - "title": "WatermarkVisionDetectionMetricsOverallStatus" - }, - "WatermarkVisionDetectionMetricsDetectedModelVersionsItems": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkVisionDetectionMetricsDetectedModelVersionsItems" - }, - "WatermarkVisionModelResultModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkVisionModelResultModelVersion" - }, - "WatermarkVisionModelResultStatus": { - "type": "string", - "enum": [ - "succeeded" - ], - "title": "WatermarkVisionModelResultStatus" + "title": "Audio Enhancement_listAudioEnhancements_Response_200" }, - "WatermarkVisionModelResult": { + "ListAudioEnhancementsRequestBadRequestError": { "type": "object", "properties": { - "model_version": { - "$ref": "#/components/schemas/WatermarkVisionModelResultModelVersion" - }, - "status": { - "$ref": "#/components/schemas/WatermarkVisionModelResultStatus" - }, - "detected": { + "success": { "type": "boolean" }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" + "message": { + "type": "string" } }, - "required": [ - "model_version", - "status", - "detected" - ], - "title": "WatermarkVisionModelResult" + "title": "ListAudioEnhancementsRequestBadRequestError" }, - "WatermarkVisionDetectionMetricsVerdict": { + "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine": { "type": "string", "enum": [ - "verified", - "degraded", - "not_watermarked" + "v1", + "v2" ], - "description": "Backward-compatible image/video verdict.", - "title": "WatermarkVisionDetectionMetricsVerdict" + "default": "v2", + "description": "Enhancement engine to use. Default is v2.", + "title": "AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine" }, - "WatermarkVisionDetectionMetrics": { - "type": "object", - "properties": { - "overall_status": { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsOverallStatus" - }, - "detected_model_versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsDetectedModelVersionsItems" - }, - "description": "Contains perth_v2 only when watermark signal is detected." - }, - "has_watermark": { - "type": "boolean" - }, - "detection_score": { - "type": [ - "number", - "null" - ], - "format": "double" + "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus": { + "type": "string", + "enum": [ + "pending" + ], + "title": "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" + }, + "Audio Enhancement_createAudioEnhancement_Response_202": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - "model_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkVisionModelResult" - } + "uuid": { + "type": "string" }, - "verdict": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsVerdict" - }, - { - "type": "null" - } - ], - "description": "Backward-compatible image/video verdict." + "status": { + "$ref": "#/components/schemas/AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" + } + }, + "title": "Audio Enhancement_createAudioEnhancement_Response_202" + }, + "CreateAudioEnhancementRequestBadRequestError": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - "synthid": { - "type": "boolean", - "description": "Optional auxiliary SynthID signal for images." + "message": { + "type": "string" } }, - "required": [ - "overall_status", - "detected_model_versions", - "has_watermark", - "detection_score", - "model_results" - ], - "title": "WatermarkVisionDetectionMetrics" + "title": "CreateAudioEnhancementRequestBadRequestError" }, - "WatermarkDetectItemMetrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" + "CreateAudioEnhancementRequestForbiddenError": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" + "message": { + "type": "string" } + }, + "title": "CreateAudioEnhancementRequestForbiddenError" + }, + "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" ], - "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape.", - "title": "WatermarkDetectItemMetrics" + "title": "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" }, - "WatermarkDetectItem": { + "Audio Enhancement_getAudioEnhancement_Response_200": { "type": "object", "properties": { + "success": { + "type": "boolean" + }, "uuid": { "type": "string" }, - "media_type": { - "$ref": "#/components/schemas/WatermarkDetectItemMediaType" - }, - "operation_type": { - "$ref": "#/components/schemas/WatermarkDetectItemOperationType" - }, "status": { - "$ref": "#/components/schemas/WatermarkDetectItemStatus" - }, - "model_version": { - "$ref": "#/components/schemas/WatermarkDetectItemModelVersion", - "description": "Present for image/video. Audio versions are reported in metrics.model_results." - }, - "source_media_url": { - "type": "string", - "format": "uri" - }, - "metrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkDetectItemMetrics" - }, - { - "type": "null" - } - ], - "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape." + "$ref": "#/components/schemas/AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" }, - "watermarked_media": { + "enhanced_audio_url": { "type": [ "string", "null" ], "format": "uri", - "description": "Detection does not produce output media." - }, - "created_at": { - "type": "string", - "format": "date-time" + "description": "Download URL. Only present when status is completed. This is a temporary signed URL." }, - "updated_at": { - "type": "string", - "format": "date-time" + "error_message": { + "type": [ + "string", + "null" + ], + "description": "Human-readable error. Only present when status is failed." } }, - "required": [ - "uuid", - "media_type", - "operation_type", - "status", - "source_media_url", - "created_at", - "updated_at" - ], - "title": "WatermarkDetectItem" + "title": "Audio Enhancement_getAudioEnhancement_Response_200" }, - "WatermarkDetectResponse": { + "GetAudioEnhancementRequestNotFoundError": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/WatermarkDetectItem" + "message": { + "type": "string" } }, - "required": [ - "success", - "item" - ], - "title": "WatermarkDetectResponse" + "title": "GetAudioEnhancementRequestNotFoundError" }, "VoicesGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", @@ -12356,167 +10277,48 @@ }, "created_at": { "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - }, - "title": "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" - }, - "Projects_updateProject_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Projects_updateProject_Response_200" - }, - "Projects_deleteProject_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Projects_deleteProject_Response_200" - }, - "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Clips_listClips_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" - } - } - }, - "title": "Clips_listClips_Response_200" - }, - "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Clips_getClip_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Clips_getClip_Response_200" - }, - "Clips_deleteClip_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Clips_deleteClip_Response_200" - }, - "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" - }, - "Clips_updateClip_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Clips_updateClip_Response_200" - }, - "AccountGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" + "format": "date-time" }, - "created_at": { + "updated_at": { "type": "string", "format": "date-time" }, - "teams": { - "type": "integer" + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { + "type": "boolean" } }, - "title": "AccountGetResponsesContentApplicationJsonSchemaItem" + "title": "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" }, - "Account_getAccount_Response_200": { + "Projects_updateProject_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" } }, - "title": "Account_getAccount_Response_200" + "title": "Projects_updateProject_Response_200" }, - "AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems": { + "Projects_deleteProject_Response_200": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "plan": { - "type": "string" - }, - "voice_limit": { - "type": "integer" - }, - "units": { - "type": "string" - }, - "rate": { - "type": "number" - }, - "current_usage": { - "type": "integer" + "success": { + "type": "boolean" } }, - "title": "AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "Projects_deleteProject_Response_200" }, - "Account_getTeams_Response_200": { + "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems": { + "type": "object", + "properties": {}, + "title": "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" + }, + "Clips_listClips_Response_200": { "type": "object", "properties": { "success": { @@ -12525,76 +10327,54 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" } } }, - "title": "Account_getTeams_Response_200" + "title": "Clips_listClips_Response_200" }, - "AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem": { + "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "name": { - "type": "string" - }, - "plan": { - "type": "string" - }, - "voice_limit": { - "type": "integer" - }, - "units": { - "type": "string" - }, - "rate": { - "type": "number", - "format": "double" - }, - "current_usage": { - "type": "integer" - } - }, - "title": "AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem" + "properties": {}, + "title": "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" }, - "Account_getTeam_Response_200": { + "Clips_getClip_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "title": "Account_getTeam_Response_200" + "title": "Clips_getClip_Response_200" }, - "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem": { + "Clips_deleteClip_Response_200": { "type": "object", "properties": { - "detect": { - "type": "number" - }, - "synth": { - "type": "string" + "success": { + "type": "boolean" } }, - "title": "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" + "title": "Clips_deleteClip_Response_200" }, - "Account_getBillingUsage_Response_200": { + "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": {}, + "title": "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" + }, + "Clips_updateClip_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "items": { - "$ref": "#/components/schemas/AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" + "item": { + "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" } }, - "title": "Account_getBillingUsage_Response_200" + "title": "Clips_updateClip_Response_200" }, "DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", @@ -12746,6 +10526,147 @@ } }, "title": "Duets_generateDuet_Response_200" + }, + "AccountGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "teams": { + "type": "integer" + } + }, + "title": "AccountGetResponsesContentApplicationJsonSchemaItem" + }, + "Account_getAccount_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Account_getAccount_Response_200" + }, + "AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "plan": { + "type": "string" + }, + "voice_limit": { + "type": "integer" + }, + "units": { + "type": "string" + }, + "rate": { + "type": "number" + }, + "current_usage": { + "type": "integer" + } + }, + "title": "AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems" + }, + "Account_getTeams_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems" + } + } + }, + "title": "Account_getTeams_Response_200" + }, + "AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "plan": { + "type": "string" + }, + "voice_limit": { + "type": "integer" + }, + "units": { + "type": "string" + }, + "rate": { + "type": "number", + "format": "double" + }, + "current_usage": { + "type": "integer" + } + }, + "title": "AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem" + }, + "Account_getTeam_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Account_getTeam_Response_200" + }, + "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "detect": { + "type": "number" + }, + "synth": { + "type": "string" + } + }, + "title": "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" + }, + "Account_getBillingUsage_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "items": { + "$ref": "#/components/schemas/AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Account_getBillingUsage_Response_200" } }, "securitySchemes": {